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