HlsEncryption.fromJson constructor

HlsEncryption.fromJson(
  1. 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(),
  );
}