private fun getCompanyNameErrorsOrNull(errorType: ErrorType): InputErrors? { val companyNameError = InputValidator.getDqmErrorIdOrNull(errorType) return if (companyNameError == null) { null } else { InputErrors(companyNameError,null, null,null,null,null,null,null,null) } }
Util function for checking if the company name field has any error or not