HlsManifest.fromJson constructor
HlsManifest.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HlsManifest.fromJson(Map<String, dynamic> json) {
return HlsManifest(
id: json['id'] as String,
adMarkers: (json['adMarkers'] as String?)?.toAdMarkers(),
includeIframeOnlyStream: json['includeIframeOnlyStream'] as bool?,
manifestName: json['manifestName'] as String?,
playlistType: (json['playlistType'] as String?)?.toPlaylistType(),
playlistWindowSeconds: json['playlistWindowSeconds'] as int?,
programDateTimeIntervalSeconds:
json['programDateTimeIntervalSeconds'] as int?,
url: json['url'] as String?,
);
}