ReportList.fromMap constructor

ReportList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

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