BatchGetReportsOutput.fromJson constructor

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

Implementation

factory BatchGetReportsOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetReportsOutput(
    reports: (json['reports'] as List?)
        ?.whereNotNull()
        .map((e) => Report.fromJson(e as Map<String, dynamic>))
        .toList(),
    reportsNotFound: (json['reportsNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}