<Moshi: Problems serializing List&lt;MyClass&gt;> ...
# stackoverflow
r
Moshi: Problems serializing List<MyClass> I'm migrating Gson to Moshi, and I'm having problems serializing List. I have no problem with "plain" objects, but with Lists. I have a class ImageDTO (including a Moshi adapter) like this: class ImageDTO ( val idImage: String = "", val idQuestion: String = "", val image: String = "", val timestamp: Int = 0, var saveMode: String = "" ) { @JsonClass(generateAdapter = true) class ImageDTOIntermediate( @Json(name = "idImage") val idImage: String,...