Hierarchy.fromJson constructor
Implementation
factory Hierarchy.fromJson(Map<String, Object?> json) {
return Hierarchy(
baseLevelId: (json[r'baseLevelId'] as num?)?.toInt(),
levels: (json[r'levels'] as List<Object?>?)
?.map((i) => SimplifiedHierarchyLevel.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}