FirstFrameRasterized.deserialize constructor Null safety

FirstFrameRasterized.deserialize(
  1. Map<String, String> json
)

Factory constructor to parse a FirstFrameRasterized instance from the given JSON map.

The json argument must not be null.

Implementation

factory FirstFrameRasterized.deserialize(Map<String, String> json) {
  assert(json != null);
  if (json['conditionName'] != 'FirstFrameRasterizedCondition') {
    throw SerializationException('Error occurred during deserializing the FirstFrameRasterizedCondition JSON string: $json');
  }
  return const FirstFrameRasterized();
}