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 (defaultDiskSizeGb != null) {
    _json["defaultDiskSizeGb"] = defaultDiskSizeGb;
  }
  if (deprecated != null) {
    _json["deprecated"] = (deprecated).toJson();
  }
  if (description != null) {
    _json["description"] = description;
  }
  if (id != null) {
    _json["id"] = id;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (region != null) {
    _json["region"] = region;
  }
  if (selfLink != null) {
    _json["selfLink"] = selfLink;
  }
  if (validDiskSize != null) {
    _json["validDiskSize"] = validDiskSize;
  }
  if (zone != null) {
    _json["zone"] = zone;
  }
  return _json;
}