SimplifiedHierarchyLevel.fromJson constructor

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

Implementation

factory SimplifiedHierarchyLevel.fromJson(Map<String, Object?> json) {
  return SimplifiedHierarchyLevel(
    aboveLevelId: (json[r'aboveLevelId'] as num?)?.toInt(),
    belowLevelId: (json[r'belowLevelId'] as num?)?.toInt(),
    externalUuid: json[r'externalUuid'] as String?,
    hierarchyLevelNumber: (json[r'hierarchyLevelNumber'] as num?)?.toInt(),
    id: (json[r'id'] as num?)?.toInt(),
    issueTypeIds: (json[r'issueTypeIds'] as List<Object?>?)
            ?.map((i) => (i as num?)?.toInt() ?? 0)
            .toList() ??
        [],
    level: (json[r'level'] as num?)?.toInt(),
    name: json[r'name'] as String?,
    projectConfigurationId:
        (json[r'projectConfigurationId'] as num?)?.toInt(),
  );
}