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 (items != null) {
    _json["items"] = items.map((value) => (value).toJson()).toList();
  }
  if (itemsPerPage != null) {
    _json["itemsPerPage"] = itemsPerPage;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (nextLink != null) {
    _json["nextLink"] = nextLink;
  }
  if (previousLink != null) {
    _json["previousLink"] = previousLink;
  }
  if (startIndex != null) {
    _json["startIndex"] = startIndex;
  }
  if (totalResults != null) {
    _json["totalResults"] = totalResults;
  }
  if (username != null) {
    _json["username"] = username;
  }
  return _json;
}