toCbor method
Converts the object to a CBOR object.
Implementation
@override
CborObject toCbor() {
  if (multiAsset == null) return CborUnsignedValue.u64(coin);
  return CborListValue.definite(
      [CborUnsignedValue.u64(coin), multiAsset!.toCbor()]);
}