toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CommandPluginStatus.pending:
      return 'Pending';
    case CommandPluginStatus.inProgress:
      return 'InProgress';
    case CommandPluginStatus.success:
      return 'Success';
    case CommandPluginStatus.timedOut:
      return 'TimedOut';
    case CommandPluginStatus.cancelled:
      return 'Cancelled';
    case CommandPluginStatus.failed:
      return 'Failed';
  }
}