toCbor method
Converts the object to a CBOR object.
Implementation
@override
CborObject toCbor() {
return CborTagValue(
CborListValue.definite([
CborUnsignedValue.u64(numerator),
CborUnsignedValue.u64(denominator),
]),
_cborTag,
);
}