Encryption.fromJson constructor

Encryption.fromJson(
  1. Map json_
)

Implementation

Encryption.fromJson(core.Map json_)
    : this(
        aes128: json_.containsKey('aes128')
            ? Aes128Encryption.fromJson(
                json_['aes128'] as core.Map<core.String, core.dynamic>)
            : null,
        drmSystems: json_.containsKey('drmSystems')
            ? DrmSystems.fromJson(
                json_['drmSystems'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        mpegCenc: json_.containsKey('mpegCenc')
            ? MpegCommonEncryption.fromJson(
                json_['mpegCenc'] as core.Map<core.String, core.dynamic>)
            : null,
        sampleAes: json_.containsKey('sampleAes')
            ? SampleAesEncryption.fromJson(
                json_['sampleAes'] as core.Map<core.String, core.dynamic>)
            : null,
        secretManagerKeySource: json_.containsKey('secretManagerKeySource')
            ? SecretManagerSource.fromJson(json_['secretManagerKeySource']
                as core.Map<core.String, core.dynamic>)
            : null,
      );