toMemberStatus method
Implementation
MemberStatus toMemberStatus() {
switch (this) {
case 'INVITED':
return MemberStatus.invited;
case 'VERIFICATION_IN_PROGRESS':
return MemberStatus.verificationInProgress;
case 'VERIFICATION_FAILED':
return MemberStatus.verificationFailed;
case 'ENABLED':
return MemberStatus.enabled;
case 'ACCEPTED_BUT_DISABLED':
return MemberStatus.acceptedButDisabled;
}
throw Exception('$this is not known in enum MemberStatus');
}