toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case UserStatusType.active:
      return 'ACTIVE';
    case UserStatusType.inactive:
      return 'INACTIVE';
    case UserStatusType.pending:
      return 'PENDING';
  }
}