toCbor method
Converts the object to a CBOR object.
Implementation
@override
CborObject toCbor() {
return CborListValue.fixedLength([
type.toCbor(),
port == null ? const CborNullValue() : CborIntValue(port!),
ipv4?.toCbor() ?? const CborNullValue(),
ipv6?.toCbor() ?? const CborNullValue()
]);
}