FindingStatistics.fromJson constructor

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

Implementation

factory FindingStatistics.fromJson(Map<String, dynamic> json) {
  return FindingStatistics(
    countBySeverity: (json['countBySeverity'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as int)),
  );
}