writeMap method

void writeMap(
  1. Map? map
)

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);
  }
}