toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DirectoryState.enabled:
      return 'ENABLED';
    case DirectoryState.disabled:
      return 'DISABLED';
    case DirectoryState.deleted:
      return 'DELETED';
  }
}