GenerateConfigReportResponse.fromJson constructor

GenerateConfigReportResponse.fromJson(
  1. Map _json
)

Implementation

GenerateConfigReportResponse.fromJson(core.Map _json) {
  if (_json.containsKey("changeReports")) {
    changeReports = (_json["changeReports"] as core.List)
        .map<ChangeReport>((value) => new ChangeReport.fromJson(value))
        .toList();
  }
  if (_json.containsKey("diagnostics")) {
    diagnostics = (_json["diagnostics"] as core.List)
        .map<Diagnostic>((value) => new Diagnostic.fromJson(value))
        .toList();
  }
  if (_json.containsKey("id")) {
    id = _json["id"];
  }
  if (_json.containsKey("serviceName")) {
    serviceName = _json["serviceName"];
  }
}