toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (endCursor != null) {
    _json["endCursor"] = endCursor;
  }
  if (entityResultType != null) {
    _json["entityResultType"] = entityResultType;
  }
  if (entityResults != null) {
    _json["entityResults"] =
        entityResults.map((value) => (value).toJson()).toList();
  }
  if (moreResults != null) {
    _json["moreResults"] = moreResults;
  }
  if (skippedCursor != null) {
    _json["skippedCursor"] = skippedCursor;
  }
  if (skippedResults != null) {
    _json["skippedResults"] = skippedResults;
  }
  if (snapshotVersion != null) {
    _json["snapshotVersion"] = snapshotVersion;
  }
  return _json;
}