serializeMap method
Implementation
void serializeMap(Map map) {
writeTypeValue(cbor.majorTypeMap, map.length);
final entries = map.entries;
for (final entry in entries) {
if (entry.key is String) {
writeString(entry.key);
} else if (entry.key is int) {
writeInt(entry.key);
}
serializeData(entry.value);
}
}