toValue method
Implementation
String toValue() {
switch (this) {
case BackupJobState.created:
return 'CREATED';
case BackupJobState.pending:
return 'PENDING';
case BackupJobState.running:
return 'RUNNING';
case BackupJobState.aborting:
return 'ABORTING';
case BackupJobState.aborted:
return 'ABORTED';
case BackupJobState.completed:
return 'COMPLETED';
case BackupJobState.failed:
return 'FAILED';
case BackupJobState.expired:
return 'EXPIRED';
}
}