toCbor method

  1. @override
CborObject toCbor()
override

Converts the object to a CBOR object.

Implementation

@override
CborObject toCbor() {
  return CborMapValue.fixedLength({
    for (final i in assets.entries)
      i.key.toCbor(): CborSignedValue.i64(i.value)
  });
}