CaptionSourceSettings.fromJson constructor

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

Implementation

factory CaptionSourceSettings.fromJson(Map<String, dynamic> json) {
  return CaptionSourceSettings(
    ancillarySourceSettings: json['ancillarySourceSettings'] != null
        ? AncillarySourceSettings.fromJson(
            json['ancillarySourceSettings'] as Map<String, dynamic>)
        : null,
    dvbSubSourceSettings: json['dvbSubSourceSettings'] != null
        ? DvbSubSourceSettings.fromJson(
            json['dvbSubSourceSettings'] as Map<String, dynamic>)
        : null,
    embeddedSourceSettings: json['embeddedSourceSettings'] != null
        ? EmbeddedSourceSettings.fromJson(
            json['embeddedSourceSettings'] as Map<String, dynamic>)
        : null,
    fileSourceSettings: json['fileSourceSettings'] != null
        ? FileSourceSettings.fromJson(
            json['fileSourceSettings'] as Map<String, dynamic>)
        : null,
    sourceType: (json['sourceType'] as String?)?.toCaptionSourceType(),
    teletextSourceSettings: json['teletextSourceSettings'] != null
        ? TeletextSourceSettings.fromJson(
            json['teletextSourceSettings'] as Map<String, dynamic>)
        : null,
    trackSourceSettings: json['trackSourceSettings'] != null
        ? TrackSourceSettings.fromJson(
            json['trackSourceSettings'] as Map<String, dynamic>)
        : null,
  );
}