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