convertToDtoListIf

suspend fun <TEntity : Any, TDto : Any> DtoConverter<TEntity, TDto>.convertToDtoListIf(entities: List<TEntity>, predicate: () -> Boolean): List<TDto>?

Converts given entities to DTO list if the given predicate matches. Returns null otherwise.