ADASerialization mixin

A mixin providing serialization functionality to classes.

Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
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
serialize() List<int>
Serializes the object to CBOR bytes.
serializeHex() String
Serializes the object to hexadecimal string.
toCbor() → CborObject
Converts the object to a CBOR object.
toJson() → dynamic
Converts the object to a JSON representation.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

desrialize<T extends CborObject>(List<int> cborBytes) → T
Deserialize the provided CBOR bytes cborBytes into an object of type T. Throws a MessageException with a descriptive message if deserialization fails.