toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AccountStatus.active:
      return 'ACTIVE';
    case AccountStatus.suspended:
      return 'SUSPENDED';
  }
}