ApsMode enum - refactor of fromString

This commit is contained in:
piotrek 2022-12-14 10:23:50 +01:00
parent e8a5dc2627
commit 97530865ef

View file

@ -8,6 +8,6 @@ enum class ApsMode() {
companion object { companion object {
fun fromString(stringValue: String?) = values().firstOrNull { it.name == (stringValue?.uppercase() ?: UNDEFINED.name) } ?: UNDEFINED fun fromString(stringValue: String?) = values().firstOrNull { it.name == stringValue?.uppercase() } ?: UNDEFINED
} }
} }