class SimpleReport implements CheckReport {

    public static SimpleReport fromJson(final @NotNull JsonObject jsonReport) {
        String vCheckName = jsonReport.getString(CoreConstants.checkReportKeys().checkName(), "");
        List<Violation> violations = optArray(jsonReport, CoreConstants.checkReportKeys().violations())
                .map(array -> mapArrayOfObjects(array, ReportMapper::violationFromJson))
                .orElseGet(Collections::emptyList);

        return new SimpleReport(vCheckName, violations);
    }

    public  SimpleReport(final String checkName, final Collection<Violation> violations);

}