RawEncryptResponse.fromJson constructor

RawEncryptResponse.fromJson(
  1. Map json_
)

Implementation

RawEncryptResponse.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,
        initializationVector: json_.containsKey('initializationVector')
            ? json_['initializationVector'] as core.String
            : null,
        initializationVectorCrc32c:
            json_.containsKey('initializationVectorCrc32c')
                ? json_['initializationVectorCrc32c'] as core.String
                : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        protectionLevel: json_.containsKey('protectionLevel')
            ? json_['protectionLevel'] as core.String
            : null,
        tagLength: json_.containsKey('tagLength')
            ? json_['tagLength'] as core.int
            : null,
        verifiedAdditionalAuthenticatedDataCrc32c: json_
                .containsKey('verifiedAdditionalAuthenticatedDataCrc32c')
            ? json_['verifiedAdditionalAuthenticatedDataCrc32c'] as core.bool
            : null,
        verifiedInitializationVectorCrc32c:
            json_.containsKey('verifiedInitializationVectorCrc32c')
                ? json_['verifiedInitializationVectorCrc32c'] as core.bool
                : null,
        verifiedPlaintextCrc32c: json_.containsKey('verifiedPlaintextCrc32c')
            ? json_['verifiedPlaintextCrc32c'] as core.bool
            : null,
      );