toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (additionalAuthenticatedData != null)
        'additionalAuthenticatedData': additionalAuthenticatedData!,
      if (additionalAuthenticatedDataCrc32c != null)
        'additionalAuthenticatedDataCrc32c':
            additionalAuthenticatedDataCrc32c!,
      if (ciphertext != null) 'ciphertext': ciphertext!,
      if (ciphertextCrc32c != null) 'ciphertextCrc32c': ciphertextCrc32c!,
      if (initializationVector != null)
        'initializationVector': initializationVector!,
      if (initializationVectorCrc32c != null)
        'initializationVectorCrc32c': initializationVectorCrc32c!,
      if (tagLength != null) 'tagLength': tagLength!,
    };