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,
        iv: _json.containsKey('iv') ? _json['iv'] as core.String : null,
        key: _json.containsKey('key') ? _json['key'] 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,
      );