toResourceShareStatus method
Implementation
ResourceShareStatus toResourceShareStatus() {
switch (this) {
case 'PENDING':
return ResourceShareStatus.pending;
case 'ACTIVE':
return ResourceShareStatus.active;
case 'FAILED':
return ResourceShareStatus.failed;
case 'DELETING':
return ResourceShareStatus.deleting;
case 'DELETED':
return ResourceShareStatus.deleted;
}
throw Exception('$this is not known in enum ResourceShareStatus');
}