toValue method
Implementation
String toValue() {
switch (this) {
case ImportStatus.importInProgress:
return 'IMPORT_IN_PROGRESS';
case ImportStatus.importComplete:
return 'IMPORT_COMPLETE';
case ImportStatus.importCompleteWithErrors:
return 'IMPORT_COMPLETE_WITH_ERRORS';
case ImportStatus.importFailed:
return 'IMPORT_FAILED';
case ImportStatus.importFailedServerLimitExceeded:
return 'IMPORT_FAILED_SERVER_LIMIT_EXCEEDED';
case ImportStatus.importFailedRecordLimitExceeded:
return 'IMPORT_FAILED_RECORD_LIMIT_EXCEEDED';
case ImportStatus.deleteInProgress:
return 'DELETE_IN_PROGRESS';
case ImportStatus.deleteComplete:
return 'DELETE_COMPLETE';
case ImportStatus.deleteFailed:
return 'DELETE_FAILED';
case ImportStatus.deleteFailedLimitExceeded:
return 'DELETE_FAILED_LIMIT_EXCEEDED';
case ImportStatus.internalError:
return 'INTERNAL_ERROR';
}
}