coapTransportDeviceTypeFromString function

CoapTransportDeviceType coapTransportDeviceTypeFromString(
  1. String value
)

Implementation

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