ListProjectsResponse.fromJson constructor

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

Implementation

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