HlsManifest.fromJson constructor
HlsManifest.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HlsManifest.fromJson(Map<String, dynamic> json) {
return HlsManifest(
adMarkers: (json['adMarkers'] as String?)?.toAdMarkers(),
includeIframeOnlyStream: json['includeIframeOnlyStream'] as bool?,
manifestName: json['manifestName'] as String?,
programDateTimeIntervalSeconds:
json['programDateTimeIntervalSeconds'] as int?,
repeatExtXKey: json['repeatExtXKey'] as bool?,
streamSelection: json['streamSelection'] != null
? StreamSelection.fromJson(
json['streamSelection'] as Map<String, dynamic>)
: null,
);
}