QueryResultBatch.fromJson constructor

QueryResultBatch.fromJson(Map _json)

Implementation

QueryResultBatch.fromJson(core.Map _json) {
  if (_json.containsKey("endCursor")) {
    endCursor = _json["endCursor"];
  }
  if (_json.containsKey("entityResultType")) {
    entityResultType = _json["entityResultType"];
  }
  if (_json.containsKey("entityResults")) {
    entityResults = (_json["entityResults"] as core.List)
        .map<EntityResult>((value) => new EntityResult.fromJson(value))
        .toList();
  }
  if (_json.containsKey("moreResults")) {
    moreResults = _json["moreResults"];
  }
  if (_json.containsKey("skippedCursor")) {
    skippedCursor = _json["skippedCursor"];
  }
  if (_json.containsKey("skippedResults")) {
    skippedResults = _json["skippedResults"];
  }
  if (_json.containsKey("snapshotVersion")) {
    snapshotVersion = _json["snapshotVersion"];
  }
}