toConfigCapabilityType method

ConfigCapabilityType toConfigCapabilityType()

Implementation

ConfigCapabilityType toConfigCapabilityType() {
  switch (this) {
    case 'antenna-downlink':
      return ConfigCapabilityType.antennaDownlink;
    case 'antenna-downlink-demod-decode':
      return ConfigCapabilityType.antennaDownlinkDemodDecode;
    case 'antenna-uplink':
      return ConfigCapabilityType.antennaUplink;
    case 'dataflow-endpoint':
      return ConfigCapabilityType.dataflowEndpoint;
    case 'tracking':
      return ConfigCapabilityType.tracking;
    case 'uplink-echo':
      return ConfigCapabilityType.uplinkEcho;
  }
  throw Exception('$this is not known in enum ConfigCapabilityType');
}