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 (columnHeaders != null) {
    _json["columnHeaders"] =
        columnHeaders.map((value) => (value).toJson()).toList();
  }
  if (id != null) {
    _json["id"] = id;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (profileInfo != null) {
    _json["profileInfo"] = (profileInfo).toJson();
  }
  if (query != null) {
    _json["query"] = (query).toJson();
  }
  if (rows != null) {
    _json["rows"] = rows;
  }
  if (selfLink != null) {
    _json["selfLink"] = selfLink;
  }
  if (totalResults != null) {
    _json["totalResults"] = totalResults;
  }
  if (totalsForAllResults != null) {
    _json["totalsForAllResults"] = totalsForAllResults;
  }
  return _json;
}