InstanceGroup.fromJson constructor

InstanceGroup.fromJson(
  1. Map _json
)

Implementation

InstanceGroup.fromJson(core.Map _json) {
  if (_json.containsKey("creationTimestamp")) {
    creationTimestamp = _json["creationTimestamp"];
  }
  if (_json.containsKey("description")) {
    description = _json["description"];
  }
  if (_json.containsKey("fingerprint")) {
    fingerprint = _json["fingerprint"];
  }
  if (_json.containsKey("id")) {
    id = _json["id"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("namedPorts")) {
    namedPorts = (_json["namedPorts"] as core.List)
        .map<NamedPort>((value) => new NamedPort.fromJson(value))
        .toList();
  }
  if (_json.containsKey("network")) {
    network = _json["network"];
  }
  if (_json.containsKey("region")) {
    region = _json["region"];
  }
  if (_json.containsKey("selfLink")) {
    selfLink = _json["selfLink"];
  }
  if (_json.containsKey("size")) {
    size = _json["size"];
  }
  if (_json.containsKey("subnetwork")) {
    subnetwork = _json["subnetwork"];
  }
  if (_json.containsKey("zone")) {
    zone = _json["zone"];
  }
}