M3u8Settings.fromJson constructor
M3u8Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory M3u8Settings.fromJson(Map<String, dynamic> json) {
return M3u8Settings(
audioFramesPerPes: json['audioFramesPerPes'] as int?,
audioPids: json['audioPids'] as String?,
ecmPid: json['ecmPid'] as String?,
nielsenId3Behavior:
(json['nielsenId3Behavior'] as String?)?.toM3u8NielsenId3Behavior(),
patInterval: json['patInterval'] as int?,
pcrControl: (json['pcrControl'] as String?)?.toM3u8PcrControl(),
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?,
scte35Behavior:
(json['scte35Behavior'] as String?)?.toM3u8Scte35Behavior(),
scte35Pid: json['scte35Pid'] as String?,
timedMetadataBehavior: (json['timedMetadataBehavior'] as String?)
?.toM3u8TimedMetadataBehavior(),
timedMetadataPid: json['timedMetadataPid'] as String?,
transportStreamId: json['transportStreamId'] as int?,
videoPid: json['videoPid'] as String?,
);
}