toStatus method
Implementation
Status toStatus() {
switch (this) {
case 'PREPARING':
return Status.preparing;
case 'ACTIVE':
return Status.active;
case 'EXPIRED':
return Status.expired;
}
throw Exception('$this is not known in enum Status');
}