ProjectScopeBean.fromJson constructor

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

Implementation

factory ProjectScopeBean.fromJson(Map<String, Object?> json) {
  return ProjectScopeBean(
    attributes: (json[r'attributes'] as List<Object?>?)
            ?.map((i) =>
                ProjectScopeBeanAttributes.fromValue(i as String? ?? ''))
            .toList() ??
        [],
    id: (json[r'id'] as num?)?.toInt(),
  );
}