Mixin for classes that can be serialized to CBOR.
Constructors
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
-
toCbor(
) → T - Convert this object to its CBOR representation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode<
T extends CborObject< (Object?> >{List< int> ? cborBytes, CborObject<Object?> ? cborObject, String? cborHex}) → T -
Decode raw CBOR data and return it as
T. -
decodeTaggedValue<
T extends CborObject< (Object?> >{List< int> ? cborBytes, CborObject<Object?> ? cborObject, String? cborHex, List<int> ? tagIds}) → T -
Decode or extract a CBOR tag, returning its inner value as
T. -
listFromDynamic(
List items) → CborListValue< CborObject< Object?> > - Convert a list of dynamic Dart values to a definite CBOR list.
-
objectFromDynamic<
T extends CborObject< (Object?> >Object? value) → T - Convert any supported Dart value (int, BigInt, bytes, etc.) to a CBOR object.