123
This commit is contained in:
11
src/main/kotlin/data/mapper/BookingMapper.kt
Normal file
11
src/main/kotlin/data/mapper/BookingMapper.kt
Normal file
@@ -0,0 +1,11 @@
|
||||
package com.example.data.mapper
|
||||
|
||||
import com.example.data.remote.dto.BookingResponse
|
||||
import com.example.domain.models.Booking
|
||||
|
||||
fun BookingResponse.toDomain(): Booking {
|
||||
return Booking(
|
||||
room = room,
|
||||
time = time
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user