toValue method

String toValue()

Implementation

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