so it seems wrapping two data classes in an object...
# android
s
so it seems wrapping two data classes in an object was causing the error when i added the kapt plugin
Copy code
object SectionResponse{
    data class SectionResponse(@SerializedName("type") val feedType:String,
                               @SerializedName("title") val title:String,
                               val content:String,
                               @SerializedName("product_feed") val product:MutableList<Product>,
                               @SerializedName("shop_feed") val shopFeed:MutableList<StoreFeed>
    )
    data class HomeSection(val sections:List<SectionResponse>)
}