Playlist.fromJson constructor
Playlist.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Playlist.fromJson(Map<String, dynamic> json) {
return Playlist(
format: json['Format'] as String?,
hlsContentProtection: json['HlsContentProtection'] != null
? HlsContentProtection.fromJson(
json['HlsContentProtection'] as Map<String, dynamic>)
: null,
name: json['Name'] as String?,
outputKeys: (json['OutputKeys'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
playReadyDrm: json['PlayReadyDrm'] != null
? PlayReadyDrm.fromJson(json['PlayReadyDrm'] as Map<String, dynamic>)
: null,
status: json['Status'] as String?,
statusDetail: json['StatusDetail'] as String?,
);
}