toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case MemberStatus.invited:
      return 'INVITED';
    case MemberStatus.verificationInProgress:
      return 'VERIFICATION_IN_PROGRESS';
    case MemberStatus.verificationFailed:
      return 'VERIFICATION_FAILED';
    case MemberStatus.enabled:
      return 'ENABLED';
    case MemberStatus.acceptedButDisabled:
      return 'ACCEPTED_BUT_DISABLED';
  }
}