toCbor method
Converts the object to a CBOR object.
Implementation
@override
CborObject toCbor() {
  return CborListValue<CborObject>.definite([
    CborIntValue(hash == null ? 0 : 1),
    if (hash != null) CborBytesValue(hash!)
  ]);
}Converts the object to a CBOR object.
@override
CborObject toCbor() {
  return CborListValue<CborObject>.definite([
    CborIntValue(hash == null ? 0 : 1),
    if (hash != null) CborBytesValue(hash!)
  ]);
}