OutputGroup.fromJson constructor

OutputGroup.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OutputGroup.fromJson(Map<String, dynamic> json) {
  return OutputGroup(
    automatedEncodingSettings: json['automatedEncodingSettings'] != null
        ? AutomatedEncodingSettings.fromJson(
            json['automatedEncodingSettings'] as Map<String, dynamic>)
        : null,
    customName: json['customName'] as String?,
    name: json['name'] as String?,
    outputGroupSettings: json['outputGroupSettings'] != null
        ? OutputGroupSettings.fromJson(
            json['outputGroupSettings'] as Map<String, dynamic>)
        : null,
    outputs: (json['outputs'] as List?)
        ?.whereNotNull()
        .map((e) => Output.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}