toNodeStatus method
Implementation
NodeStatus toNodeStatus() {
switch (this) {
case 'CREATING':
return NodeStatus.creating;
case 'AVAILABLE':
return NodeStatus.available;
case 'UNHEALTHY':
return NodeStatus.unhealthy;
case 'CREATE_FAILED':
return NodeStatus.createFailed;
case 'UPDATING':
return NodeStatus.updating;
case 'DELETING':
return NodeStatus.deleting;
case 'DELETED':
return NodeStatus.deleted;
case 'FAILED':
return NodeStatus.failed;
}
throw Exception('$this is not known in enum NodeStatus');
}