fromString

fun fromString(string: String?): ScanMode

Helper to find a ScanMode enum from its string value, or ScanMode.NA for invalid input.