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