toBrokerState method

BrokerState toBrokerState()

Implementation

BrokerState toBrokerState() {
  switch (this) {
    case 'CREATION_IN_PROGRESS':
      return BrokerState.creationInProgress;
    case 'CREATION_FAILED':
      return BrokerState.creationFailed;
    case 'DELETION_IN_PROGRESS':
      return BrokerState.deletionInProgress;
    case 'RUNNING':
      return BrokerState.running;
    case 'REBOOT_IN_PROGRESS':
      return BrokerState.rebootInProgress;
  }
  throw Exception('$this is not known in enum BrokerState');
}