readJsonMap method

Map<String, dynamic> readJsonMap(
  1. int length
)

Reads the encodable representation of the object

  • length: The length of the encodable representation

Returns the Map<String, dynamic> representation of the encoded object

Implementation

Map<String, dynamic> readJsonMap(int length) {
  final res = <String, dynamic>{};
  while (length > 0) {
    res[_readString()] = read();
    length--;
  }
  return res;
}