toTargetState method

TargetState toTargetState()

Implementation

TargetState toTargetState() {
  switch (this) {
    case 'REGISTERING':
      return TargetState.registering;
    case 'AVAILABLE':
      return TargetState.available;
    case 'UNAVAILABLE':
      return TargetState.unavailable;
  }
  throw Exception('$this is not known in enum TargetState');
}