DecryptResponse.fromJson constructor

DecryptResponse.fromJson(
  1. Map json_
)

Implementation

DecryptResponse.fromJson(core.Map json_)
    : this(
        plaintext: json_.containsKey('plaintext')
            ? json_['plaintext'] as core.String
            : null,
        plaintextCrc32c: json_.containsKey('plaintextCrc32c')
            ? json_['plaintextCrc32c'] as core.String
            : null,
        protectionLevel: json_.containsKey('protectionLevel')
            ? json_['protectionLevel'] as core.String
            : null,
        usedPrimary: json_.containsKey('usedPrimary')
            ? json_['usedPrimary'] as core.bool
            : null,
      );