ListProjectsResult.fromJson constructor

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

Implementation

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