JobTemplateSettings.fromJson constructor

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

Implementation

factory JobTemplateSettings.fromJson(Map<String, dynamic> json) {
  return JobTemplateSettings(
    adAvailOffset: json['adAvailOffset'] as int?,
    availBlanking: json['availBlanking'] != null
        ? AvailBlanking.fromJson(
            json['availBlanking'] as Map<String, dynamic>)
        : null,
    esam: json['esam'] != null
        ? EsamSettings.fromJson(json['esam'] as Map<String, dynamic>)
        : null,
    inputs: (json['inputs'] as List?)
        ?.whereNotNull()
        .map((e) => InputTemplate.fromJson(e as Map<String, dynamic>))
        .toList(),
    motionImageInserter: json['motionImageInserter'] != null
        ? MotionImageInserter.fromJson(
            json['motionImageInserter'] as Map<String, dynamic>)
        : null,
    nielsenConfiguration: json['nielsenConfiguration'] != null
        ? NielsenConfiguration.fromJson(
            json['nielsenConfiguration'] as Map<String, dynamic>)
        : null,
    nielsenNonLinearWatermark: json['nielsenNonLinearWatermark'] != null
        ? NielsenNonLinearWatermarkSettings.fromJson(
            json['nielsenNonLinearWatermark'] as Map<String, dynamic>)
        : null,
    outputGroups: (json['outputGroups'] as List?)
        ?.whereNotNull()
        .map((e) => OutputGroup.fromJson(e as Map<String, dynamic>))
        .toList(),
    timecodeConfig: json['timecodeConfig'] != null
        ? TimecodeConfig.fromJson(
            json['timecodeConfig'] as Map<String, dynamic>)
        : null,
    timedMetadataInsertion: json['timedMetadataInsertion'] != null
        ? TimedMetadataInsertion.fromJson(
            json['timedMetadataInsertion'] as Map<String, dynamic>)
        : null,
  );
}