EncryptResponse.fromJson constructor

EncryptResponse.fromJson(
  1. Map json_
)

Implementation

EncryptResponse.fromJson(core.Map json_)
    : this(
        ciphertext: json_.containsKey('ciphertext')
            ? json_['ciphertext'] as core.String
            : null,
        ciphertextCrc32c: json_.containsKey('ciphertextCrc32c')
            ? json_['ciphertextCrc32c'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        protectionLevel: json_.containsKey('protectionLevel')
            ? json_['protectionLevel'] as core.String
            : null,
        verifiedAdditionalAuthenticatedDataCrc32c: json_
                .containsKey('verifiedAdditionalAuthenticatedDataCrc32c')
            ? json_['verifiedAdditionalAuthenticatedDataCrc32c'] as core.bool
            : null,
        verifiedPlaintextCrc32c: json_.containsKey('verifiedPlaintextCrc32c')
            ? json_['verifiedPlaintextCrc32c'] as core.bool
            : null,
      );