DiskType.fromJson constructor

DiskType.fromJson(
  1. Map _json
)

Implementation

DiskType.fromJson(core.Map _json) {
  if (_json.containsKey("creationTimestamp")) {
    creationTimestamp = _json["creationTimestamp"];
  }
  if (_json.containsKey("defaultDiskSizeGb")) {
    defaultDiskSizeGb = _json["defaultDiskSizeGb"];
  }
  if (_json.containsKey("deprecated")) {
    deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
  }
  if (_json.containsKey("description")) {
    description = _json["description"];
  }
  if (_json.containsKey("id")) {
    id = _json["id"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("region")) {
    region = _json["region"];
  }
  if (_json.containsKey("selfLink")) {
    selfLink = _json["selfLink"];
  }
  if (_json.containsKey("validDiskSize")) {
    validDiskSize = _json["validDiskSize"];
  }
  if (_json.containsKey("zone")) {
    zone = _json["zone"];
  }
}