HlsPackage.fromJson constructor
HlsPackage.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HlsPackage.fromJson(Map<String, dynamic> json) {
return HlsPackage(
hlsManifests: (json['hlsManifests'] as List)
.whereNotNull()
.map((e) => HlsManifest.fromJson(e as Map<String, dynamic>))
.toList(),
encryption: json['encryption'] != null
? HlsEncryption.fromJson(json['encryption'] as Map<String, dynamic>)
: null,
segmentDurationSeconds: json['segmentDurationSeconds'] as int?,
useAudioRenditionGroup: json['useAudioRenditionGroup'] as bool?,
);
}