RiskReport.fromJson constructor

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

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,
  );
}