HlsGroupSettings.fromJson constructor
HlsGroupSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HlsGroupSettings.fromJson(Map<String, dynamic> json) {
return HlsGroupSettings(
destination: OutputLocationRef.fromJson(
json['destination'] as Map<String, dynamic>),
adMarkers: (json['adMarkers'] as List?)
?.whereNotNull()
.map((e) => (e as String).toHlsAdMarkers())
.toList(),
baseUrlContent: json['baseUrlContent'] as String?,
baseUrlContent1: json['baseUrlContent1'] as String?,
baseUrlManifest: json['baseUrlManifest'] as String?,
baseUrlManifest1: json['baseUrlManifest1'] as String?,
captionLanguageMappings: (json['captionLanguageMappings'] as List?)
?.whereNotNull()
.map(
(e) => CaptionLanguageMapping.fromJson(e as Map<String, dynamic>))
.toList(),
captionLanguageSetting: (json['captionLanguageSetting'] as String?)
?.toHlsCaptionLanguageSetting(),
clientCache: (json['clientCache'] as String?)?.toHlsClientCache(),
codecSpecification:
(json['codecSpecification'] as String?)?.toHlsCodecSpecification(),
constantIv: json['constantIv'] as String?,
directoryStructure:
(json['directoryStructure'] as String?)?.toHlsDirectoryStructure(),
discontinuityTags:
(json['discontinuityTags'] as String?)?.toHlsDiscontinuityTags(),
encryptionType:
(json['encryptionType'] as String?)?.toHlsEncryptionType(),
hlsCdnSettings: json['hlsCdnSettings'] != null
? HlsCdnSettings.fromJson(
json['hlsCdnSettings'] as Map<String, dynamic>)
: null,
hlsId3SegmentTagging: (json['hlsId3SegmentTagging'] as String?)
?.toHlsId3SegmentTaggingState(),
iFrameOnlyPlaylists:
(json['iFrameOnlyPlaylists'] as String?)?.toIFrameOnlyPlaylistType(),
incompleteSegmentBehavior: (json['incompleteSegmentBehavior'] as String?)
?.toHlsIncompleteSegmentBehavior(),
indexNSegments: json['indexNSegments'] as int?,
inputLossAction:
(json['inputLossAction'] as String?)?.toInputLossActionForHlsOut(),
ivInManifest: (json['ivInManifest'] as String?)?.toHlsIvInManifest(),
ivSource: (json['ivSource'] as String?)?.toHlsIvSource(),
keepSegments: json['keepSegments'] as int?,
keyFormat: json['keyFormat'] as String?,
keyFormatVersions: json['keyFormatVersions'] as String?,
keyProviderSettings: json['keyProviderSettings'] != null
? KeyProviderSettings.fromJson(
json['keyProviderSettings'] as Map<String, dynamic>)
: null,
manifestCompression:
(json['manifestCompression'] as String?)?.toHlsManifestCompression(),
manifestDurationFormat: (json['manifestDurationFormat'] as String?)
?.toHlsManifestDurationFormat(),
minSegmentLength: json['minSegmentLength'] as int?,
mode: (json['mode'] as String?)?.toHlsMode(),
outputSelection:
(json['outputSelection'] as String?)?.toHlsOutputSelection(),
programDateTime:
(json['programDateTime'] as String?)?.toHlsProgramDateTime(),
programDateTimePeriod: json['programDateTimePeriod'] as int?,
redundantManifest:
(json['redundantManifest'] as String?)?.toHlsRedundantManifest(),
segmentLength: json['segmentLength'] as int?,
segmentationMode:
(json['segmentationMode'] as String?)?.toHlsSegmentationMode(),
segmentsPerSubdirectory: json['segmentsPerSubdirectory'] as int?,
streamInfResolution:
(json['streamInfResolution'] as String?)?.toHlsStreamInfResolution(),
timedMetadataId3Frame: (json['timedMetadataId3Frame'] as String?)
?.toHlsTimedMetadataId3Frame(),
timedMetadataId3Period: json['timedMetadataId3Period'] as int?,
timestampDeltaMilliseconds: json['timestampDeltaMilliseconds'] as int?,
tsFileMode: (json['tsFileMode'] as String?)?.toHlsTsFileMode(),
);
}