RiskReport.fromJson constructor
Implementation
factory RiskReport.fromJson(Map<String, dynamic> json) {
return RiskReport(
risk: json['risk'],
sections: json['sections'] != null
? List<RiskSection>.from(
json['sections'].map((s) => RiskSection.fromJson(s)))
: null,
);
}