mobilka_norm/src/main/kotlin/domain/mapper.kt
2025-01-27 15:45:00 +03:00

13 lines
358 B
Kotlin

package org.example.domain
import org.example.data.model.UserDTO
import org.example.domain.response.UserResponse
fun UserDtoToUserResponse(userDTO: UserDTO) = UserResponse(
lastName = userDTO.lastName,
firstName = userDTO.firstName,
email = userDTO.email,
phone = userDTO.phone,
userId = userDTO.userId,
address = userDTO.address,
)