toStatus method
Implementation
Status toStatus() {
switch (this) {
case 'Active':
return Status.active;
case 'Inactive':
return Status.inactive;
case 'Pending':
return Status.pending;
case 'Failed':
return Status.failed;
}
throw Exception('$this is not known in enum Status');
}