xxxxxxxxxx
fun ApiBook.asBook() = Book(
id = id,
title = title,
author = author,
dateOfPublication = dateOfPublication,
price = price,
currencyCode = currencyCode,
)
fun Book.asApiBook() = ApiBook(
id = id,
title = title,
author = author,
dateOfPublication = dateOfPublication,
price = price,
currencyCode = currencyCode,
)