VideoDescription.fromJson constructor
VideoDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VideoDescription.fromJson(Map<String, dynamic> json) {
return VideoDescription(
name: json['name'] as String,
codecSettings: json['codecSettings'] != null
? VideoCodecSettings.fromJson(
json['codecSettings'] as Map<String, dynamic>)
: null,
height: json['height'] as int?,
respondToAfd:
(json['respondToAfd'] as String?)?.toVideoDescriptionRespondToAfd(),
scalingBehavior: (json['scalingBehavior'] as String?)
?.toVideoDescriptionScalingBehavior(),
sharpness: json['sharpness'] as int?,
width: json['width'] as int?,
);
}