ReportList.fromMap constructor
Implementation
factory ReportList.fromMap(
Map<String, dynamic> map,
) {
map = {
'total': 0,
'reports': [],
...map,
};
return ReportList(
total: map['total'],
reports: List<Report>.from(
map['reports'].map((p) => Report.fromMap(p)),
),
);
}