readJSObject method

  1. @override
VoltronMap readJSObject()
override

Implementation

@override
VoltronMap readJSObject() {
  var object = VoltronMap();
  assignId(object);
  var read = _readJSProperties(object, SerializationTag.kEndJsObject);
  var expected = reader.getVarint();
  if (read != expected) {
    throw UnsupportedError("unexpected number of properties");
  }
  return object;
}