M2tsSettings.fromJson constructor
M2tsSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory M2tsSettings.fromJson(Map<String, dynamic> json) {
return M2tsSettings(
absentInputAudioBehavior: (json['absentInputAudioBehavior'] as String?)
?.toM2tsAbsentInputAudioBehavior(),
arib: (json['arib'] as String?)?.toM2tsArib(),
aribCaptionsPid: json['aribCaptionsPid'] as String?,
aribCaptionsPidControl: (json['aribCaptionsPidControl'] as String?)
?.toM2tsAribCaptionsPidControl(),
audioBufferModel:
(json['audioBufferModel'] as String?)?.toM2tsAudioBufferModel(),
audioFramesPerPes: json['audioFramesPerPes'] as int?,
audioPids: json['audioPids'] as String?,
audioStreamType:
(json['audioStreamType'] as String?)?.toM2tsAudioStreamType(),
bitrate: json['bitrate'] as int?,
bufferModel: (json['bufferModel'] as String?)?.toM2tsBufferModel(),
ccDescriptor: (json['ccDescriptor'] as String?)?.toM2tsCcDescriptor(),
dvbNitSettings: json['dvbNitSettings'] != null
? DvbNitSettings.fromJson(
json['dvbNitSettings'] as Map<String, dynamic>)
: null,
dvbSdtSettings: json['dvbSdtSettings'] != null
? DvbSdtSettings.fromJson(
json['dvbSdtSettings'] as Map<String, dynamic>)
: null,
dvbSubPids: json['dvbSubPids'] as String?,
dvbTdtSettings: json['dvbTdtSettings'] != null
? DvbTdtSettings.fromJson(
json['dvbTdtSettings'] as Map<String, dynamic>)
: null,
dvbTeletextPid: json['dvbTeletextPid'] as String?,
ebif: (json['ebif'] as String?)?.toM2tsEbifControl(),
ebpAudioInterval:
(json['ebpAudioInterval'] as String?)?.toM2tsAudioInterval(),
ebpLookaheadMs: json['ebpLookaheadMs'] as int?,
ebpPlacement: (json['ebpPlacement'] as String?)?.toM2tsEbpPlacement(),
ecmPid: json['ecmPid'] as String?,
esRateInPes: (json['esRateInPes'] as String?)?.toM2tsEsRateInPes(),
etvPlatformPid: json['etvPlatformPid'] as String?,
etvSignalPid: json['etvSignalPid'] as String?,
fragmentTime: json['fragmentTime'] as double?,
klv: (json['klv'] as String?)?.toM2tsKlv(),
klvDataPids: json['klvDataPids'] as String?,
nielsenId3Behavior:
(json['nielsenId3Behavior'] as String?)?.toM2tsNielsenId3Behavior(),
nullPacketBitrate: json['nullPacketBitrate'] as double?,
patInterval: json['patInterval'] as int?,
pcrControl: (json['pcrControl'] as String?)?.toM2tsPcrControl(),
pcrPeriod: json['pcrPeriod'] as int?,
pcrPid: json['pcrPid'] as String?,
pmtInterval: json['pmtInterval'] as int?,
pmtPid: json['pmtPid'] as String?,
programNum: json['programNum'] as int?,
rateMode: (json['rateMode'] as String?)?.toM2tsRateMode(),
scte27Pids: json['scte27Pids'] as String?,
scte35Control: (json['scte35Control'] as String?)?.toM2tsScte35Control(),
scte35Pid: json['scte35Pid'] as String?,
segmentationMarkers:
(json['segmentationMarkers'] as String?)?.toM2tsSegmentationMarkers(),
segmentationStyle:
(json['segmentationStyle'] as String?)?.toM2tsSegmentationStyle(),
segmentationTime: json['segmentationTime'] as double?,
timedMetadataBehavior: (json['timedMetadataBehavior'] as String?)
?.toM2tsTimedMetadataBehavior(),
timedMetadataPid: json['timedMetadataPid'] as String?,
transportStreamId: json['transportStreamId'] as int?,
videoPid: json['videoPid'] as String?,
);
}