toValue method
Implementation
String toValue() {
switch (this) {
case ReplicationJobState.pending:
return 'PENDING';
case ReplicationJobState.active:
return 'ACTIVE';
case ReplicationJobState.failed:
return 'FAILED';
case ReplicationJobState.deleting:
return 'DELETING';
case ReplicationJobState.deleted:
return 'DELETED';
case ReplicationJobState.completed:
return 'COMPLETED';
case ReplicationJobState.pausedOnFailure:
return 'PAUSED_ON_FAILURE';
case ReplicationJobState.failing:
return 'FAILING';
}
}