Retrofit
.Builder()
.baseUrl(ImageSearchApi.BASE_URL)
.addConverterFactory(
MoshiConverterFactory.create(
Moshi.Builder()
.add(SearchFilter::class.java, SearchFilterJsonAdapter())
.build()
))
.build()
.create()
@Query("tbs")
filter: SearchFilter?
Retrofit ignores a moshi JsonAdapter, it's not calling toJson() for the query param
Retrofit ignores a moshi JsonAdapter, it's not calling toJson() for the query param