startMap method

Future<void> startMap()

Starts a JSON map, this is method should only be called when a value is expected.

Implementation

Future<void> startMap() {
  final comma = _startContainer('startMap');
  _stack.add(_ContainerState(true));
  return _writeRawString('${comma ? ',' : ''}{');
}