|
2 | 2 |
|
3 | 3 | import com.google.gson.Gson; |
4 | 4 | import com.google.gson.GsonBuilder; |
5 | | -import com.google.gson.JsonObject; |
| 5 | +import com.google.gson.JsonElement; |
6 | 6 | import com.google.gson.annotations.SerializedName; |
7 | 7 |
|
8 | 8 | import java.io.Serializable; |
@@ -66,7 +66,7 @@ public String getDayOfWeek() { |
66 | 66 | @SerializedName("lon") |
67 | 67 | private double longitude; |
68 | 68 | private OpeningHourSpecification[] openingHoursSpecification; |
69 | | - private JsonObject external; |
| 69 | + private JsonElement external; |
70 | 70 |
|
71 | 71 | public String getId() { |
72 | 72 | return id; |
@@ -120,7 +120,7 @@ public Map<String, Href> getLinks() { |
120 | 120 | return links; |
121 | 121 | } |
122 | 122 |
|
123 | | - public JsonObject getExternal() { |
| 123 | + public JsonElement getExternal() { |
124 | 124 | return external; |
125 | 125 | } |
126 | 126 |
|
@@ -149,7 +149,7 @@ public static class Builder { |
149 | 149 | private double latitude; |
150 | 150 | private double longitude; |
151 | 151 | private OpeningHourSpecification[] openingHoursSpecification; |
152 | | - private JsonObject external; |
| 152 | + private JsonElement external; |
153 | 153 |
|
154 | 154 | public Builder id(String id) { |
155 | 155 | this.id = id; |
@@ -207,7 +207,7 @@ public Builder openingHours(OpeningHourSpecification[] openingHours) { |
207 | 207 | return this; |
208 | 208 | } |
209 | 209 |
|
210 | | - public Builder external(JsonObject external) { |
| 210 | + public Builder external(JsonElement external) { |
211 | 211 | this.external = external; |
212 | 212 | return this; |
213 | 213 | } |
|
0 commit comments