toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ThingIndexingMode.off:
      return 'OFF';
    case ThingIndexingMode.registry:
      return 'REGISTRY';
    case ThingIndexingMode.registryAndShadow:
      return 'REGISTRY_AND_SHADOW';
  }
}