toNodegroupStatus method

NodegroupStatus toNodegroupStatus()

Implementation

NodegroupStatus toNodegroupStatus() {
  switch (this) {
    case 'CREATING':
      return NodegroupStatus.creating;
    case 'ACTIVE':
      return NodegroupStatus.active;
    case 'UPDATING':
      return NodegroupStatus.updating;
    case 'DELETING':
      return NodegroupStatus.deleting;
    case 'CREATE_FAILED':
      return NodegroupStatus.createFailed;
    case 'DELETE_FAILED':
      return NodegroupStatus.deleteFailed;
    case 'DEGRADED':
      return NodegroupStatus.degraded;
  }
  throw Exception('$this is not known in enum NodegroupStatus');
}