BatchGetReportGroupsOutput.fromJson constructor

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

Implementation

factory BatchGetReportGroupsOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetReportGroupsOutput(
    reportGroups: (json['reportGroups'] as List?)
        ?.whereNotNull()
        .map((e) => ReportGroup.fromJson(e as Map<String, dynamic>))
        .toList(),
    reportGroupsNotFound: (json['reportGroupsNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}