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 (creationTimestamp != null) {
    _json["creationTimestamp"] = creationTimestamp;
  }
  if (description != null) {
    _json["description"] = description;
  }
  if (fingerprint != null) {
    _json["fingerprint"] = fingerprint;
  }
  if (id != null) {
    _json["id"] = id;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (namedPorts != null) {
    _json["namedPorts"] =
        namedPorts.map((value) => (value).toJson()).toList();
  }
  if (network != null) {
    _json["network"] = network;
  }
  if (region != null) {
    _json["region"] = region;
  }
  if (selfLink != null) {
    _json["selfLink"] = selfLink;
  }
  if (size != null) {
    _json["size"] = size;
  }
  if (subnetwork != null) {
    _json["subnetwork"] = subnetwork;
  }
  if (zone != null) {
    _json["zone"] = zone;
  }
  return _json;
}