VideoDescription.fromJson constructor
VideoDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VideoDescription.fromJson(Map<String, dynamic> json) {
return VideoDescription(
afdSignaling: (json['afdSignaling'] as String?)?.toAfdSignaling(),
antiAlias: (json['antiAlias'] as String?)?.toAntiAlias(),
codecSettings: json['codecSettings'] != null
? VideoCodecSettings.fromJson(
json['codecSettings'] as Map<String, dynamic>)
: null,
colorMetadata: (json['colorMetadata'] as String?)?.toColorMetadata(),
crop: json['crop'] != null
? Rectangle.fromJson(json['crop'] as Map<String, dynamic>)
: null,
dropFrameTimecode:
(json['dropFrameTimecode'] as String?)?.toDropFrameTimecode(),
fixedAfd: json['fixedAfd'] as int?,
height: json['height'] as int?,
position: json['position'] != null
? Rectangle.fromJson(json['position'] as Map<String, dynamic>)
: null,
respondToAfd: (json['respondToAfd'] as String?)?.toRespondToAfd(),
scalingBehavior:
(json['scalingBehavior'] as String?)?.toScalingBehavior(),
sharpness: json['sharpness'] as int?,
timecodeInsertion:
(json['timecodeInsertion'] as String?)?.toVideoTimecodeInsertion(),
videoPreprocessors: json['videoPreprocessors'] != null
? VideoPreprocessor.fromJson(
json['videoPreprocessors'] as Map<String, dynamic>)
: null,
width: json['width'] as int?,
);
}