content: /*
   * 支付宝开放平台API
   * 支付宝开放平台v3协议文档
   *
   * The version of the OpenAPI document: 2025-08-26
   * 
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   */
  
  
  package com.alipay.v3.model;
  
  import java.util.Objects;
  import java.util.Arrays;
  import com.alipay.v3.model.AddressInfo;
  import com.alipay.v3.model.ComplexBusinessTime;
  import com.alipay.v3.model.ShopBusinessTime;
  import com.google.gson.TypeAdapter;
  import com.google.gson.annotations.JsonAdapter;
  import com.google.gson.annotations.SerializedName;
  import com.google.gson.stream.JsonReader;
  import com.google.gson.stream.JsonWriter;
  import io.swagger.annotations.ApiModel;
  import io.swagger.annotations.ApiModelProperty;
  import java.io.IOException;
  import java.util.ArrayList;
  import java.util.List;
  
  import com.google.gson.Gson;
  import com.google.gson.GsonBuilder;
  import com.google.gson.JsonArray;
  import com.google.gson.JsonDeserializationContext;
  import com.google.gson.JsonDeserializer;
  import com.google.gson.JsonElement;
  import com.google.gson.JsonObject;
  import com.google.gson.JsonParseException;
  import com.google.gson.TypeAdapterFactory;
  import com.google.gson.reflect.TypeToken;
  
  import java.lang.reflect.Type;
  import java.util.HashMap;
  import java.util.HashSet;
  import java.util.Map;
  import java.util.Map.Entry;
  import java.util.Set;
  
  import com.alipay.v3.JSON;
  
  /**
   * ShopQueryOpenApiVO
   */
  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
  public class ShopQueryOpenApiVO {
    public static final String SERIALIZED_NAME_BUSINESS_ADDRESS = "business_address";
    @SerializedName(SERIALIZED_NAME_BUSINESS_ADDRESS)
    private AddressInfo businessAddress;
  
    public static final String SERIALIZED_NAME_BUSINESS_TIME = "business_time";
    @SerializedName(SERIALIZED_NAME_BUSINESS_TIME)
    private List<ShopBusinessTime> businessTime = null;
  
    public static final String SERIALIZED_NAME_CONTACT_MOBILE = "contact_mobile";
    @SerializedName(SERIALIZED_NAME_CONTACT_MOBILE)
    private String contactMobile;
  
    public static final String SERIALIZED_NAME_CONTACT_PHONE = "contact_phone";
    @SerializedName(SERIALIZED_NAME_CONTACT_PHONE)
    private String contactPhone;
  
    public static final String SERIALIZED_NAME_NEW_BUSINESS_TIME = "new_business_time";
    @SerializedName(SERIALIZED_NAME_NEW_BUSINESS_TIME)
    private List<ComplexBusinessTime> newBusinessTime = null;
  
    public static final String SERIALIZED_NAME_NEW_SHOP_CATEGORY = "new_shop_category";
    @SerializedName(SERIALIZED_NAME_NEW_SHOP_CATEGORY)
    private String newShopCategory;
  
    public static final String SERIALIZED_NAME_SHOP_CATEGORY = "shop_category";
    @SerializedName(SERIALIZED_NAME_SHOP_CATEGORY)
    private String shopCategory;
  
    public static final String SERIALIZED_NAME_SHOP_ID = "shop_id";
    @SerializedName(SERIALIZED_NAME_SHOP_ID)
    private String shopId;
  
    public static final String SERIALIZED_NAME_SHOP_INFO_STATUS = "shop_info_status";
    @SerializedName(SERIALIZED_NAME_SHOP_INFO_STATUS)
    private String shopInfoStatus;
  
    public static final String SERIALIZED_NAME_SHOP_NAME = "shop_name";
    @SerializedName(SERIALIZED_NAME_SHOP_NAME)
    private String shopName;
  
    public static final String SERIALIZED_NAME_SHOP_STATUS = "shop_status";
    @SerializedName(SERIALIZED_NAME_SHOP_STATUS)
    private String shopStatus;
  
    public static final String SERIALIZED_NAME_SHOP_TYPE = "shop_type";
    @SerializedName(SERIALIZED_NAME_SHOP_TYPE)
    private String shopType;
  
    public static final String SERIALIZED_NAME_STORE_ID = "store_id";
    @SerializedName(SERIALIZED_NAME_STORE_ID)
    private String storeId;
  
    public ShopQueryOpenApiVO() { 
    }
  
    public ShopQueryOpenApiVO businessAddress(AddressInfo businessAddress) {
      
      this.businessAddress = businessAddress;
      return this;
    }
  
     /**
     * Get businessAddress
     * @return businessAddress
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(value = "")
  
    public AddressInfo getBusinessAddress() {
      return businessAddress;
    }
  
  
    public void setBusinessAddress(AddressInfo businessAddress) {
      this.businessAddress = businessAddress;
    }
  
  
    public ShopQueryOpenApiVO businessTime(List<ShopBusinessTime> businessTime) {
      
      this.businessTime = businessTime;
      return this;
    }
  
    public ShopQueryOpenApiVO addBusinessTimeItem(ShopBusinessTime businessTimeItem) {
      if (this.businessTime == null) {
        this.businessTime = new ArrayList<>();
      }
      this.businessTime.add(businessTimeItem);
      return this;
    }
  
     /**
     * 店铺经营时间
     * @return businessTime
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(value = "店铺经营时间")
  
    public List<ShopBusinessTime> getBusinessTime() {
      return businessTime;
    }
  
  
    public void setBusinessTime(List<ShopBusinessTime> businessTime) {
      this.businessTime = businessTime;
    }
  
  
    public ShopQueryOpenApiVO contactMobile(String contactMobile) {
      
      this.contactMobile = contactMobile;
      return this;
    }
  
     /**
     * 店铺联系手机
     * @return contactMobile
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "13901390139", value = "店铺联系手机")
  
    public String getContactMobile() {
      return contactMobile;
    }
  
  
    public void setContactMobile(String contactMobile) {
      this.contactMobile = contactMobile;
    }
  
  
    public ShopQueryOpenApiVO contactPhone(String contactPhone) {
      
      this.contactPhone = contactPhone;
      return this;
    }
  
     /**
     * 店铺的联系固话
     * @return contactPhone
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "010-62286228", value = "店铺的联系固话")
  
    public String getContactPhone() {
      return contactPhone;
    }
  
  
    public void setContactPhone(String contactPhone) {
      this.contactPhone = contactPhone;
    }
  
  
    public ShopQueryOpenApiVO newBusinessTime(List<ComplexBusinessTime> newBusinessTime) {
      
      this.newBusinessTime = newBusinessTime;
      return this;
    }
  
    public ShopQueryOpenApiVO addNewBusinessTimeItem(ComplexBusinessTime newBusinessTimeItem) {
      if (this.newBusinessTime == null) {
        this.newBusinessTime = new ArrayList<>();
      }
      this.newBusinessTime.add(newBusinessTimeItem);
      return this;
    }
  
     /**
     * 门店营业时间，支持一周7天，支持1天内多时间段
     * @return newBusinessTime
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(value = "门店营业时间，支持一周7天，支持1天内多时间段")
  
    public List<ComplexBusinessTime> getNewBusinessTime() {
      return newBusinessTime;
    }
  
  
    public void setNewBusinessTime(List<ComplexBusinessTime> newBusinessTime) {
      this.newBusinessTime = newBusinessTime;
    }
  
  
    public ShopQueryOpenApiVO newShopCategory(String newShopCategory) {
      
      this.newShopCategory = newShopCategory;
      return this;
    }
  
     /**
     * 新版门店类目标准二级类目code。类目标准及与原shop_category映射关系参见文档https://gw.alipayobjects.com/os/bmw-prod/4b3f82df-e53e-4b84-bc41-fe025101e726.xlsx
     * @return newShopCategory
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "B0001", value = "新版门店类目标准二级类目code。类目标准及与原shop_category映射关系参见文档https://gw.alipayobjects.com/os/bmw-prod/4b3f82df-e53e-4b84-bc41-fe025101e726.xlsx")
  
    public String getNewShopCategory() {
      return newShopCategory;
    }
  
  
    public void setNewShopCategory(String newShopCategory) {
      this.newShopCategory = newShopCategory;
    }
  
  
    public ShopQueryOpenApiVO shopCategory(String shopCategory) {
      
      this.shopCategory = shopCategory;
      return this;
    }
  
     /**
     * 店铺类目.取值参见文件&lt;a href&#x3D;\&quot;https://mif-pub.alipayobjects.com/ShopCategory.xlsx\&quot;&gt;文件&lt;/a&gt;中的三级门店类目
     * @return shopCategory
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "1002", value = "店铺类目.取值参见文件<a href=\"https://mif-pub.alipayobjects.com/ShopCategory.xlsx\">文件</a>中的三级门店类目")
  
    public String getShopCategory() {
      return shopCategory;
    }
  
  
    public void setShopCategory(String shopCategory) {
      this.shopCategory = shopCategory;
    }
  
  
    public ShopQueryOpenApiVO shopId(String shopId) {
      
      this.shopId = shopId;
      return this;
    }
  
     /**
     * 蚂蚁店铺id
     * @return shopId
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "2018011900502000000005124744", value = "蚂蚁店铺id")
  
    public String getShopId() {
      return shopId;
    }
  
  
    public void setShopId(String shopId) {
      this.shopId = shopId;
    }
  
  
    public ShopQueryOpenApiVO shopInfoStatus(String shopInfoStatus) {
      
      this.shopInfoStatus = shopInfoStatus;
      return this;
    }
  
     /**
     * 当前名称、地址、经纬度信息准确一致，可用于数字化经营场景消费(如商品、券、消费圈等场域的分发)，不影响门店支付结算
     * @return shopInfoStatus
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "01", value = "当前名称、地址、经纬度信息准确一致，可用于数字化经营场景消费(如商品、券、消费圈等场域的分发)，不影响门店支付结算")
  
    public String getShopInfoStatus() {
      return shopInfoStatus;
    }
  
  
    public void setShopInfoStatus(String shopInfoStatus) {
      this.shopInfoStatus = shopInfoStatus;
    }
  
  
    public ShopQueryOpenApiVO shopName(String shopName) {
      
      this.shopName = shopName;
      return this;
    }
  
     /**
     * 店铺名称
     * @return shopName
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "支付宝东门小卖铺", value = "店铺名称")
  
    public String getShopName() {
      return shopName;
    }
  
  
    public void setShopName(String shopName) {
      this.shopName = shopName;
    }
  
  
    public ShopQueryOpenApiVO shopStatus(String shopStatus) {
      
      this.shopStatus = shopStatus;
      return this;
    }
  
     /**
     * 门店状态
     * @return shopStatus
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "01", value = "门店状态")
  
    public String getShopStatus() {
      return shopStatus;
    }
  
  
    public void setShopStatus(String shopStatus) {
      this.shopStatus = shopStatus;
    }
  
  
    public ShopQueryOpenApiVO shopType(String shopType) {
      
      this.shopType = shopType;
      return this;
    }
  
     /**
     * 店铺经营类型
     * @return shopType
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "01", value = "店铺经营类型")
  
    public String getShopType() {
      return shopType;
    }
  
  
    public void setShopType(String shopType) {
      this.shopType = shopType;
    }
  
  
    public ShopQueryOpenApiVO storeId(String storeId) {
      
      this.storeId = storeId;
      return this;
    }
  
     /**
     * 门店编号，表示该门店在该商户角色id(直连pid，间连smid)下，由商户自己定义的外部门店编号
     * @return storeId
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(example = "NO0001", value = "门店编号，表示该门店在该商户角色id(直连pid，间连smid)下，由商户自己定义的外部门店编号")
  
    public String getStoreId() {
      return storeId;
    }
  
  
    public void setStoreId(String storeId) {
      this.storeId = storeId;
    }
  
    /**
     * A container for additional, undeclared properties.
     * This is a holder for any undeclared properties as specified with
     * the 'additionalProperties' keyword in the OAS document.
     */
    private Map<String, Object> additionalProperties;
  
    /**
     * Set the additional (undeclared) property with the specified name and value.
     * If the property does not already exist, create it otherwise replace it.
     *
     * @param key name of the property
     * @param value value of the property
     * @return the ShopQueryOpenApiVO instance itself
     */
    public ShopQueryOpenApiVO putAdditionalProperty(String key, Object value) {
      if (this.additionalProperties == null) {
          this.additionalProperties = new HashMap<String, Object>();
      }
      this.additionalProperties.put(key, value);
      return this;
    }
  
    /**
     * Return the additional (undeclared) property.
     *
     * @return a map of objects
     */
    public Map<String, Object> getAdditionalProperties() {
      return additionalProperties;
    }
  
    /**
     * Return the additional (undeclared) property with the specified name.
     *
     * @param key name of the property
     * @return an object
     */
    public Object getAdditionalProperty(String key) {
      if (this.additionalProperties == null) {
          return null;
      }
      return this.additionalProperties.get(key);
    }
  
  
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      ShopQueryOpenApiVO shopQueryOpenApiVO = (ShopQueryOpenApiVO) o;
      return Objects.equals(this.businessAddress, shopQueryOpenApiVO.businessAddress) &&
          Objects.equals(this.businessTime, shopQueryOpenApiVO.businessTime) &&
          Objects.equals(this.contactMobile, shopQueryOpenApiVO.contactMobile) &&
          Objects.equals(this.contactPhone, shopQueryOpenApiVO.contactPhone) &&
          Objects.equals(this.newBusinessTime, shopQueryOpenApiVO.newBusinessTime) &&
          Objects.equals(this.newShopCategory, shopQueryOpenApiVO.newShopCategory) &&
          Objects.equals(this.shopCategory, shopQueryOpenApiVO.shopCategory) &&
          Objects.equals(this.shopId, shopQueryOpenApiVO.shopId) &&
          Objects.equals(this.shopInfoStatus, shopQueryOpenApiVO.shopInfoStatus) &&
          Objects.equals(this.shopName, shopQueryOpenApiVO.shopName) &&
          Objects.equals(this.shopStatus, shopQueryOpenApiVO.shopStatus) &&
          Objects.equals(this.shopType, shopQueryOpenApiVO.shopType) &&
          Objects.equals(this.storeId, shopQueryOpenApiVO.storeId)&&
          Objects.equals(this.additionalProperties, shopQueryOpenApiVO.additionalProperties);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(businessAddress, businessTime, contactMobile, contactPhone, newBusinessTime, newShopCategory, shopCategory, shopId, shopInfoStatus, shopName, shopStatus, shopType, storeId, additionalProperties);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class ShopQueryOpenApiVO {\n");
      sb.append("    businessAddress: ").append(toIndentedString(businessAddress)).append("\n");
      sb.append("    businessTime: ").append(toIndentedString(businessTime)).append("\n");
      sb.append("    contactMobile: ").append(toIndentedString(contactMobile)).append("\n");
      sb.append("    contactPhone: ").append(toIndentedString(contactPhone)).append("\n");
      sb.append("    newBusinessTime: ").append(toIndentedString(newBusinessTime)).append("\n");
      sb.append("    newShopCategory: ").append(toIndentedString(newShopCategory)).append("\n");
      sb.append("    shopCategory: ").append(toIndentedString(shopCategory)).append("\n");
      sb.append("    shopId: ").append(toIndentedString(shopId)).append("\n");
      sb.append("    shopInfoStatus: ").append(toIndentedString(shopInfoStatus)).append("\n");
      sb.append("    shopName: ").append(toIndentedString(shopName)).append("\n");
      sb.append("    shopStatus: ").append(toIndentedString(shopStatus)).append("\n");
      sb.append("    shopType: ").append(toIndentedString(shopType)).append("\n");
      sb.append("    storeId: ").append(toIndentedString(storeId)).append("\n");
      sb.append("    additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
      sb.append("}");
      return sb.toString();
    }
  
    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(Object o) {
      if (o == null) {
        return "null";
      }
      return o.toString().replace("\n", "\n    ");
    }
  
  
    public static HashSet<String> openapiFields;
    public static HashSet<String> openapiRequiredFields;
  
    static {
      // a set of all properties/fields (JSON key names)
      openapiFields = new HashSet<String>();
      openapiFields.add("business_address");
      openapiFields.add("business_time");
      openapiFields.add("contact_mobile");
      openapiFields.add("contact_phone");
      openapiFields.add("new_business_time");
      openapiFields.add("new_shop_category");
      openapiFields.add("shop_category");
      openapiFields.add("shop_id");
      openapiFields.add("shop_info_status");
      openapiFields.add("shop_name");
      openapiFields.add("shop_status");
      openapiFields.add("shop_type");
      openapiFields.add("store_id");
  
      // a set of required properties/fields (JSON key names)
      openapiRequiredFields = new HashSet<String>();
    }
  
   /**
    * Validates the JSON Object and throws an exception if issues found
    *
    * @param jsonObj JSON Object
    * @throws IOException if the JSON Object is invalid with respect to ShopQueryOpenApiVO
    */
    public static void validateJsonObject(JsonObject jsonObj) throws IOException {
        if (jsonObj == null) {
          if (ShopQueryOpenApiVO.openapiRequiredFields.isEmpty()) {
            return;
          } else { // has required fields
            throw new IllegalArgumentException(String.format("The required field(s) %s in ShopQueryOpenApiVO is not found in the empty JSON string", ShopQueryOpenApiVO.openapiRequiredFields.toString()));
          }
        }
        // validate the optional field `business_address`
        if (jsonObj.getAsJsonObject("business_address") != null) {
          AddressInfo.validateJsonObject(jsonObj.getAsJsonObject("business_address"));
        }
        JsonArray jsonArraybusinessTime = jsonObj.getAsJsonArray("business_time");
        if (jsonArraybusinessTime != null) {
          // ensure the json data is an array
          if (!jsonObj.get("business_time").isJsonArray()) {
            throw new IllegalArgumentException(String.format("Expected the field `business_time` to be an array in the JSON string but got `%s`", jsonObj.get("business_time").toString()));
          }
  
          // validate the optional field `business_time` (array)
          for (int i = 0; i < jsonArraybusinessTime.size(); i++) {
            ShopBusinessTime.validateJsonObject(jsonArraybusinessTime.get(i).getAsJsonObject());
          };
        }
        if (jsonObj.get("contact_mobile") != null && !jsonObj.get("contact_mobile").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `contact_mobile` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contact_mobile").toString()));
        }
        if (jsonObj.get("contact_phone") != null && !jsonObj.get("contact_phone").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `contact_phone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contact_phone").toString()));
        }
        JsonArray jsonArraynewBusinessTime = jsonObj.getAsJsonArray("new_business_time");
        if (jsonArraynewBusinessTime != null) {
          // ensure the json data is an array
          if (!jsonObj.get("new_business_time").isJsonArray()) {
            throw new IllegalArgumentException(String.format("Expected the field `new_business_time` to be an array in the JSON string but got `%s`", jsonObj.get("new_business_time").toString()));
          }
  
          // validate the optional field `new_business_time` (array)
          for (int i = 0; i < jsonArraynewBusinessTime.size(); i++) {
            ComplexBusinessTime.validateJsonObject(jsonArraynewBusinessTime.get(i).getAsJsonObject());
          };
        }
        if (jsonObj.get("new_shop_category") != null && !jsonObj.get("new_shop_category").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `new_shop_category` to be a primitive type in the JSON string but got `%s`", jsonObj.get("new_shop_category").toString()));
        }
        if (jsonObj.get("shop_category") != null && !jsonObj.get("shop_category").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `shop_category` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shop_category").toString()));
        }
        if (jsonObj.get("shop_id") != null && !jsonObj.get("shop_id").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `shop_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shop_id").toString()));
        }
        if (jsonObj.get("shop_info_status") != null && !jsonObj.get("shop_info_status").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `shop_info_status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shop_info_status").toString()));
        }
        if (jsonObj.get("shop_name") != null && !jsonObj.get("shop_name").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `shop_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shop_name").toString()));
        }
        if (jsonObj.get("shop_status") != null && !jsonObj.get("shop_status").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `shop_status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shop_status").toString()));
        }
        if (jsonObj.get("shop_type") != null && !jsonObj.get("shop_type").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `shop_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shop_type").toString()));
        }
        if (jsonObj.get("store_id") != null && !jsonObj.get("store_id").isJsonPrimitive()) {
          throw new IllegalArgumentException(String.format("Expected the field `store_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("store_id").toString()));
        }
    }
  
    public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
      @SuppressWarnings("unchecked")
      @Override
      public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {
         if (!ShopQueryOpenApiVO.class.isAssignableFrom(type.getRawType())) {
           return null; // this class only serializes 'ShopQueryOpenApiVO' and its subtypes
         }
         final TypeAdapter<JsonElement> elementAdapter = gson.getAdapter(JsonElement.class);
         final TypeAdapter<ShopQueryOpenApiVO> thisAdapter
                          = gson.getDelegateAdapter(this, TypeToken.get(ShopQueryOpenApiVO.class));
  
         return (TypeAdapter<T>) new TypeAdapter<ShopQueryOpenApiVO>() {
             @Override
             public void write(JsonWriter out, ShopQueryOpenApiVO value) throws IOException {
               JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
               obj.remove("additionalProperties");
               // serialize additonal properties
               if (value.getAdditionalProperties() != null) {
                 for (Map.Entry<String, Object> entry : value.getAdditionalProperties().entrySet()) {
                   if (entry.getValue() instanceof String)
                     obj.addProperty(entry.getKey(), (String) entry.getValue());
                   else if (entry.getValue() instanceof Number)
                     obj.addProperty(entry.getKey(), (Number) entry.getValue());
                   else if (entry.getValue() instanceof Boolean)
                     obj.addProperty(entry.getKey(), (Boolean) entry.getValue());
                   else if (entry.getValue() instanceof Character)
                     obj.addProperty(entry.getKey(), (Character) entry.getValue());
                   else {
                     obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject());
                   }
                 }
               }
               elementAdapter.write(out, obj);
             }
  
             @Override
             public ShopQueryOpenApiVO read(JsonReader in) throws IOException {
               JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject();
               validateJsonObject(jsonObj);
               // store additional fields in the deserialized instance
               ShopQueryOpenApiVO instance = thisAdapter.fromJsonTree(jsonObj);
               for (Map.Entry<String, JsonElement> entry : jsonObj.entrySet()) {
                 if (!openapiFields.contains(entry.getKey())) {
                   if (entry.getValue().isJsonPrimitive()) { // primitive type
                     if (entry.getValue().getAsJsonPrimitive().isString())
                       instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString());
                     else if (entry.getValue().getAsJsonPrimitive().isNumber())
                       instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber());
                     else if (entry.getValue().getAsJsonPrimitive().isBoolean())
                       instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean());
                     else
                       throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString()));
                   } else { // non-primitive type
                     instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class));
                   }
                 }
               }
               return instance;
             }
  
         }.nullSafe();
      }
    }
  
   /**
    * Create an instance of ShopQueryOpenApiVO given an JSON string
    *
    * @param jsonString JSON string
    * @return An instance of ShopQueryOpenApiVO
    * @throws IOException if the JSON string is invalid with respect to ShopQueryOpenApiVO
    */
    public static ShopQueryOpenApiVO fromJson(String jsonString) throws IOException {
      return JSON.getGson().fromJson(jsonString, ShopQueryOpenApiVO.class);
    }
  
   /**
    * Convert an instance of ShopQueryOpenApiVO to an JSON string
    *
    * @return JSON string
    */
    public String toJson() {
      return JSON.getGson().toJson(this);
    }
  }
  
  