OutputDestination.fromJson constructor
OutputDestination.fromJson(
- Map<String, dynamic> json
)
Implementation
factory OutputDestination.fromJson(Map<String, dynamic> json) {
return OutputDestination(
id: json['id'] as String?,
mediaPackageSettings: (json['mediaPackageSettings'] as List?)
?.whereNotNull()
.map((e) => MediaPackageOutputDestinationSettings.fromJson(
e as Map<String, dynamic>))
.toList(),
multiplexSettings: json['multiplexSettings'] != null
? MultiplexProgramChannelDestinationSettings.fromJson(
json['multiplexSettings'] as Map<String, dynamic>)
: null,
settings: (json['settings'] as List?)
?.whereNotNull()
.map((e) =>
OutputDestinationSettings.fromJson(e as Map<String, dynamic>))
.toList(),
);
}