toPiiEntitiesDetectionMaskMode method

PiiEntitiesDetectionMaskMode toPiiEntitiesDetectionMaskMode()

Implementation

PiiEntitiesDetectionMaskMode toPiiEntitiesDetectionMaskMode() {
  switch (this) {
    case 'MASK':
      return PiiEntitiesDetectionMaskMode.mask;
    case 'REPLACE_WITH_PII_ENTITY_TYPE':
      return PiiEntitiesDetectionMaskMode.replaceWithPiiEntityType;
  }
  throw Exception('$this is not known in enum PiiEntitiesDetectionMaskMode');
}