toInvitationStatus method
Implementation
InvitationStatus toInvitationStatus() {
switch (this) {
case 'PENDING':
return InvitationStatus.pending;
case 'ACCEPTED':
return InvitationStatus.accepted;
case 'ACCEPTING':
return InvitationStatus.accepting;
case 'REJECTED':
return InvitationStatus.rejected;
case 'EXPIRED':
return InvitationStatus.expired;
}
throw Exception('$this is not known in enum InvitationStatus');
}