toValue method
Implementation
String toValue() {
switch (this) {
case InstanceStatus.pending:
return 'Pending';
case InstanceStatus.inProgress:
return 'InProgress';
case InstanceStatus.succeeded:
return 'Succeeded';
case InstanceStatus.failed:
return 'Failed';
case InstanceStatus.skipped:
return 'Skipped';
case InstanceStatus.unknown:
return 'Unknown';
case InstanceStatus.ready:
return 'Ready';
}
}