MssPackage.fromJson constructor
Implementation
factory MssPackage.fromJson(Map<String, dynamic> json) {
return MssPackage(
mssManifests: (json['mssManifests'] as List)
.whereNotNull()
.map((e) => MssManifest.fromJson(e as Map<String, dynamic>))
.toList(),
encryption: json['encryption'] != null
? MssEncryption.fromJson(json['encryption'] as Map<String, dynamic>)
: null,
segmentDurationSeconds: json['segmentDurationSeconds'] as int?,
);
}