TikiSdkDestination class Null safety

The destination to which the data is consented to be used.

Constructors

TikiSdkDestination(List<String> paths, {List<String> uses = const []})
Builds a destination with paths and uses.
const
TikiSdkDestination.all()
Builds a destination for all paths and uses
const
TikiSdkDestination.fromMap(Map map)
TikiSdkDestination.none()
Builds a destination with no paths nor uses.
const

Properties

hashCode → int
The hash code for this object.
read-only, inherited
paths → List<String>
A list of paths, preferably URL without the scheme or reverse FQDN. Keep list short and use wildcard () matching. Prefix with NOT to invert. _i.e. NOT mytiki.com/
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
uses → List<String>
An optional list of application specific uses cases applicable to the given destination. Prefix with NOT to invert. _i.e. NOT ads
final

Methods

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

Operators

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

Static Methods

deserialize(Uint8List serialized) TikiSdkDestination
Deserializes a byte array into a destination.
fromJson(String jsonString) TikiSdkDestination
Converts the json representation of the destination into its object.