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 (changeReports != null) {
    _json["changeReports"] =
        changeReports.map((value) => (value).toJson()).toList();
  }
  if (diagnostics != null) {
    _json["diagnostics"] =
        diagnostics.map((value) => (value).toJson()).toList();
  }
  if (id != null) {
    _json["id"] = id;
  }
  if (serviceName != null) {
    _json["serviceName"] = serviceName;
  }
  return _json;
}