toCbor method
Converts the metadata to CBOR.
Implementation
@override
CborObject toCbor() {
final keys = value.keys.toList()..sort((a, b) => a.compareTo(b));
return CborMapValue.fixedLength(
{for (final i in keys) i.toCbor(): value[i]!.toCbor()});
}