构造器和说明 |
---|
WxMenuGsonAdapter() |
限定符和类型 | 方法和说明 |
---|---|
protected WxMenu |
buildMenuFromJson(com.google.gson.JsonArray buttonsJson) |
protected WxMenuButton |
convertFromJson(com.google.gson.JsonObject json) |
protected com.google.gson.JsonObject |
convertToJson(WxMenuButton button) |
protected com.google.gson.JsonObject |
convertToJson(WxMenuRule menuRule) |
WxMenu |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(WxMenu menu,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public com.google.gson.JsonElement serialize(WxMenu menu, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
在接口中 com.google.gson.JsonSerializer<WxMenu>
protected com.google.gson.JsonObject convertToJson(WxMenuButton button)
protected com.google.gson.JsonObject convertToJson(WxMenuRule menuRule)
public WxMenu deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
在接口中 com.google.gson.JsonDeserializer<WxMenu>
com.google.gson.JsonParseException
protected WxMenu buildMenuFromJson(com.google.gson.JsonArray buttonsJson)
protected WxMenuButton convertFromJson(com.google.gson.JsonObject json)
Copyright © 2024. All rights reserved.