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"] = commons.mapMap<NetworkEndpointGroupsScopedList,
            core.Map<core.String, core.Object>>(
        items, (NetworkEndpointGroupsScopedList item) => (item).toJson());
  }
  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;
}