parse static method
Implementation
static BlueConnectionState parse(String value) {
if (value == disconnected.value) {
return disconnected;
} else if (value == connected.value) {
return connected;
}
throw ArgumentError.value(value);
}