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.manufacturers.v1; | 3 library googleapis.manufacturers.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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 theme = _json["theme"]; | 423 theme = _json["theme"]; |
424 } | 424 } |
425 if (_json.containsKey("title")) { | 425 if (_json.containsKey("title")) { |
426 title = _json["title"]; | 426 title = _json["title"]; |
427 } | 427 } |
428 if (_json.containsKey("videoLink")) { | 428 if (_json.containsKey("videoLink")) { |
429 videoLink = _json["videoLink"]; | 429 videoLink = _json["videoLink"]; |
430 } | 430 } |
431 } | 431 } |
432 | 432 |
433 core.Map toJson() { | 433 core.Map<core.String, core.Object> toJson() { |
434 var _json = new core.Map(); | 434 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
435 if (additionalImageLink != null) { | 435 if (additionalImageLink != null) { |
436 _json["additionalImageLink"] = additionalImageLink.map((value) => (value).
toJson()).toList(); | 436 _json["additionalImageLink"] = additionalImageLink.map((value) => (value).
toJson()).toList(); |
437 } | 437 } |
438 if (ageGroup != null) { | 438 if (ageGroup != null) { |
439 _json["ageGroup"] = ageGroup; | 439 _json["ageGroup"] = ageGroup; |
440 } | 440 } |
441 if (brand != null) { | 441 if (brand != null) { |
442 _json["brand"] = brand; | 442 _json["brand"] = brand; |
443 } | 443 } |
444 if (capacity != null) { | 444 if (capacity != null) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 546 |
547 Capacity.fromJson(core.Map _json) { | 547 Capacity.fromJson(core.Map _json) { |
548 if (_json.containsKey("unit")) { | 548 if (_json.containsKey("unit")) { |
549 unit = _json["unit"]; | 549 unit = _json["unit"]; |
550 } | 550 } |
551 if (_json.containsKey("value")) { | 551 if (_json.containsKey("value")) { |
552 value = _json["value"]; | 552 value = _json["value"]; |
553 } | 553 } |
554 } | 554 } |
555 | 555 |
556 core.Map toJson() { | 556 core.Map<core.String, core.Object> toJson() { |
557 var _json = new core.Map(); | 557 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
558 if (unit != null) { | 558 if (unit != null) { |
559 _json["unit"] = unit; | 559 _json["unit"] = unit; |
560 } | 560 } |
561 if (value != null) { | 561 if (value != null) { |
562 _json["value"] = value; | 562 _json["value"] = value; |
563 } | 563 } |
564 return _json; | 564 return _json; |
565 } | 565 } |
566 } | 566 } |
567 | 567 |
(...skipping 11 matching lines...) Expand all Loading... |
579 | 579 |
580 Count.fromJson(core.Map _json) { | 580 Count.fromJson(core.Map _json) { |
581 if (_json.containsKey("unit")) { | 581 if (_json.containsKey("unit")) { |
582 unit = _json["unit"]; | 582 unit = _json["unit"]; |
583 } | 583 } |
584 if (_json.containsKey("value")) { | 584 if (_json.containsKey("value")) { |
585 value = _json["value"]; | 585 value = _json["value"]; |
586 } | 586 } |
587 } | 587 } |
588 | 588 |
589 core.Map toJson() { | 589 core.Map<core.String, core.Object> toJson() { |
590 var _json = new core.Map(); | 590 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
591 if (unit != null) { | 591 if (unit != null) { |
592 _json["unit"] = unit; | 592 _json["unit"] = unit; |
593 } | 593 } |
594 if (value != null) { | 594 if (value != null) { |
595 _json["value"] = value; | 595 _json["value"] = value; |
596 } | 596 } |
597 return _json; | 597 return _json; |
598 } | 598 } |
599 } | 599 } |
600 | 600 |
(...skipping 16 matching lines...) Expand all Loading... |
617 headline = _json["headline"]; | 617 headline = _json["headline"]; |
618 } | 618 } |
619 if (_json.containsKey("image")) { | 619 if (_json.containsKey("image")) { |
620 image = new Image.fromJson(_json["image"]); | 620 image = new Image.fromJson(_json["image"]); |
621 } | 621 } |
622 if (_json.containsKey("text")) { | 622 if (_json.containsKey("text")) { |
623 text = _json["text"]; | 623 text = _json["text"]; |
624 } | 624 } |
625 } | 625 } |
626 | 626 |
627 core.Map toJson() { | 627 core.Map<core.String, core.Object> toJson() { |
628 var _json = new core.Map(); | 628 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
629 if (headline != null) { | 629 if (headline != null) { |
630 _json["headline"] = headline; | 630 _json["headline"] = headline; |
631 } | 631 } |
632 if (image != null) { | 632 if (image != null) { |
633 _json["image"] = (image).toJson(); | 633 _json["image"] = (image).toJson(); |
634 } | 634 } |
635 if (text != null) { | 635 if (text != null) { |
636 _json["text"] = text; | 636 _json["text"] = text; |
637 } | 637 } |
638 return _json; | 638 return _json; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 imageUrl = _json["imageUrl"]; | 684 imageUrl = _json["imageUrl"]; |
685 } | 685 } |
686 if (_json.containsKey("status")) { | 686 if (_json.containsKey("status")) { |
687 status = _json["status"]; | 687 status = _json["status"]; |
688 } | 688 } |
689 if (_json.containsKey("type")) { | 689 if (_json.containsKey("type")) { |
690 type = _json["type"]; | 690 type = _json["type"]; |
691 } | 691 } |
692 } | 692 } |
693 | 693 |
694 core.Map toJson() { | 694 core.Map<core.String, core.Object> toJson() { |
695 var _json = new core.Map(); | 695 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
696 if (imageUrl != null) { | 696 if (imageUrl != null) { |
697 _json["imageUrl"] = imageUrl; | 697 _json["imageUrl"] = imageUrl; |
698 } | 698 } |
699 if (status != null) { | 699 if (status != null) { |
700 _json["status"] = status; | 700 _json["status"] = status; |
701 } | 701 } |
702 if (type != null) { | 702 if (type != null) { |
703 _json["type"] = type; | 703 _json["type"] = type; |
704 } | 704 } |
705 return _json; | 705 return _json; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 severity = _json["severity"]; | 752 severity = _json["severity"]; |
753 } | 753 } |
754 if (_json.containsKey("timestamp")) { | 754 if (_json.containsKey("timestamp")) { |
755 timestamp = _json["timestamp"]; | 755 timestamp = _json["timestamp"]; |
756 } | 756 } |
757 if (_json.containsKey("type")) { | 757 if (_json.containsKey("type")) { |
758 type = _json["type"]; | 758 type = _json["type"]; |
759 } | 759 } |
760 } | 760 } |
761 | 761 |
762 core.Map toJson() { | 762 core.Map<core.String, core.Object> toJson() { |
763 var _json = new core.Map(); | 763 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
764 if (attribute != null) { | 764 if (attribute != null) { |
765 _json["attribute"] = attribute; | 765 _json["attribute"] = attribute; |
766 } | 766 } |
767 if (description != null) { | 767 if (description != null) { |
768 _json["description"] = description; | 768 _json["description"] = description; |
769 } | 769 } |
770 if (severity != null) { | 770 if (severity != null) { |
771 _json["severity"] = severity; | 771 _json["severity"] = severity; |
772 } | 772 } |
773 if (timestamp != null) { | 773 if (timestamp != null) { |
(...skipping 16 matching lines...) Expand all Loading... |
790 | 790 |
791 ListProductsResponse.fromJson(core.Map _json) { | 791 ListProductsResponse.fromJson(core.Map _json) { |
792 if (_json.containsKey("nextPageToken")) { | 792 if (_json.containsKey("nextPageToken")) { |
793 nextPageToken = _json["nextPageToken"]; | 793 nextPageToken = _json["nextPageToken"]; |
794 } | 794 } |
795 if (_json.containsKey("products")) { | 795 if (_json.containsKey("products")) { |
796 products = _json["products"].map((value) => new Product.fromJson(value)).t
oList(); | 796 products = _json["products"].map((value) => new Product.fromJson(value)).t
oList(); |
797 } | 797 } |
798 } | 798 } |
799 | 799 |
800 core.Map toJson() { | 800 core.Map<core.String, core.Object> toJson() { |
801 var _json = new core.Map(); | 801 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
802 if (nextPageToken != null) { | 802 if (nextPageToken != null) { |
803 _json["nextPageToken"] = nextPageToken; | 803 _json["nextPageToken"] = nextPageToken; |
804 } | 804 } |
805 if (products != null) { | 805 if (products != null) { |
806 _json["products"] = products.map((value) => (value).toJson()).toList(); | 806 _json["products"] = products.map((value) => (value).toJson()).toList(); |
807 } | 807 } |
808 return _json; | 808 return _json; |
809 } | 809 } |
810 } | 810 } |
811 | 811 |
812 /** A price. */ | 812 /** A price. */ |
813 class Price { | 813 class Price { |
814 /** The numeric value of the price. */ | 814 /** The numeric value of the price. */ |
815 core.String amount; | 815 core.String amount; |
816 /** The currency in which the price is denoted. */ | 816 /** The currency in which the price is denoted. */ |
817 core.String currency; | 817 core.String currency; |
818 | 818 |
819 Price(); | 819 Price(); |
820 | 820 |
821 Price.fromJson(core.Map _json) { | 821 Price.fromJson(core.Map _json) { |
822 if (_json.containsKey("amount")) { | 822 if (_json.containsKey("amount")) { |
823 amount = _json["amount"]; | 823 amount = _json["amount"]; |
824 } | 824 } |
825 if (_json.containsKey("currency")) { | 825 if (_json.containsKey("currency")) { |
826 currency = _json["currency"]; | 826 currency = _json["currency"]; |
827 } | 827 } |
828 } | 828 } |
829 | 829 |
830 core.Map toJson() { | 830 core.Map<core.String, core.Object> toJson() { |
831 var _json = new core.Map(); | 831 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
832 if (amount != null) { | 832 if (amount != null) { |
833 _json["amount"] = amount; | 833 _json["amount"] = amount; |
834 } | 834 } |
835 if (currency != null) { | 835 if (currency != null) { |
836 _json["currency"] = currency; | 836 _json["currency"] = currency; |
837 } | 837 } |
838 return _json; | 838 return _json; |
839 } | 839 } |
840 } | 840 } |
841 | 841 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 productId = _json["productId"]; | 938 productId = _json["productId"]; |
939 } | 939 } |
940 if (_json.containsKey("targetCountry")) { | 940 if (_json.containsKey("targetCountry")) { |
941 targetCountry = _json["targetCountry"]; | 941 targetCountry = _json["targetCountry"]; |
942 } | 942 } |
943 if (_json.containsKey("uploadedAttributes")) { | 943 if (_json.containsKey("uploadedAttributes")) { |
944 uploadedAttributes = new Attributes.fromJson(_json["uploadedAttributes"]); | 944 uploadedAttributes = new Attributes.fromJson(_json["uploadedAttributes"]); |
945 } | 945 } |
946 } | 946 } |
947 | 947 |
948 core.Map toJson() { | 948 core.Map<core.String, core.Object> toJson() { |
949 var _json = new core.Map(); | 949 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
950 if (contentLanguage != null) { | 950 if (contentLanguage != null) { |
951 _json["contentLanguage"] = contentLanguage; | 951 _json["contentLanguage"] = contentLanguage; |
952 } | 952 } |
953 if (finalAttributes != null) { | 953 if (finalAttributes != null) { |
954 _json["finalAttributes"] = (finalAttributes).toJson(); | 954 _json["finalAttributes"] = (finalAttributes).toJson(); |
955 } | 955 } |
956 if (issues != null) { | 956 if (issues != null) { |
957 _json["issues"] = issues.map((value) => (value).toJson()).toList(); | 957 _json["issues"] = issues.map((value) => (value).toJson()).toList(); |
958 } | 958 } |
959 if (manuallyDeletedAttributes != null) { | 959 if (manuallyDeletedAttributes != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 attributeName = _json["attributeName"]; | 1002 attributeName = _json["attributeName"]; |
1003 } | 1003 } |
1004 if (_json.containsKey("attributeValue")) { | 1004 if (_json.containsKey("attributeValue")) { |
1005 attributeValue = _json["attributeValue"]; | 1005 attributeValue = _json["attributeValue"]; |
1006 } | 1006 } |
1007 if (_json.containsKey("sectionName")) { | 1007 if (_json.containsKey("sectionName")) { |
1008 sectionName = _json["sectionName"]; | 1008 sectionName = _json["sectionName"]; |
1009 } | 1009 } |
1010 } | 1010 } |
1011 | 1011 |
1012 core.Map toJson() { | 1012 core.Map<core.String, core.Object> toJson() { |
1013 var _json = new core.Map(); | 1013 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1014 if (attributeName != null) { | 1014 if (attributeName != null) { |
1015 _json["attributeName"] = attributeName; | 1015 _json["attributeName"] = attributeName; |
1016 } | 1016 } |
1017 if (attributeValue != null) { | 1017 if (attributeValue != null) { |
1018 _json["attributeValue"] = attributeValue; | 1018 _json["attributeValue"] = attributeValue; |
1019 } | 1019 } |
1020 if (sectionName != null) { | 1020 if (sectionName != null) { |
1021 _json["sectionName"] = sectionName; | 1021 _json["sectionName"] = sectionName; |
1022 } | 1022 } |
1023 return _json; | 1023 return _json; |
1024 } | 1024 } |
1025 } | 1025 } |
OLD | NEW |