toShareStatus method
Implementation
ShareStatus toShareStatus() {
switch (this) {
case 'Shared':
return ShareStatus.shared;
case 'PendingAcceptance':
return ShareStatus.pendingAcceptance;
case 'Rejected':
return ShareStatus.rejected;
case 'Rejecting':
return ShareStatus.rejecting;
case 'RejectFailed':
return ShareStatus.rejectFailed;
case 'Sharing':
return ShareStatus.sharing;
case 'ShareFailed':
return ShareStatus.shareFailed;
case 'Deleted':
return ShareStatus.deleted;
case 'Deleting':
return ShareStatus.deleting;
}
throw Exception('$this is not known in enum ShareStatus');
}