OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.acceleratedmobilepageurl.v1; | 3 library googleapis.acceleratedmobilepageurl.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 ampUrl = _json["ampUrl"]; | 98 ampUrl = _json["ampUrl"]; |
99 } | 99 } |
100 if (_json.containsKey("cdnAmpUrl")) { | 100 if (_json.containsKey("cdnAmpUrl")) { |
101 cdnAmpUrl = _json["cdnAmpUrl"]; | 101 cdnAmpUrl = _json["cdnAmpUrl"]; |
102 } | 102 } |
103 if (_json.containsKey("originalUrl")) { | 103 if (_json.containsKey("originalUrl")) { |
104 originalUrl = _json["originalUrl"]; | 104 originalUrl = _json["originalUrl"]; |
105 } | 105 } |
106 } | 106 } |
107 | 107 |
108 core.Map toJson() { | 108 core.Map<core.String, core.Object> toJson() { |
109 var _json = new core.Map(); | 109 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
110 if (ampUrl != null) { | 110 if (ampUrl != null) { |
111 _json["ampUrl"] = ampUrl; | 111 _json["ampUrl"] = ampUrl; |
112 } | 112 } |
113 if (cdnAmpUrl != null) { | 113 if (cdnAmpUrl != null) { |
114 _json["cdnAmpUrl"] = cdnAmpUrl; | 114 _json["cdnAmpUrl"] = cdnAmpUrl; |
115 } | 115 } |
116 if (originalUrl != null) { | 116 if (originalUrl != null) { |
117 _json["originalUrl"] = originalUrl; | 117 _json["originalUrl"] = originalUrl; |
118 } | 118 } |
119 return _json; | 119 return _json; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 errorCode = _json["errorCode"]; | 157 errorCode = _json["errorCode"]; |
158 } | 158 } |
159 if (_json.containsKey("errorMessage")) { | 159 if (_json.containsKey("errorMessage")) { |
160 errorMessage = _json["errorMessage"]; | 160 errorMessage = _json["errorMessage"]; |
161 } | 161 } |
162 if (_json.containsKey("originalUrl")) { | 162 if (_json.containsKey("originalUrl")) { |
163 originalUrl = _json["originalUrl"]; | 163 originalUrl = _json["originalUrl"]; |
164 } | 164 } |
165 } | 165 } |
166 | 166 |
167 core.Map toJson() { | 167 core.Map<core.String, core.Object> toJson() { |
168 var _json = new core.Map(); | 168 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
169 if (errorCode != null) { | 169 if (errorCode != null) { |
170 _json["errorCode"] = errorCode; | 170 _json["errorCode"] = errorCode; |
171 } | 171 } |
172 if (errorMessage != null) { | 172 if (errorMessage != null) { |
173 _json["errorMessage"] = errorMessage; | 173 _json["errorMessage"] = errorMessage; |
174 } | 174 } |
175 if (originalUrl != null) { | 175 if (originalUrl != null) { |
176 _json["originalUrl"] = originalUrl; | 176 _json["originalUrl"] = originalUrl; |
177 } | 177 } |
178 return _json; | 178 return _json; |
(...skipping 29 matching lines...) Expand all Loading... |
208 | 208 |
209 BatchGetAmpUrlsRequest.fromJson(core.Map _json) { | 209 BatchGetAmpUrlsRequest.fromJson(core.Map _json) { |
210 if (_json.containsKey("lookupStrategy")) { | 210 if (_json.containsKey("lookupStrategy")) { |
211 lookupStrategy = _json["lookupStrategy"]; | 211 lookupStrategy = _json["lookupStrategy"]; |
212 } | 212 } |
213 if (_json.containsKey("urls")) { | 213 if (_json.containsKey("urls")) { |
214 urls = _json["urls"]; | 214 urls = _json["urls"]; |
215 } | 215 } |
216 } | 216 } |
217 | 217 |
218 core.Map toJson() { | 218 core.Map<core.String, core.Object> toJson() { |
219 var _json = new core.Map(); | 219 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
220 if (lookupStrategy != null) { | 220 if (lookupStrategy != null) { |
221 _json["lookupStrategy"] = lookupStrategy; | 221 _json["lookupStrategy"] = lookupStrategy; |
222 } | 222 } |
223 if (urls != null) { | 223 if (urls != null) { |
224 _json["urls"] = urls; | 224 _json["urls"] = urls; |
225 } | 225 } |
226 return _json; | 226 return _json; |
227 } | 227 } |
228 } | 228 } |
229 | 229 |
(...skipping 13 matching lines...) Expand all Loading... |
243 | 243 |
244 BatchGetAmpUrlsResponse.fromJson(core.Map _json) { | 244 BatchGetAmpUrlsResponse.fromJson(core.Map _json) { |
245 if (_json.containsKey("ampUrls")) { | 245 if (_json.containsKey("ampUrls")) { |
246 ampUrls = _json["ampUrls"].map((value) => new AmpUrl.fromJson(value)).toLi
st(); | 246 ampUrls = _json["ampUrls"].map((value) => new AmpUrl.fromJson(value)).toLi
st(); |
247 } | 247 } |
248 if (_json.containsKey("urlErrors")) { | 248 if (_json.containsKey("urlErrors")) { |
249 urlErrors = _json["urlErrors"].map((value) => new AmpUrlError.fromJson(val
ue)).toList(); | 249 urlErrors = _json["urlErrors"].map((value) => new AmpUrlError.fromJson(val
ue)).toList(); |
250 } | 250 } |
251 } | 251 } |
252 | 252 |
253 core.Map toJson() { | 253 core.Map<core.String, core.Object> toJson() { |
254 var _json = new core.Map(); | 254 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
255 if (ampUrls != null) { | 255 if (ampUrls != null) { |
256 _json["ampUrls"] = ampUrls.map((value) => (value).toJson()).toList(); | 256 _json["ampUrls"] = ampUrls.map((value) => (value).toJson()).toList(); |
257 } | 257 } |
258 if (urlErrors != null) { | 258 if (urlErrors != null) { |
259 _json["urlErrors"] = urlErrors.map((value) => (value).toJson()).toList(); | 259 _json["urlErrors"] = urlErrors.map((value) => (value).toJson()).toList(); |
260 } | 260 } |
261 return _json; | 261 return _json; |
262 } | 262 } |
263 } | 263 } |
OLD | NEW |