Output.fromJson constructor
Implementation
factory Output.fromJson(Map<String, dynamic> json) {
return Output(
audioDescriptions: (json['audioDescriptions'] as List?)
?.whereNotNull()
.map((e) => AudioDescription.fromJson(e as Map<String, dynamic>))
.toList(),
captionDescriptions: (json['captionDescriptions'] as List?)
?.whereNotNull()
.map((e) => CaptionDescription.fromJson(e as Map<String, dynamic>))
.toList(),
containerSettings: json['containerSettings'] != null
? ContainerSettings.fromJson(
json['containerSettings'] as Map<String, dynamic>)
: null,
extension: json['extension'] as String?,
nameModifier: json['nameModifier'] as String?,
outputSettings: json['outputSettings'] != null
? OutputSettings.fromJson(
json['outputSettings'] as Map<String, dynamic>)
: null,
preset: json['preset'] as String?,
videoDescription: json['videoDescription'] != null
? VideoDescription.fromJson(
json['videoDescription'] as Map<String, dynamic>)
: null,
);
}