HlsEncryption.fromJson constructor
HlsEncryption.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HlsEncryption.fromJson(Map<String, dynamic> json) {
return HlsEncryption(
spekeKeyProvider: SpekeKeyProvider.fromJson(
json['spekeKeyProvider'] as Map<String, dynamic>),
constantInitializationVector:
json['constantInitializationVector'] as String?,
encryptionMethod:
(json['encryptionMethod'] as String?)?.toEncryptionMethod(),
keyRotationIntervalSeconds: json['keyRotationIntervalSeconds'] as int?,
repeatExtXKey: json['repeatExtXKey'] as bool?,
);
}