ValidationReport.fromJson constructor

ValidationReport.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ValidationReport.fromJson(Map<String, dynamic> json) {
  return ValidationReport(
    errorReports: json["errorReports"] == null
        ? []
        : List<dynamic>.from(json["errorReports"]!.map((x) => x)),
    warningReports: json["warningReports"] == null
        ? []
        : List<dynamic>.from(json["warningReports"]!.map((x) => x)),
  );
}