Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: generated/googleapis/lib/pagespeedonline/v1.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.pagespeedonline.v1; 3 library googleapis.pagespeedonline.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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs.fromJson(core.Map _j son) { 128 ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs.fromJson(core.Map _j son) {
129 if (_json.containsKey("type")) { 129 if (_json.containsKey("type")) {
130 type = _json["type"]; 130 type = _json["type"];
131 } 131 }
132 if (_json.containsKey("value")) { 132 if (_json.containsKey("value")) {
133 value = _json["value"]; 133 value = _json["value"];
134 } 134 }
135 } 135 }
136 136
137 core.Map toJson() { 137 core.Map<core.String, core.Object> toJson() {
138 var _json = new core.Map(); 138 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
139 if (type != null) { 139 if (type != null) {
140 _json["type"] = type; 140 _json["type"] = type;
141 } 141 }
142 if (value != null) { 142 if (value != null) {
143 _json["value"] = value; 143 _json["value"] = value;
144 } 144 }
145 return _json; 145 return _json;
146 } 146 }
147 } 147 }
148 148
(...skipping 12 matching lines...) Expand all
161 161
162 ResultFormattedResultsRuleResultsValueUrlBlocksHeader.fromJson(core.Map _json) { 162 ResultFormattedResultsRuleResultsValueUrlBlocksHeader.fromJson(core.Map _json) {
163 if (_json.containsKey("args")) { 163 if (_json.containsKey("args")) {
164 args = _json["args"].map((value) => new ResultFormattedResultsRuleResultsV alueUrlBlocksHeaderArgs.fromJson(value)).toList(); 164 args = _json["args"].map((value) => new ResultFormattedResultsRuleResultsV alueUrlBlocksHeaderArgs.fromJson(value)).toList();
165 } 165 }
166 if (_json.containsKey("format")) { 166 if (_json.containsKey("format")) {
167 format = _json["format"]; 167 format = _json["format"];
168 } 168 }
169 } 169 }
170 170
171 core.Map toJson() { 171 core.Map<core.String, core.Object> toJson() {
172 var _json = new core.Map(); 172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
173 if (args != null) { 173 if (args != null) {
174 _json["args"] = args.map((value) => (value).toJson()).toList(); 174 _json["args"] = args.map((value) => (value).toJson()).toList();
175 } 175 }
176 if (format != null) { 176 if (format != null) {
177 _json["format"] = format; 177 _json["format"] = format;
178 } 178 }
179 return _json; 179 return _json;
180 } 180 }
181 } 181 }
182 182
(...skipping 10 matching lines...) Expand all
193 193
194 ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs.fromJson(core.M ap _json) { 194 ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs.fromJson(core.M ap _json) {
195 if (_json.containsKey("type")) { 195 if (_json.containsKey("type")) {
196 type = _json["type"]; 196 type = _json["type"];
197 } 197 }
198 if (_json.containsKey("value")) { 198 if (_json.containsKey("value")) {
199 value = _json["value"]; 199 value = _json["value"];
200 } 200 }
201 } 201 }
202 202
203 core.Map toJson() { 203 core.Map<core.String, core.Object> toJson() {
204 var _json = new core.Map(); 204 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
205 if (type != null) { 205 if (type != null) {
206 _json["type"] = type; 206 _json["type"] = type;
207 } 207 }
208 if (value != null) { 208 if (value != null) {
209 _json["value"] = value; 209 _json["value"] = value;
210 } 210 }
211 return _json; 211 return _json;
212 } 212 }
213 } 213 }
214 214
(...skipping 11 matching lines...) Expand all
226 226
227 ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails.fromJson(core.Map _ json) { 227 ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails.fromJson(core.Map _ json) {
228 if (_json.containsKey("args")) { 228 if (_json.containsKey("args")) {
229 args = _json["args"].map((value) => new ResultFormattedResultsRuleResultsV alueUrlBlocksUrlsDetailsArgs.fromJson(value)).toList(); 229 args = _json["args"].map((value) => new ResultFormattedResultsRuleResultsV alueUrlBlocksUrlsDetailsArgs.fromJson(value)).toList();
230 } 230 }
231 if (_json.containsKey("format")) { 231 if (_json.containsKey("format")) {
232 format = _json["format"]; 232 format = _json["format"];
233 } 233 }
234 } 234 }
235 235
236 core.Map toJson() { 236 core.Map<core.String, core.Object> toJson() {
237 var _json = new core.Map(); 237 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
238 if (args != null) { 238 if (args != null) {
239 _json["args"] = args.map((value) => (value).toJson()).toList(); 239 _json["args"] = args.map((value) => (value).toJson()).toList();
240 } 240 }
241 if (format != null) { 241 if (format != null) {
242 _json["format"] = format; 242 _json["format"] = format;
243 } 243 }
244 return _json; 244 return _json;
245 } 245 }
246 } 246 }
247 247
(...skipping 10 matching lines...) Expand all
258 258
259 ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs.fromJson(core.Ma p _json) { 259 ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs.fromJson(core.Ma p _json) {
260 if (_json.containsKey("type")) { 260 if (_json.containsKey("type")) {
261 type = _json["type"]; 261 type = _json["type"];
262 } 262 }
263 if (_json.containsKey("value")) { 263 if (_json.containsKey("value")) {
264 value = _json["value"]; 264 value = _json["value"];
265 } 265 }
266 } 266 }
267 267
268 core.Map toJson() { 268 core.Map<core.String, core.Object> toJson() {
269 var _json = new core.Map(); 269 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
270 if (type != null) { 270 if (type != null) {
271 _json["type"] = type; 271 _json["type"] = type;
272 } 272 }
273 if (value != null) { 273 if (value != null) {
274 _json["value"] = value; 274 _json["value"] = value;
275 } 275 }
276 return _json; 276 return _json;
277 } 277 }
278 } 278 }
279 279
(...skipping 14 matching lines...) Expand all
294 294
295 ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult.fromJson(core.Map _j son) { 295 ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult.fromJson(core.Map _j son) {
296 if (_json.containsKey("args")) { 296 if (_json.containsKey("args")) {
297 args = _json["args"].map((value) => new ResultFormattedResultsRuleResultsV alueUrlBlocksUrlsResultArgs.fromJson(value)).toList(); 297 args = _json["args"].map((value) => new ResultFormattedResultsRuleResultsV alueUrlBlocksUrlsResultArgs.fromJson(value)).toList();
298 } 298 }
299 if (_json.containsKey("format")) { 299 if (_json.containsKey("format")) {
300 format = _json["format"]; 300 format = _json["format"];
301 } 301 }
302 } 302 }
303 303
304 core.Map toJson() { 304 core.Map<core.String, core.Object> toJson() {
305 var _json = new core.Map(); 305 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
306 if (args != null) { 306 if (args != null) {
307 _json["args"] = args.map((value) => (value).toJson()).toList(); 307 _json["args"] = args.map((value) => (value).toJson()).toList();
308 } 308 }
309 if (format != null) { 309 if (format != null) {
310 _json["format"] = format; 310 _json["format"] = format;
311 } 311 }
312 return _json; 312 return _json;
313 } 313 }
314 } 314 }
315 315
(...skipping 13 matching lines...) Expand all
329 329
330 ResultFormattedResultsRuleResultsValueUrlBlocksUrls.fromJson(core.Map _json) { 330 ResultFormattedResultsRuleResultsValueUrlBlocksUrls.fromJson(core.Map _json) {
331 if (_json.containsKey("details")) { 331 if (_json.containsKey("details")) {
332 details = _json["details"].map((value) => new ResultFormattedResultsRuleRe sultsValueUrlBlocksUrlsDetails.fromJson(value)).toList(); 332 details = _json["details"].map((value) => new ResultFormattedResultsRuleRe sultsValueUrlBlocksUrlsDetails.fromJson(value)).toList();
333 } 333 }
334 if (_json.containsKey("result")) { 334 if (_json.containsKey("result")) {
335 result = new ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult.fro mJson(_json["result"]); 335 result = new ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult.fro mJson(_json["result"]);
336 } 336 }
337 } 337 }
338 338
339 core.Map toJson() { 339 core.Map<core.String, core.Object> toJson() {
340 var _json = new core.Map(); 340 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
341 if (details != null) { 341 if (details != null) {
342 _json["details"] = details.map((value) => (value).toJson()).toList(); 342 _json["details"] = details.map((value) => (value).toJson()).toList();
343 } 343 }
344 if (result != null) { 344 if (result != null) {
345 _json["result"] = (result).toJson(); 345 _json["result"] = (result).toJson();
346 } 346 }
347 return _json; 347 return _json;
348 } 348 }
349 } 349 }
350 350
(...skipping 10 matching lines...) Expand all
361 361
362 ResultFormattedResultsRuleResultsValueUrlBlocks.fromJson(core.Map _json) { 362 ResultFormattedResultsRuleResultsValueUrlBlocks.fromJson(core.Map _json) {
363 if (_json.containsKey("header")) { 363 if (_json.containsKey("header")) {
364 header = new ResultFormattedResultsRuleResultsValueUrlBlocksHeader.fromJso n(_json["header"]); 364 header = new ResultFormattedResultsRuleResultsValueUrlBlocksHeader.fromJso n(_json["header"]);
365 } 365 }
366 if (_json.containsKey("urls")) { 366 if (_json.containsKey("urls")) {
367 urls = _json["urls"].map((value) => new ResultFormattedResultsRuleResultsV alueUrlBlocksUrls.fromJson(value)).toList(); 367 urls = _json["urls"].map((value) => new ResultFormattedResultsRuleResultsV alueUrlBlocksUrls.fromJson(value)).toList();
368 } 368 }
369 } 369 }
370 370
371 core.Map toJson() { 371 core.Map<core.String, core.Object> toJson() {
372 var _json = new core.Map(); 372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
373 if (header != null) { 373 if (header != null) {
374 _json["header"] = (header).toJson(); 374 _json["header"] = (header).toJson();
375 } 375 }
376 if (urls != null) { 376 if (urls != null) {
377 _json["urls"] = urls.map((value) => (value).toJson()).toList(); 377 _json["urls"] = urls.map((value) => (value).toJson()).toList();
378 } 378 }
379 return _json; 379 return _json;
380 } 380 }
381 } 381 }
382 382
(...skipping 27 matching lines...) Expand all
410 localizedRuleName = _json["localizedRuleName"]; 410 localizedRuleName = _json["localizedRuleName"];
411 } 411 }
412 if (_json.containsKey("ruleImpact")) { 412 if (_json.containsKey("ruleImpact")) {
413 ruleImpact = _json["ruleImpact"]; 413 ruleImpact = _json["ruleImpact"];
414 } 414 }
415 if (_json.containsKey("urlBlocks")) { 415 if (_json.containsKey("urlBlocks")) {
416 urlBlocks = _json["urlBlocks"].map((value) => new ResultFormattedResultsRu leResultsValueUrlBlocks.fromJson(value)).toList(); 416 urlBlocks = _json["urlBlocks"].map((value) => new ResultFormattedResultsRu leResultsValueUrlBlocks.fromJson(value)).toList();
417 } 417 }
418 } 418 }
419 419
420 core.Map toJson() { 420 core.Map<core.String, core.Object> toJson() {
421 var _json = new core.Map(); 421 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
422 if (localizedRuleName != null) { 422 if (localizedRuleName != null) {
423 _json["localizedRuleName"] = localizedRuleName; 423 _json["localizedRuleName"] = localizedRuleName;
424 } 424 }
425 if (ruleImpact != null) { 425 if (ruleImpact != null) {
426 _json["ruleImpact"] = ruleImpact; 426 _json["ruleImpact"] = ruleImpact;
427 } 427 }
428 if (urlBlocks != null) { 428 if (urlBlocks != null) {
429 _json["urlBlocks"] = urlBlocks.map((value) => (value).toJson()).toList(); 429 _json["urlBlocks"] = urlBlocks.map((value) => (value).toJson()).toList();
430 } 430 }
431 return _json; 431 return _json;
(...skipping 13 matching lines...) Expand all
445 */ 445 */
446 core.Map<core.String, ResultFormattedResultsRuleResultsValue> ruleResults; 446 core.Map<core.String, ResultFormattedResultsRuleResultsValue> ruleResults;
447 447
448 ResultFormattedResults(); 448 ResultFormattedResults();
449 449
450 ResultFormattedResults.fromJson(core.Map _json) { 450 ResultFormattedResults.fromJson(core.Map _json) {
451 if (_json.containsKey("locale")) { 451 if (_json.containsKey("locale")) {
452 locale = _json["locale"]; 452 locale = _json["locale"];
453 } 453 }
454 if (_json.containsKey("ruleResults")) { 454 if (_json.containsKey("ruleResults")) {
455 ruleResults = commons.mapMap(_json["ruleResults"], (item) => new ResultFor mattedResultsRuleResultsValue.fromJson(item)); 455 ruleResults = commons.mapMap<core.Map<core.String, core.Object>, ResultFor mattedResultsRuleResultsValue>(_json["ruleResults"], (core.Map<core.String, core .Object> item) => new ResultFormattedResultsRuleResultsValue.fromJson(item));
456 } 456 }
457 } 457 }
458 458
459 core.Map toJson() { 459 core.Map<core.String, core.Object> toJson() {
460 var _json = new core.Map(); 460 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
461 if (locale != null) { 461 if (locale != null) {
462 _json["locale"] = locale; 462 _json["locale"] = locale;
463 } 463 }
464 if (ruleResults != null) { 464 if (ruleResults != null) {
465 _json["ruleResults"] = commons.mapMap(ruleResults, (item) => (item).toJson ()); 465 _json["ruleResults"] = commons.mapMap<ResultFormattedResultsRuleResultsVal ue, core.Map<core.String, core.Object>>(ruleResults, (ResultFormattedResultsRule ResultsValue item) => (item).toJson());
466 } 466 }
467 return _json; 467 return _json;
468 } 468 }
469 } 469 }
470 470
471 /** 471 /**
472 * Summary statistics for the page, such as number of JavaScript bytes, number 472 * Summary statistics for the page, such as number of JavaScript bytes, number
473 * of HTML bytes, etc. 473 * of HTML bytes, etc.
474 */ 474 */
475 class ResultPageStats { 475 class ResultPageStats {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 otherResponseBytes = _json["otherResponseBytes"]; 543 otherResponseBytes = _json["otherResponseBytes"];
544 } 544 }
545 if (_json.containsKey("textResponseBytes")) { 545 if (_json.containsKey("textResponseBytes")) {
546 textResponseBytes = _json["textResponseBytes"]; 546 textResponseBytes = _json["textResponseBytes"];
547 } 547 }
548 if (_json.containsKey("totalRequestBytes")) { 548 if (_json.containsKey("totalRequestBytes")) {
549 totalRequestBytes = _json["totalRequestBytes"]; 549 totalRequestBytes = _json["totalRequestBytes"];
550 } 550 }
551 } 551 }
552 552
553 core.Map toJson() { 553 core.Map<core.String, core.Object> toJson() {
554 var _json = new core.Map(); 554 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
555 if (cssResponseBytes != null) { 555 if (cssResponseBytes != null) {
556 _json["cssResponseBytes"] = cssResponseBytes; 556 _json["cssResponseBytes"] = cssResponseBytes;
557 } 557 }
558 if (flashResponseBytes != null) { 558 if (flashResponseBytes != null) {
559 _json["flashResponseBytes"] = flashResponseBytes; 559 _json["flashResponseBytes"] = flashResponseBytes;
560 } 560 }
561 if (htmlResponseBytes != null) { 561 if (htmlResponseBytes != null) {
562 _json["htmlResponseBytes"] = htmlResponseBytes; 562 _json["htmlResponseBytes"] = htmlResponseBytes;
563 } 563 }
564 if (imageResponseBytes != null) { 564 if (imageResponseBytes != null) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 height = _json["height"]; 623 height = _json["height"];
624 } 624 }
625 if (_json.containsKey("mime_type")) { 625 if (_json.containsKey("mime_type")) {
626 mimeType = _json["mime_type"]; 626 mimeType = _json["mime_type"];
627 } 627 }
628 if (_json.containsKey("width")) { 628 if (_json.containsKey("width")) {
629 width = _json["width"]; 629 width = _json["width"];
630 } 630 }
631 } 631 }
632 632
633 core.Map toJson() { 633 core.Map<core.String, core.Object> toJson() {
634 var _json = new core.Map(); 634 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
635 if (data != null) { 635 if (data != null) {
636 _json["data"] = data; 636 _json["data"] = data;
637 } 637 }
638 if (height != null) { 638 if (height != null) {
639 _json["height"] = height; 639 _json["height"] = height;
640 } 640 }
641 if (mimeType != null) { 641 if (mimeType != null) {
642 _json["mime_type"] = mimeType; 642 _json["mime_type"] = mimeType;
643 } 643 }
644 if (width != null) { 644 if (width != null) {
(...skipping 14 matching lines...) Expand all
659 659
660 ResultVersion.fromJson(core.Map _json) { 660 ResultVersion.fromJson(core.Map _json) {
661 if (_json.containsKey("major")) { 661 if (_json.containsKey("major")) {
662 major = _json["major"]; 662 major = _json["major"];
663 } 663 }
664 if (_json.containsKey("minor")) { 664 if (_json.containsKey("minor")) {
665 minor = _json["minor"]; 665 minor = _json["minor"];
666 } 666 }
667 } 667 }
668 668
669 core.Map toJson() { 669 core.Map<core.String, core.Object> toJson() {
670 var _json = new core.Map(); 670 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
671 if (major != null) { 671 if (major != null) {
672 _json["major"] = major; 672 _json["major"] = major;
673 } 673 }
674 if (minor != null) { 674 if (minor != null) {
675 _json["minor"] = minor; 675 _json["minor"] = minor;
676 } 676 }
677 return _json; 677 return _json;
678 } 678 }
679 } 679 }
680 680
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 screenshot = new ResultScreenshot.fromJson(_json["screenshot"]); 747 screenshot = new ResultScreenshot.fromJson(_json["screenshot"]);
748 } 748 }
749 if (_json.containsKey("title")) { 749 if (_json.containsKey("title")) {
750 title = _json["title"]; 750 title = _json["title"];
751 } 751 }
752 if (_json.containsKey("version")) { 752 if (_json.containsKey("version")) {
753 version = new ResultVersion.fromJson(_json["version"]); 753 version = new ResultVersion.fromJson(_json["version"]);
754 } 754 }
755 } 755 }
756 756
757 core.Map toJson() { 757 core.Map<core.String, core.Object> toJson() {
758 var _json = new core.Map(); 758 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
759 if (formattedResults != null) { 759 if (formattedResults != null) {
760 _json["formattedResults"] = (formattedResults).toJson(); 760 _json["formattedResults"] = (formattedResults).toJson();
761 } 761 }
762 if (id != null) { 762 if (id != null) {
763 _json["id"] = id; 763 _json["id"] = id;
764 } 764 }
765 if (invalidRules != null) { 765 if (invalidRules != null) {
766 _json["invalidRules"] = invalidRules; 766 _json["invalidRules"] = invalidRules;
767 } 767 }
768 if (kind != null) { 768 if (kind != null) {
(...skipping 13 matching lines...) Expand all
782 } 782 }
783 if (title != null) { 783 if (title != null) {
784 _json["title"] = title; 784 _json["title"] = title;
785 } 785 }
786 if (version != null) { 786 if (version != null) {
787 _json["version"] = (version).toJson(); 787 _json["version"] = (version).toJson();
788 } 788 }
789 return _json; 789 return _json;
790 } 790 }
791 } 791 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/oauth2/v2.dart ('k') | generated/googleapis/lib/pagespeedonline/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698