import java.io.Serializable import java.util.* import com.github.kittinunf.fuel.core.ResponseDeserializable import com.google.gson.Gson class MerchantGroup: Serializable { var id: UUID var category: ProductCategory var merchants: List constructor(id: UUID, category: ProductCategory, merchants: List) { this.id = id this.category = category this.merchants = merchants } } class Deserializer: ResponseDeserializable> { override fun deserialize(content: String): Array? = Gson().fromJson(content, Array::class.java) }