toCommandPluginStatus method

CommandPluginStatus toCommandPluginStatus()

Implementation

CommandPluginStatus toCommandPluginStatus() {
  switch (this) {
    case 'Pending':
      return CommandPluginStatus.pending;
    case 'InProgress':
      return CommandPluginStatus.inProgress;
    case 'Success':
      return CommandPluginStatus.success;
    case 'TimedOut':
      return CommandPluginStatus.timedOut;
    case 'Cancelled':
      return CommandPluginStatus.cancelled;
    case 'Failed':
      return CommandPluginStatus.failed;
  }
  throw Exception('$this is not known in enum CommandPluginStatus');
}