toUpdateStatus method
Implementation
UpdateStatus toUpdateStatus() {
switch (this) {
case 'InProgress':
return UpdateStatus.inProgress;
case 'Failed':
return UpdateStatus.failed;
case 'Cancelled':
return UpdateStatus.cancelled;
case 'Successful':
return UpdateStatus.successful;
}
throw Exception('$this is not known in enum UpdateStatus');
}