ApsMode enum - refactor of fromString
This commit is contained in:
parent
e8a5dc2627
commit
97530865ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue