toCbor method

  1. @override
CborObject toCbor()
override

Converts the object to a CBOR object.

Implementation

@override
CborObject toCbor() {
  return CborTagValue(
      CborListValue.fixedLength([
        CborUnsignedValue.u64(numerator),
        CborUnsignedValue.u64(denominator)
      ]),
      _cborTag);
}