toggle menu
exkt
1.4.3
common
switch theme
search in API
exkt-dto
/
dev.d1s.exkt.dto
/
convertToDtoIf
convert
To
Dto
If
suspend
fun
<
TEntity
:
Any
,
TDto
:
Any
>
DtoConverter
<
TEntity
,
TDto
>
.
convertToDtoIf
(
entity
:
TEntity
,
predicate
:
(
)
->
Boolean
)
:
TDto
?
Converts given
entity
to
DTO
if the given
predicate
matches. Returns
null
otherwise.