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 (description != null) {
    _json["description"] = description;
  }
  if (displayName != null) {
    _json["displayName"] = displayName;
  }
  if (labels != null) {
    _json["labels"] = labels.map((value) => (value).toJson()).toList();
  }
  if (launchStage != null) {
    _json["launchStage"] = launchStage;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (type != null) {
    _json["type"] = type;
  }
  return _json;
}