toThingIndexingMode method

ThingIndexingMode toThingIndexingMode()

Implementation

ThingIndexingMode toThingIndexingMode() {
  switch (this) {
    case 'OFF':
      return ThingIndexingMode.off;
    case 'REGISTRY':
      return ThingIndexingMode.registry;
    case 'REGISTRY_AND_SHADOW':
      return ThingIndexingMode.registryAndShadow;
  }
  throw Exception('$this is not known in enum ThingIndexingMode');
}