coapTransportDeviceTypeFromString function
Implementation
CoapTransportDeviceType coapTransportDeviceTypeFromString(String value) {
return CoapTransportDeviceType.values.firstWhere(
(e) => e.toString().split('.')[1].toUpperCase() == value.toUpperCase());
}