HierarchyStructure.fromJson constructor
HierarchyStructure.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HierarchyStructure.fromJson(Map<String, dynamic> json) {
return HierarchyStructure(
levelFive: json['LevelFive'] != null
? HierarchyLevel.fromJson(json['LevelFive'] as Map<String, dynamic>)
: null,
levelFour: json['LevelFour'] != null
? HierarchyLevel.fromJson(json['LevelFour'] as Map<String, dynamic>)
: null,
levelOne: json['LevelOne'] != null
? HierarchyLevel.fromJson(json['LevelOne'] as Map<String, dynamic>)
: null,
levelThree: json['LevelThree'] != null
? HierarchyLevel.fromJson(json['LevelThree'] as Map<String, dynamic>)
: null,
levelTwo: json['LevelTwo'] != null
? HierarchyLevel.fromJson(json['LevelTwo'] as Map<String, dynamic>)
: null,
);
}