fromEntity static method
Implementation
static Future<DisplayConditionsModel?> fromEntity(
DisplayConditionsEntity? entity) async {
if (entity == null) return null;
return DisplayConditionsModel(
privilegeLevelRequired:
toPrivilegeLevelRequired(entity.privilegeLevelRequired),
packageCondition: entity.packageCondition,
conditionOverride: toConditionOverride(entity.conditionOverride),
);
}