Package-level declarations
Types
Link copied to clipboard
@Serializable
A copy of ExportedSequence where elements are DTO. You can utilize convertExportedSequenceToDto to convert ExportedSequence to ExportedSequenceDto.
Link copied to clipboard
typealias ExportedSequenceWithOptionalDto<TEntity, TDto> = EntityWithOptionalDto<ExportedSequence<TEntity>, ExportedSequenceDto<TDto>>
A pair of ExportedSequence represented as an entity and optional ExportedSequenceDto represented as a DTO.
Link copied to clipboard
Functions
Link copied to clipboard
suspend fun <TEntity : Entity<TEntity>, TDto : Any> DtoConverter<TEntity, TDto>.convertExportedSequenceToDto(exportedSequence: ExportedSequence<TEntity>): ExportedSequenceDto<TDto>
Converts given exportedSequence to ExportedSequenceDto.
Link copied to clipboard
suspend fun <TEntity : Entity<TEntity>, TDto : Any> DtoConverter<TEntity, TDto>.convertExportedSequenceToDtoIf(exportedSequence: ExportedSequence<TEntity>, predicate: () -> Boolean): ExportedSequenceDto<TDto>?
Converts given exportedSequence to ExportedSequenceDto if the given predicate matches. Returns null
otherwise.