我正在尝试使用事件变量来编辑元素的CSS。我收到的错误消息是,即使事件监听器应传递事件,事件也未定义。
感谢您的帮助
import com.squareup.moshi.Json
/**
* Data is the main name of this class because there was no name for the main JSON Object of which stores was a sub-object of.
* Therefore Data houses a List<Store> member that would hold all the actual stores
*/
data class Data(
@field:Json(name = "stores") val stores: List<Store>
)
data class Store(
val address: String,val city: String,val name: String,val latitude: String,val zipcode: String,val storeLogoURL: String,val phone: String,val longitude: String,val storeID: String,val state: String
)