| 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.pagespeedonline.v2; | 3 library googleapis.pagespeedonline.v2; |
| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 left = _json["left"]; | 134 left = _json["left"]; |
| 135 } | 135 } |
| 136 if (_json.containsKey("top")) { | 136 if (_json.containsKey("top")) { |
| 137 top = _json["top"]; | 137 top = _json["top"]; |
| 138 } | 138 } |
| 139 if (_json.containsKey("width")) { | 139 if (_json.containsKey("width")) { |
| 140 width = _json["width"]; | 140 width = _json["width"]; |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 | 143 |
| 144 core.Map toJson() { | 144 core.Map<core.String, core.Object> toJson() { |
| 145 var _json = new core.Map(); | 145 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 146 if (height != null) { | 146 if (height != null) { |
| 147 _json["height"] = height; | 147 _json["height"] = height; |
| 148 } | 148 } |
| 149 if (left != null) { | 149 if (left != null) { |
| 150 _json["left"] = left; | 150 _json["left"] = left; |
| 151 } | 151 } |
| 152 if (top != null) { | 152 if (top != null) { |
| 153 _json["top"] = top; | 153 _json["top"] = top; |
| 154 } | 154 } |
| 155 if (width != null) { | 155 if (width != null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 179 left = _json["left"]; | 179 left = _json["left"]; |
| 180 } | 180 } |
| 181 if (_json.containsKey("top")) { | 181 if (_json.containsKey("top")) { |
| 182 top = _json["top"]; | 182 top = _json["top"]; |
| 183 } | 183 } |
| 184 if (_json.containsKey("width")) { | 184 if (_json.containsKey("width")) { |
| 185 width = _json["width"]; | 185 width = _json["width"]; |
| 186 } | 186 } |
| 187 } | 187 } |
| 188 | 188 |
| 189 core.Map toJson() { | 189 core.Map<core.String, core.Object> toJson() { |
| 190 var _json = new core.Map(); | 190 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 191 if (height != null) { | 191 if (height != null) { |
| 192 _json["height"] = height; | 192 _json["height"] = height; |
| 193 } | 193 } |
| 194 if (left != null) { | 194 if (left != null) { |
| 195 _json["left"] = left; | 195 _json["left"] = left; |
| 196 } | 196 } |
| 197 if (top != null) { | 197 if (top != null) { |
| 198 _json["top"] = top; | 198 _json["top"] = top; |
| 199 } | 199 } |
| 200 if (width != null) { | 200 if (width != null) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 secondaryRects = _json["secondary_rects"].map((value) => new PagespeedApiF
ormatStringV2ArgsSecondaryRects.fromJson(value)).toList(); | 240 secondaryRects = _json["secondary_rects"].map((value) => new PagespeedApiF
ormatStringV2ArgsSecondaryRects.fromJson(value)).toList(); |
| 241 } | 241 } |
| 242 if (_json.containsKey("type")) { | 242 if (_json.containsKey("type")) { |
| 243 type = _json["type"]; | 243 type = _json["type"]; |
| 244 } | 244 } |
| 245 if (_json.containsKey("value")) { | 245 if (_json.containsKey("value")) { |
| 246 value = _json["value"]; | 246 value = _json["value"]; |
| 247 } | 247 } |
| 248 } | 248 } |
| 249 | 249 |
| 250 core.Map toJson() { | 250 core.Map<core.String, core.Object> toJson() { |
| 251 var _json = new core.Map(); | 251 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 252 if (key != null) { | 252 if (key != null) { |
| 253 _json["key"] = key; | 253 _json["key"] = key; |
| 254 } | 254 } |
| 255 if (rects != null) { | 255 if (rects != null) { |
| 256 _json["rects"] = rects.map((value) => (value).toJson()).toList(); | 256 _json["rects"] = rects.map((value) => (value).toJson()).toList(); |
| 257 } | 257 } |
| 258 if (secondaryRects != null) { | 258 if (secondaryRects != null) { |
| 259 _json["secondary_rects"] = secondaryRects.map((value) => (value).toJson())
.toList(); | 259 _json["secondary_rects"] = secondaryRects.map((value) => (value).toJson())
.toList(); |
| 260 } | 260 } |
| 261 if (type != null) { | 261 if (type != null) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 283 | 283 |
| 284 PagespeedApiFormatStringV2.fromJson(core.Map _json) { | 284 PagespeedApiFormatStringV2.fromJson(core.Map _json) { |
| 285 if (_json.containsKey("args")) { | 285 if (_json.containsKey("args")) { |
| 286 args = _json["args"].map((value) => new PagespeedApiFormatStringV2Args.fro
mJson(value)).toList(); | 286 args = _json["args"].map((value) => new PagespeedApiFormatStringV2Args.fro
mJson(value)).toList(); |
| 287 } | 287 } |
| 288 if (_json.containsKey("format")) { | 288 if (_json.containsKey("format")) { |
| 289 format = _json["format"]; | 289 format = _json["format"]; |
| 290 } | 290 } |
| 291 } | 291 } |
| 292 | 292 |
| 293 core.Map toJson() { | 293 core.Map<core.String, core.Object> toJson() { |
| 294 var _json = new core.Map(); | 294 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 295 if (args != null) { | 295 if (args != null) { |
| 296 _json["args"] = args.map((value) => (value).toJson()).toList(); | 296 _json["args"] = args.map((value) => (value).toJson()).toList(); |
| 297 } | 297 } |
| 298 if (format != null) { | 298 if (format != null) { |
| 299 _json["format"] = format; | 299 _json["format"] = format; |
| 300 } | 300 } |
| 301 return _json; | 301 return _json; |
| 302 } | 302 } |
| 303 } | 303 } |
| 304 | 304 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 326 left = _json["left"]; | 326 left = _json["left"]; |
| 327 } | 327 } |
| 328 if (_json.containsKey("top")) { | 328 if (_json.containsKey("top")) { |
| 329 top = _json["top"]; | 329 top = _json["top"]; |
| 330 } | 330 } |
| 331 if (_json.containsKey("width")) { | 331 if (_json.containsKey("width")) { |
| 332 width = _json["width"]; | 332 width = _json["width"]; |
| 333 } | 333 } |
| 334 } | 334 } |
| 335 | 335 |
| 336 core.Map toJson() { | 336 core.Map<core.String, core.Object> toJson() { |
| 337 var _json = new core.Map(); | 337 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 338 if (height != null) { | 338 if (height != null) { |
| 339 _json["height"] = height; | 339 _json["height"] = height; |
| 340 } | 340 } |
| 341 if (left != null) { | 341 if (left != null) { |
| 342 _json["left"] = left; | 342 _json["left"] = left; |
| 343 } | 343 } |
| 344 if (top != null) { | 344 if (top != null) { |
| 345 _json["top"] = top; | 345 _json["top"] = top; |
| 346 } | 346 } |
| 347 if (width != null) { | 347 if (width != null) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 mimeType = _json["mime_type"]; | 391 mimeType = _json["mime_type"]; |
| 392 } | 392 } |
| 393 if (_json.containsKey("page_rect")) { | 393 if (_json.containsKey("page_rect")) { |
| 394 pageRect = new PagespeedApiImageV2PageRect.fromJson(_json["page_rect"]); | 394 pageRect = new PagespeedApiImageV2PageRect.fromJson(_json["page_rect"]); |
| 395 } | 395 } |
| 396 if (_json.containsKey("width")) { | 396 if (_json.containsKey("width")) { |
| 397 width = _json["width"]; | 397 width = _json["width"]; |
| 398 } | 398 } |
| 399 } | 399 } |
| 400 | 400 |
| 401 core.Map toJson() { | 401 core.Map<core.String, core.Object> toJson() { |
| 402 var _json = new core.Map(); | 402 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 403 if (data != null) { | 403 if (data != null) { |
| 404 _json["data"] = data; | 404 _json["data"] = data; |
| 405 } | 405 } |
| 406 if (height != null) { | 406 if (height != null) { |
| 407 _json["height"] = height; | 407 _json["height"] = height; |
| 408 } | 408 } |
| 409 if (key != null) { | 409 if (key != null) { |
| 410 _json["key"] = key; | 410 _json["key"] = key; |
| 411 } | 411 } |
| 412 if (mimeType != null) { | 412 if (mimeType != null) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 438 | 438 |
| 439 ResultFormattedResultsRuleResultsValueUrlBlocksUrls.fromJson(core.Map _json) { | 439 ResultFormattedResultsRuleResultsValueUrlBlocksUrls.fromJson(core.Map _json) { |
| 440 if (_json.containsKey("details")) { | 440 if (_json.containsKey("details")) { |
| 441 details = _json["details"].map((value) => new PagespeedApiFormatStringV2.f
romJson(value)).toList(); | 441 details = _json["details"].map((value) => new PagespeedApiFormatStringV2.f
romJson(value)).toList(); |
| 442 } | 442 } |
| 443 if (_json.containsKey("result")) { | 443 if (_json.containsKey("result")) { |
| 444 result = new PagespeedApiFormatStringV2.fromJson(_json["result"]); | 444 result = new PagespeedApiFormatStringV2.fromJson(_json["result"]); |
| 445 } | 445 } |
| 446 } | 446 } |
| 447 | 447 |
| 448 core.Map toJson() { | 448 core.Map<core.String, core.Object> toJson() { |
| 449 var _json = new core.Map(); | 449 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 450 if (details != null) { | 450 if (details != null) { |
| 451 _json["details"] = details.map((value) => (value).toJson()).toList(); | 451 _json["details"] = details.map((value) => (value).toJson()).toList(); |
| 452 } | 452 } |
| 453 if (result != null) { | 453 if (result != null) { |
| 454 _json["result"] = (result).toJson(); | 454 _json["result"] = (result).toJson(); |
| 455 } | 455 } |
| 456 return _json; | 456 return _json; |
| 457 } | 457 } |
| 458 } | 458 } |
| 459 | 459 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 470 | 470 |
| 471 ResultFormattedResultsRuleResultsValueUrlBlocks.fromJson(core.Map _json) { | 471 ResultFormattedResultsRuleResultsValueUrlBlocks.fromJson(core.Map _json) { |
| 472 if (_json.containsKey("header")) { | 472 if (_json.containsKey("header")) { |
| 473 header = new PagespeedApiFormatStringV2.fromJson(_json["header"]); | 473 header = new PagespeedApiFormatStringV2.fromJson(_json["header"]); |
| 474 } | 474 } |
| 475 if (_json.containsKey("urls")) { | 475 if (_json.containsKey("urls")) { |
| 476 urls = _json["urls"].map((value) => new ResultFormattedResultsRuleResultsV
alueUrlBlocksUrls.fromJson(value)).toList(); | 476 urls = _json["urls"].map((value) => new ResultFormattedResultsRuleResultsV
alueUrlBlocksUrls.fromJson(value)).toList(); |
| 477 } | 477 } |
| 478 } | 478 } |
| 479 | 479 |
| 480 core.Map toJson() { | 480 core.Map<core.String, core.Object> toJson() { |
| 481 var _json = new core.Map(); | 481 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 482 if (header != null) { | 482 if (header != null) { |
| 483 _json["header"] = (header).toJson(); | 483 _json["header"] = (header).toJson(); |
| 484 } | 484 } |
| 485 if (urls != null) { | 485 if (urls != null) { |
| 486 _json["urls"] = urls.map((value) => (value).toJson()).toList(); | 486 _json["urls"] = urls.map((value) => (value).toJson()).toList(); |
| 487 } | 487 } |
| 488 return _json; | 488 return _json; |
| 489 } | 489 } |
| 490 } | 490 } |
| 491 | 491 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 ruleImpact = _json["ruleImpact"]; | 536 ruleImpact = _json["ruleImpact"]; |
| 537 } | 537 } |
| 538 if (_json.containsKey("summary")) { | 538 if (_json.containsKey("summary")) { |
| 539 summary = new PagespeedApiFormatStringV2.fromJson(_json["summary"]); | 539 summary = new PagespeedApiFormatStringV2.fromJson(_json["summary"]); |
| 540 } | 540 } |
| 541 if (_json.containsKey("urlBlocks")) { | 541 if (_json.containsKey("urlBlocks")) { |
| 542 urlBlocks = _json["urlBlocks"].map((value) => new ResultFormattedResultsRu
leResultsValueUrlBlocks.fromJson(value)).toList(); | 542 urlBlocks = _json["urlBlocks"].map((value) => new ResultFormattedResultsRu
leResultsValueUrlBlocks.fromJson(value)).toList(); |
| 543 } | 543 } |
| 544 } | 544 } |
| 545 | 545 |
| 546 core.Map toJson() { | 546 core.Map<core.String, core.Object> toJson() { |
| 547 var _json = new core.Map(); | 547 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 548 if (groups != null) { | 548 if (groups != null) { |
| 549 _json["groups"] = groups; | 549 _json["groups"] = groups; |
| 550 } | 550 } |
| 551 if (localizedRuleName != null) { | 551 if (localizedRuleName != null) { |
| 552 _json["localizedRuleName"] = localizedRuleName; | 552 _json["localizedRuleName"] = localizedRuleName; |
| 553 } | 553 } |
| 554 if (ruleImpact != null) { | 554 if (ruleImpact != null) { |
| 555 _json["ruleImpact"] = ruleImpact; | 555 _json["ruleImpact"] = ruleImpact; |
| 556 } | 556 } |
| 557 if (summary != null) { | 557 if (summary != null) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 577 */ | 577 */ |
| 578 core.Map<core.String, ResultFormattedResultsRuleResultsValue> ruleResults; | 578 core.Map<core.String, ResultFormattedResultsRuleResultsValue> ruleResults; |
| 579 | 579 |
| 580 ResultFormattedResults(); | 580 ResultFormattedResults(); |
| 581 | 581 |
| 582 ResultFormattedResults.fromJson(core.Map _json) { | 582 ResultFormattedResults.fromJson(core.Map _json) { |
| 583 if (_json.containsKey("locale")) { | 583 if (_json.containsKey("locale")) { |
| 584 locale = _json["locale"]; | 584 locale = _json["locale"]; |
| 585 } | 585 } |
| 586 if (_json.containsKey("ruleResults")) { | 586 if (_json.containsKey("ruleResults")) { |
| 587 ruleResults = commons.mapMap(_json["ruleResults"], (item) => new ResultFor
mattedResultsRuleResultsValue.fromJson(item)); | 587 ruleResults = commons.mapMap<core.Map<core.String, core.Object>, ResultFor
mattedResultsRuleResultsValue>(_json["ruleResults"], (core.Map<core.String, core
.Object> item) => new ResultFormattedResultsRuleResultsValue.fromJson(item)); |
| 588 } | 588 } |
| 589 } | 589 } |
| 590 | 590 |
| 591 core.Map toJson() { | 591 core.Map<core.String, core.Object> toJson() { |
| 592 var _json = new core.Map(); | 592 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 593 if (locale != null) { | 593 if (locale != null) { |
| 594 _json["locale"] = locale; | 594 _json["locale"] = locale; |
| 595 } | 595 } |
| 596 if (ruleResults != null) { | 596 if (ruleResults != null) { |
| 597 _json["ruleResults"] = commons.mapMap(ruleResults, (item) => (item).toJson
()); | 597 _json["ruleResults"] = commons.mapMap<ResultFormattedResultsRuleResultsVal
ue, core.Map<core.String, core.Object>>(ruleResults, (ResultFormattedResultsRule
ResultsValue item) => (item).toJson()); |
| 598 } | 598 } |
| 599 return _json; | 599 return _json; |
| 600 } | 600 } |
| 601 } | 601 } |
| 602 | 602 |
| 603 /** | 603 /** |
| 604 * Summary statistics for the page, such as number of JavaScript bytes, number | 604 * Summary statistics for the page, such as number of JavaScript bytes, number |
| 605 * of HTML bytes, etc. | 605 * of HTML bytes, etc. |
| 606 */ | 606 */ |
| 607 class ResultPageStats { | 607 class ResultPageStats { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 otherResponseBytes = _json["otherResponseBytes"]; | 675 otherResponseBytes = _json["otherResponseBytes"]; |
| 676 } | 676 } |
| 677 if (_json.containsKey("textResponseBytes")) { | 677 if (_json.containsKey("textResponseBytes")) { |
| 678 textResponseBytes = _json["textResponseBytes"]; | 678 textResponseBytes = _json["textResponseBytes"]; |
| 679 } | 679 } |
| 680 if (_json.containsKey("totalRequestBytes")) { | 680 if (_json.containsKey("totalRequestBytes")) { |
| 681 totalRequestBytes = _json["totalRequestBytes"]; | 681 totalRequestBytes = _json["totalRequestBytes"]; |
| 682 } | 682 } |
| 683 } | 683 } |
| 684 | 684 |
| 685 core.Map toJson() { | 685 core.Map<core.String, core.Object> toJson() { |
| 686 var _json = new core.Map(); | 686 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 687 if (cssResponseBytes != null) { | 687 if (cssResponseBytes != null) { |
| 688 _json["cssResponseBytes"] = cssResponseBytes; | 688 _json["cssResponseBytes"] = cssResponseBytes; |
| 689 } | 689 } |
| 690 if (flashResponseBytes != null) { | 690 if (flashResponseBytes != null) { |
| 691 _json["flashResponseBytes"] = flashResponseBytes; | 691 _json["flashResponseBytes"] = flashResponseBytes; |
| 692 } | 692 } |
| 693 if (htmlResponseBytes != null) { | 693 if (htmlResponseBytes != null) { |
| 694 _json["htmlResponseBytes"] = htmlResponseBytes; | 694 _json["htmlResponseBytes"] = htmlResponseBytes; |
| 695 } | 695 } |
| 696 if (imageResponseBytes != null) { | 696 if (imageResponseBytes != null) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 core.int score; | 738 core.int score; |
| 739 | 739 |
| 740 ResultRuleGroupsValue(); | 740 ResultRuleGroupsValue(); |
| 741 | 741 |
| 742 ResultRuleGroupsValue.fromJson(core.Map _json) { | 742 ResultRuleGroupsValue.fromJson(core.Map _json) { |
| 743 if (_json.containsKey("score")) { | 743 if (_json.containsKey("score")) { |
| 744 score = _json["score"]; | 744 score = _json["score"]; |
| 745 } | 745 } |
| 746 } | 746 } |
| 747 | 747 |
| 748 core.Map toJson() { | 748 core.Map<core.String, core.Object> toJson() { |
| 749 var _json = new core.Map(); | 749 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 750 if (score != null) { | 750 if (score != null) { |
| 751 _json["score"] = score; | 751 _json["score"] = score; |
| 752 } | 752 } |
| 753 return _json; | 753 return _json; |
| 754 } | 754 } |
| 755 } | 755 } |
| 756 | 756 |
| 757 /** The version of PageSpeed used to generate these results. */ | 757 /** The version of PageSpeed used to generate these results. */ |
| 758 class ResultVersion { | 758 class ResultVersion { |
| 759 /** The major version number of PageSpeed used to generate these results. */ | 759 /** The major version number of PageSpeed used to generate these results. */ |
| 760 core.int major; | 760 core.int major; |
| 761 /** The minor version number of PageSpeed used to generate these results. */ | 761 /** The minor version number of PageSpeed used to generate these results. */ |
| 762 core.int minor; | 762 core.int minor; |
| 763 | 763 |
| 764 ResultVersion(); | 764 ResultVersion(); |
| 765 | 765 |
| 766 ResultVersion.fromJson(core.Map _json) { | 766 ResultVersion.fromJson(core.Map _json) { |
| 767 if (_json.containsKey("major")) { | 767 if (_json.containsKey("major")) { |
| 768 major = _json["major"]; | 768 major = _json["major"]; |
| 769 } | 769 } |
| 770 if (_json.containsKey("minor")) { | 770 if (_json.containsKey("minor")) { |
| 771 minor = _json["minor"]; | 771 minor = _json["minor"]; |
| 772 } | 772 } |
| 773 } | 773 } |
| 774 | 774 |
| 775 core.Map toJson() { | 775 core.Map<core.String, core.Object> toJson() { |
| 776 var _json = new core.Map(); | 776 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 777 if (major != null) { | 777 if (major != null) { |
| 778 _json["major"] = major; | 778 _json["major"] = major; |
| 779 } | 779 } |
| 780 if (minor != null) { | 780 if (minor != null) { |
| 781 _json["minor"] = minor; | 781 _json["minor"] = minor; |
| 782 } | 782 } |
| 783 return _json; | 783 return _json; |
| 784 } | 784 } |
| 785 } | 785 } |
| 786 | 786 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 if (_json.containsKey("kind")) { | 836 if (_json.containsKey("kind")) { |
| 837 kind = _json["kind"]; | 837 kind = _json["kind"]; |
| 838 } | 838 } |
| 839 if (_json.containsKey("pageStats")) { | 839 if (_json.containsKey("pageStats")) { |
| 840 pageStats = new ResultPageStats.fromJson(_json["pageStats"]); | 840 pageStats = new ResultPageStats.fromJson(_json["pageStats"]); |
| 841 } | 841 } |
| 842 if (_json.containsKey("responseCode")) { | 842 if (_json.containsKey("responseCode")) { |
| 843 responseCode = _json["responseCode"]; | 843 responseCode = _json["responseCode"]; |
| 844 } | 844 } |
| 845 if (_json.containsKey("ruleGroups")) { | 845 if (_json.containsKey("ruleGroups")) { |
| 846 ruleGroups = commons.mapMap(_json["ruleGroups"], (item) => new ResultRuleG
roupsValue.fromJson(item)); | 846 ruleGroups = commons.mapMap<core.Map<core.String, core.Object>, ResultRule
GroupsValue>(_json["ruleGroups"], (core.Map<core.String, core.Object> item) => n
ew ResultRuleGroupsValue.fromJson(item)); |
| 847 } | 847 } |
| 848 if (_json.containsKey("screenshot")) { | 848 if (_json.containsKey("screenshot")) { |
| 849 screenshot = new PagespeedApiImageV2.fromJson(_json["screenshot"]); | 849 screenshot = new PagespeedApiImageV2.fromJson(_json["screenshot"]); |
| 850 } | 850 } |
| 851 if (_json.containsKey("title")) { | 851 if (_json.containsKey("title")) { |
| 852 title = _json["title"]; | 852 title = _json["title"]; |
| 853 } | 853 } |
| 854 if (_json.containsKey("version")) { | 854 if (_json.containsKey("version")) { |
| 855 version = new ResultVersion.fromJson(_json["version"]); | 855 version = new ResultVersion.fromJson(_json["version"]); |
| 856 } | 856 } |
| 857 } | 857 } |
| 858 | 858 |
| 859 core.Map toJson() { | 859 core.Map<core.String, core.Object> toJson() { |
| 860 var _json = new core.Map(); | 860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 861 if (formattedResults != null) { | 861 if (formattedResults != null) { |
| 862 _json["formattedResults"] = (formattedResults).toJson(); | 862 _json["formattedResults"] = (formattedResults).toJson(); |
| 863 } | 863 } |
| 864 if (id != null) { | 864 if (id != null) { |
| 865 _json["id"] = id; | 865 _json["id"] = id; |
| 866 } | 866 } |
| 867 if (invalidRules != null) { | 867 if (invalidRules != null) { |
| 868 _json["invalidRules"] = invalidRules; | 868 _json["invalidRules"] = invalidRules; |
| 869 } | 869 } |
| 870 if (kind != null) { | 870 if (kind != null) { |
| 871 _json["kind"] = kind; | 871 _json["kind"] = kind; |
| 872 } | 872 } |
| 873 if (pageStats != null) { | 873 if (pageStats != null) { |
| 874 _json["pageStats"] = (pageStats).toJson(); | 874 _json["pageStats"] = (pageStats).toJson(); |
| 875 } | 875 } |
| 876 if (responseCode != null) { | 876 if (responseCode != null) { |
| 877 _json["responseCode"] = responseCode; | 877 _json["responseCode"] = responseCode; |
| 878 } | 878 } |
| 879 if (ruleGroups != null) { | 879 if (ruleGroups != null) { |
| 880 _json["ruleGroups"] = commons.mapMap(ruleGroups, (item) => (item).toJson()
); | 880 _json["ruleGroups"] = commons.mapMap<ResultRuleGroupsValue, core.Map<core.
String, core.Object>>(ruleGroups, (ResultRuleGroupsValue item) => (item).toJson(
)); |
| 881 } | 881 } |
| 882 if (screenshot != null) { | 882 if (screenshot != null) { |
| 883 _json["screenshot"] = (screenshot).toJson(); | 883 _json["screenshot"] = (screenshot).toJson(); |
| 884 } | 884 } |
| 885 if (title != null) { | 885 if (title != null) { |
| 886 _json["title"] = title; | 886 _json["title"] = title; |
| 887 } | 887 } |
| 888 if (version != null) { | 888 if (version != null) { |
| 889 _json["version"] = (version).toJson(); | 889 _json["version"] = (version).toJson(); |
| 890 } | 890 } |
| 891 return _json; | 891 return _json; |
| 892 } | 892 } |
| 893 } | 893 } |
| OLD | NEW |