toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (ciphertext != null) 'ciphertext': ciphertext!,
      if (ciphertextCrc32c != null) 'ciphertextCrc32c': ciphertextCrc32c!,
      if (name != null) 'name': name!,
      if (protectionLevel != null) 'protectionLevel': protectionLevel!,
      if (verifiedAdditionalAuthenticatedDataCrc32c != null)
        'verifiedAdditionalAuthenticatedDataCrc32c':
            verifiedAdditionalAuthenticatedDataCrc32c!,
      if (verifiedPlaintextCrc32c != null)
        'verifiedPlaintextCrc32c': verifiedPlaintextCrc32c!,
    };