writeMap method
Implementation
void writeMap(Map<dynamic, dynamic>? map) {
if (map == null) {
writeNil();
return;
}
writeMapHeader(map.length);
for (MapEntry<dynamic, dynamic> me in map.entries) {
write(me.key);
write(me.value);
}
}