toInstanceRefreshStatus method
Implementation
InstanceRefreshStatus toInstanceRefreshStatus() {
switch (this) {
case 'Pending':
return InstanceRefreshStatus.pending;
case 'InProgress':
return InstanceRefreshStatus.inProgress;
case 'Successful':
return InstanceRefreshStatus.successful;
case 'Failed':
return InstanceRefreshStatus.failed;
case 'Cancelling':
return InstanceRefreshStatus.cancelling;
case 'Cancelled':
return InstanceRefreshStatus.cancelled;
}
throw Exception('$this is not known in enum InstanceRefreshStatus');
}