ConsentModel class Null safety

The Consent NFT data structure. It registers the consent from the creator of an Ownership NFT for the use of that data in a specific destination.

Optionally the Consent can describe about its usage, a reward that will be given in exchange and an expiry date and time for the consent.

Constructors

ConsentModel(Uint8List ownershipId, TikiSdkDestination destination, {String? about, String? reward, DateTime? expiry})
Builds a ConsentModel for the data identified by ownershipId.
ConsentModel.fromMap(Map<String, dynamic> map)
Builds a ConsentModel based in a Map. Used mostly for database operations.

Properties

about ↔ String?
Optional description of the consent.
read / write
destination TikiSdkDestination
The identifier of the paths and use cases for this consent.
read / write
expiry ↔ DateTime?
read / write
hashCode → int
The hash code for this object.
read-only, inherited
ownershipId ↔ Uint8List
Transaction ID corresponding to the ownership NFT for the data source.
read / write
reward ↔ String?
Optional reward description the user will receive for this consent.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
transactionId ↔ Uint8List?
The transaction id of this registry.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
serialize() → Uint8List
Serializes the contents to be recorded in the blockchain.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

deserialize(Uint8List serialized) ConsentModel
Deserializes the contents that was loaded from the blockchain.