ReportsResponseBean.fromJson constructor

ReportsResponseBean.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ReportsResponseBean.fromJson(Map<String, Object?> json) {
  return ReportsResponseBean(
    reports: (json[r'reports'] as List<Object?>?)
            ?.map((i) => i as Map<String, Object?>? ?? {})
            .toList() ??
        [],
  );
}