EncoderSettings.fromJson constructor
EncoderSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EncoderSettings.fromJson(Map<String, dynamic> json) {
return EncoderSettings(
audioDescriptions: (json['audioDescriptions'] as List)
.whereNotNull()
.map((e) => AudioDescription.fromJson(e as Map<String, dynamic>))
.toList(),
outputGroups: (json['outputGroups'] as List)
.whereNotNull()
.map((e) => OutputGroup.fromJson(e as Map<String, dynamic>))
.toList(),
timecodeConfig: TimecodeConfig.fromJson(
json['timecodeConfig'] as Map<String, dynamic>),
videoDescriptions: (json['videoDescriptions'] as List)
.whereNotNull()
.map((e) => VideoDescription.fromJson(e as Map<String, dynamic>))
.toList(),
availBlanking: json['availBlanking'] != null
? AvailBlanking.fromJson(
json['availBlanking'] as Map<String, dynamic>)
: null,
availConfiguration: json['availConfiguration'] != null
? AvailConfiguration.fromJson(
json['availConfiguration'] as Map<String, dynamic>)
: null,
blackoutSlate: json['blackoutSlate'] != null
? BlackoutSlate.fromJson(
json['blackoutSlate'] as Map<String, dynamic>)
: null,
captionDescriptions: (json['captionDescriptions'] as List?)
?.whereNotNull()
.map((e) => CaptionDescription.fromJson(e as Map<String, dynamic>))
.toList(),
featureActivations: json['featureActivations'] != null
? FeatureActivations.fromJson(
json['featureActivations'] as Map<String, dynamic>)
: null,
globalConfiguration: json['globalConfiguration'] != null
? GlobalConfiguration.fromJson(
json['globalConfiguration'] as Map<String, dynamic>)
: null,
nielsenConfiguration: json['nielsenConfiguration'] != null
? NielsenConfiguration.fromJson(
json['nielsenConfiguration'] as Map<String, dynamic>)
: null,
);
}