PermittedProjects.fromJson constructor

PermittedProjects.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PermittedProjects.fromJson(Map<String, Object?> json) {
  return PermittedProjects(
    projects: (json[r'projects'] as List<Object?>?)
            ?.map((i) => ProjectIdentifierBean.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}