Colton Idle
07/15/2022, 12:56 AMval cardsJsonResponse: String = ...
// We can just use a reified extension!
val adapter = moshi.adapter<List<Card>>()
val cards: List<Card> = adapter.fromJson(cardsJsonResponse)
Cool. Seems simple enough:
val adapter = moshi.adapter<List<Book>>()
Compilation error: None of the following functions can be called with the arguments supplied.