package com.example.elva.data.models.health

enum class FlowIntensity(val displayName: String) {
    LIGHT("Легкая"),
    MEDIUM("Средняя"),
    HEAVY("Обильная");

    companion object {
        fun fromString(value: String?): FlowIntensity {
            return when (value?.uppercase()) {
                "LIGHT" -> LIGHT
                "MEDIUM" -> MEDIUM
                "HEAVY" -> HEAVY
                else -> MEDIUM
            }
        }
    }
}

