PartialResultSet.fromJson constructor

PartialResultSet.fromJson(
  1. Map _json
)

Implementation

PartialResultSet.fromJson(core.Map _json) {
  if (_json.containsKey("chunkedValue")) {
    chunkedValue = _json["chunkedValue"];
  }
  if (_json.containsKey("metadata")) {
    metadata = new ResultSetMetadata.fromJson(_json["metadata"]);
  }
  if (_json.containsKey("resumeToken")) {
    resumeToken = _json["resumeToken"];
  }
  if (_json.containsKey("stats")) {
    stats = new ResultSetStats.fromJson(_json["stats"]);
  }
  if (_json.containsKey("values")) {
    values = (_json["values"] as core.List).cast<core.Object>();
  }
}