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 (etag != null) {
    _json["etag"] = etag;
  }
  if (items != null) {
    _json["items"] = items.map((value) => (value).toJson()).toList();
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (largestChangeId != null) {
    _json["largestChangeId"] = largestChangeId;
  }
  if (newStartPageToken != null) {
    _json["newStartPageToken"] = newStartPageToken;
  }
  if (nextLink != null) {
    _json["nextLink"] = nextLink;
  }
  if (nextPageToken != null) {
    _json["nextPageToken"] = nextPageToken;
  }
  if (selfLink != null) {
    _json["selfLink"] = selfLink;
  }
  return _json;
}