toCbor method
Converts the object to a CBOR object.
Implementation
@override
CborObject toCbor() {
return CborListValue.definite(
[vote.toCbor(), anchor?.toCbor() ?? const CborNullValue()]);
}
Converts the object to a CBOR object.
@override
CborObject toCbor() {
return CborListValue.definite(
[vote.toCbor(), anchor?.toCbor() ?? const CborNullValue()]);
}