CaptionDestinationSettings.fromJson constructor
CaptionDestinationSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CaptionDestinationSettings.fromJson(Map<String, dynamic> json) {
return CaptionDestinationSettings(
burninDestinationSettings: json['burninDestinationSettings'] != null
? BurninDestinationSettings.fromJson(
json['burninDestinationSettings'] as Map<String, dynamic>)
: null,
destinationType:
(json['destinationType'] as String?)?.toCaptionDestinationType(),
dvbSubDestinationSettings: json['dvbSubDestinationSettings'] != null
? DvbSubDestinationSettings.fromJson(
json['dvbSubDestinationSettings'] as Map<String, dynamic>)
: null,
embeddedDestinationSettings: json['embeddedDestinationSettings'] != null
? EmbeddedDestinationSettings.fromJson(
json['embeddedDestinationSettings'] as Map<String, dynamic>)
: null,
imscDestinationSettings: json['imscDestinationSettings'] != null
? ImscDestinationSettings.fromJson(
json['imscDestinationSettings'] as Map<String, dynamic>)
: null,
sccDestinationSettings: json['sccDestinationSettings'] != null
? SccDestinationSettings.fromJson(
json['sccDestinationSettings'] as Map<String, dynamic>)
: null,
teletextDestinationSettings: json['teletextDestinationSettings'] != null
? TeletextDestinationSettings.fromJson(
json['teletextDestinationSettings'] as Map<String, dynamic>)
: null,
ttmlDestinationSettings: json['ttmlDestinationSettings'] != null
? TtmlDestinationSettings.fromJson(
json['ttmlDestinationSettings'] as Map<String, dynamic>)
: null,
);
}