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 (displayName != null) {
    _json["displayName"] = displayName;
  }
  if (labels != null) {
    _json["labels"] = labels;
  }
  if (locationId != null) {
    _json["locationId"] = locationId;
  }
  if (metadata != null) {
    _json["metadata"] = metadata;
  }
  if (name != null) {
    _json["name"] = name;
  }
  return _json;
}