Implementation
proto.BluetoothDeviceType toProto() {
proto.BluetoothDeviceType ret;
switch (this) {
case BluetoothDeviceType.le:
ret =
proto.BluetoothDeviceType(type: proto.BluetoothDeviceType_Type.LE);
break;
case BluetoothDeviceType.dual:
ret = proto.BluetoothDeviceType(
type: proto.BluetoothDeviceType_Type.DUAL);
break;
case BluetoothDeviceType.classic:
ret = proto.BluetoothDeviceType(
type: proto.BluetoothDeviceType_Type.CLASSIC);
break;
default:
ret = proto.BluetoothDeviceType(
type: proto.BluetoothDeviceType_Type.UNKNOWN);
break;
}
return ret;
}