toShareStatus method
Implementation
ShareStatus toShareStatus() {
switch (this) {
case 'NOT_SHARED':
return ShareStatus.notShared;
case 'SHARED_WITH_ME':
return ShareStatus.sharedWithMe;
case 'SHARED_BY_ME':
return ShareStatus.sharedByMe;
}
throw Exception('$this is not known in enum ShareStatus');
}