BatchGetProjectsOutput.fromJson constructor

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

Implementation

factory BatchGetProjectsOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetProjectsOutput(
    projects: (json['projects'] as List?)
        ?.whereNotNull()
        .map((e) => Project.fromJson(e as Map<String, dynamic>))
        .toList(),
    projectsNotFound: (json['projectsNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}