ResponseData.fromJson constructor

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

Implementation

factory ResponseData.fromJson(Map<String, dynamic> json) {
  return ResponseData(
    reports: (json['reports'] as List<dynamic>?)
        ?.map((e) => Report.fromJson(e as Map<String, dynamic>))
        .toList(),
    meta: json['meta'] != null
        ? Meta.fromJson(json['meta'] as Map<String, dynamic>)
        : null,
  );
}