MssPackage.fromJson constructor
MssPackage.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MssPackage.fromJson(Map<String, dynamic> json) {
return MssPackage(
encryption: json['encryption'] != null
? MssEncryption.fromJson(json['encryption'] as Map<String, dynamic>)
: null,
manifestWindowSeconds: json['manifestWindowSeconds'] as int?,
segmentDurationSeconds: json['segmentDurationSeconds'] as int?,
streamSelection: json['streamSelection'] != null
? StreamSelection.fromJson(
json['streamSelection'] as Map<String, dynamic>)
: null,
);
}