AtEncrypted class

A class that represents encrypted content, along with metadata such as initialization vector (IV) and the hashing algorithm used.

This class is used to serialize and deserialize encrypted data for transmission or storage. It provides methods to convert the object to JSON format and parse it back from JSON.

Annotations
  • @Deprecated('Use an application-specific encrypted payload model instead. This ' 'compatibility API will be removed in the next major release.')

Constructors

AtEncrypted()

Properties

content String?
The encrypted content, typically represented as a Base64 string.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hashingAlgoType HashingAlgoType?
The type of hashing algorithm used for encryption, represented by an enum of type HashingAlgoType.
getter/setter pair
iv String?
The initialization vector (IV) used during encryption, which adds randomness to the encryption process and ensures the same content results in different ciphertexts.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, String?>
Converts this AtEncrypted instance into a JSON-compatible map.
toString() String
Returns the string representation of this AtEncrypted instance.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> map) AtEncrypted
Creates an AtEncrypted instance from a JSON-compatible map.