HierarchyPath.fromJson constructor

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

Implementation

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