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

Side by Side Diff: generated/googleapis/lib/content/v2sandbox.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
« no previous file with comments | « generated/googleapis/lib/content/v2.dart ('k') | generated/googleapis/lib/customsearch/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.content.v2sandbox; 3 library googleapis.content.v2sandbox;
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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 domain = _json["domain"]; 827 domain = _json["domain"];
828 } 828 }
829 if (_json.containsKey("message")) { 829 if (_json.containsKey("message")) {
830 message = _json["message"]; 830 message = _json["message"];
831 } 831 }
832 if (_json.containsKey("reason")) { 832 if (_json.containsKey("reason")) {
833 reason = _json["reason"]; 833 reason = _json["reason"];
834 } 834 }
835 } 835 }
836 836
837 core.Map toJson() { 837 core.Map<core.String, core.Object> toJson() {
838 var _json = new core.Map(); 838 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
839 if (domain != null) { 839 if (domain != null) {
840 _json["domain"] = domain; 840 _json["domain"] = domain;
841 } 841 }
842 if (message != null) { 842 if (message != null) {
843 _json["message"] = message; 843 _json["message"] = message;
844 } 844 }
845 if (reason != null) { 845 if (reason != null) {
846 _json["reason"] = reason; 846 _json["reason"] = reason;
847 } 847 }
848 return _json; 848 return _json;
(...skipping 16 matching lines...) Expand all
865 code = _json["code"]; 865 code = _json["code"];
866 } 866 }
867 if (_json.containsKey("errors")) { 867 if (_json.containsKey("errors")) {
868 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList( ); 868 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList( );
869 } 869 }
870 if (_json.containsKey("message")) { 870 if (_json.containsKey("message")) {
871 message = _json["message"]; 871 message = _json["message"];
872 } 872 }
873 } 873 }
874 874
875 core.Map toJson() { 875 core.Map<core.String, core.Object> toJson() {
876 var _json = new core.Map(); 876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
877 if (code != null) { 877 if (code != null) {
878 _json["code"] = code; 878 _json["code"] = code;
879 } 879 }
880 if (errors != null) { 880 if (errors != null) {
881 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 881 _json["errors"] = errors.map((value) => (value).toJson()).toList();
882 } 882 }
883 if (message != null) { 883 if (message != null) {
884 _json["message"] = message; 884 _json["message"] = message;
885 } 885 }
886 return _json; 886 return _json;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]); 996 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]);
997 } 997 }
998 if (_json.containsKey("shippingOption")) { 998 if (_json.containsKey("shippingOption")) {
999 shippingOption = _json["shippingOption"]; 999 shippingOption = _json["shippingOption"];
1000 } 1000 }
1001 if (_json.containsKey("status")) { 1001 if (_json.containsKey("status")) {
1002 status = _json["status"]; 1002 status = _json["status"];
1003 } 1003 }
1004 } 1004 }
1005 1005
1006 core.Map toJson() { 1006 core.Map<core.String, core.Object> toJson() {
1007 var _json = new core.Map(); 1007 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1008 if (acknowledged != null) { 1008 if (acknowledged != null) {
1009 _json["acknowledged"] = acknowledged; 1009 _json["acknowledged"] = acknowledged;
1010 } 1010 }
1011 if (channelType != null) { 1011 if (channelType != null) {
1012 _json["channelType"] = channelType; 1012 _json["channelType"] = channelType;
1013 } 1013 }
1014 if (customer != null) { 1014 if (customer != null) {
1015 _json["customer"] = (customer).toJson(); 1015 _json["customer"] = (customer).toJson();
1016 } 1016 }
1017 if (deliveryDetails != null) { 1017 if (deliveryDetails != null) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 recipientName = _json["recipientName"]; 1119 recipientName = _json["recipientName"];
1120 } 1120 }
1121 if (_json.containsKey("region")) { 1121 if (_json.containsKey("region")) {
1122 region = _json["region"]; 1122 region = _json["region"];
1123 } 1123 }
1124 if (_json.containsKey("streetAddress")) { 1124 if (_json.containsKey("streetAddress")) {
1125 streetAddress = _json["streetAddress"]; 1125 streetAddress = _json["streetAddress"];
1126 } 1126 }
1127 } 1127 }
1128 1128
1129 core.Map toJson() { 1129 core.Map<core.String, core.Object> toJson() {
1130 var _json = new core.Map(); 1130 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1131 if (country != null) { 1131 if (country != null) {
1132 _json["country"] = country; 1132 _json["country"] = country;
1133 } 1133 }
1134 if (fullAddress != null) { 1134 if (fullAddress != null) {
1135 _json["fullAddress"] = fullAddress; 1135 _json["fullAddress"] = fullAddress;
1136 } 1136 }
1137 if (isPostOfficeBox != null) { 1137 if (isPostOfficeBox != null) {
1138 _json["isPostOfficeBox"] = isPostOfficeBox; 1138 _json["isPostOfficeBox"] = isPostOfficeBox;
1139 } 1139 }
1140 if (locality != null) { 1140 if (locality != null) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 quantity = _json["quantity"]; 1185 quantity = _json["quantity"];
1186 } 1186 }
1187 if (_json.containsKey("reason")) { 1187 if (_json.containsKey("reason")) {
1188 reason = _json["reason"]; 1188 reason = _json["reason"];
1189 } 1189 }
1190 if (_json.containsKey("reasonText")) { 1190 if (_json.containsKey("reasonText")) {
1191 reasonText = _json["reasonText"]; 1191 reasonText = _json["reasonText"];
1192 } 1192 }
1193 } 1193 }
1194 1194
1195 core.Map toJson() { 1195 core.Map<core.String, core.Object> toJson() {
1196 var _json = new core.Map(); 1196 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1197 if (actor != null) { 1197 if (actor != null) {
1198 _json["actor"] = actor; 1198 _json["actor"] = actor;
1199 } 1199 }
1200 if (creationDate != null) { 1200 if (creationDate != null) {
1201 _json["creationDate"] = creationDate; 1201 _json["creationDate"] = creationDate;
1202 } 1202 }
1203 if (quantity != null) { 1203 if (quantity != null) {
1204 _json["quantity"] = quantity; 1204 _json["quantity"] = quantity;
1205 } 1205 }
1206 if (reason != null) { 1206 if (reason != null) {
(...skipping 26 matching lines...) Expand all
1233 email = _json["email"]; 1233 email = _json["email"];
1234 } 1234 }
1235 if (_json.containsKey("explicitMarketingPreference")) { 1235 if (_json.containsKey("explicitMarketingPreference")) {
1236 explicitMarketingPreference = _json["explicitMarketingPreference"]; 1236 explicitMarketingPreference = _json["explicitMarketingPreference"];
1237 } 1237 }
1238 if (_json.containsKey("fullName")) { 1238 if (_json.containsKey("fullName")) {
1239 fullName = _json["fullName"]; 1239 fullName = _json["fullName"];
1240 } 1240 }
1241 } 1241 }
1242 1242
1243 core.Map toJson() { 1243 core.Map<core.String, core.Object> toJson() {
1244 var _json = new core.Map(); 1244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1245 if (email != null) { 1245 if (email != null) {
1246 _json["email"] = email; 1246 _json["email"] = email;
1247 } 1247 }
1248 if (explicitMarketingPreference != null) { 1248 if (explicitMarketingPreference != null) {
1249 _json["explicitMarketingPreference"] = explicitMarketingPreference; 1249 _json["explicitMarketingPreference"] = explicitMarketingPreference;
1250 } 1250 }
1251 if (fullName != null) { 1251 if (fullName != null) {
1252 _json["fullName"] = fullName; 1252 _json["fullName"] = fullName;
1253 } 1253 }
1254 return _json; 1254 return _json;
(...skipping 10 matching lines...) Expand all
1265 1265
1266 OrderDeliveryDetails.fromJson(core.Map _json) { 1266 OrderDeliveryDetails.fromJson(core.Map _json) {
1267 if (_json.containsKey("address")) { 1267 if (_json.containsKey("address")) {
1268 address = new OrderAddress.fromJson(_json["address"]); 1268 address = new OrderAddress.fromJson(_json["address"]);
1269 } 1269 }
1270 if (_json.containsKey("phoneNumber")) { 1270 if (_json.containsKey("phoneNumber")) {
1271 phoneNumber = _json["phoneNumber"]; 1271 phoneNumber = _json["phoneNumber"];
1272 } 1272 }
1273 } 1273 }
1274 1274
1275 core.Map toJson() { 1275 core.Map<core.String, core.Object> toJson() {
1276 var _json = new core.Map(); 1276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1277 if (address != null) { 1277 if (address != null) {
1278 _json["address"] = (address).toJson(); 1278 _json["address"] = (address).toJson();
1279 } 1279 }
1280 if (phoneNumber != null) { 1280 if (phoneNumber != null) {
1281 _json["phoneNumber"] = phoneNumber; 1281 _json["phoneNumber"] = phoneNumber;
1282 } 1282 }
1283 return _json; 1283 return _json;
1284 } 1284 }
1285 } 1285 }
1286 1286
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 returns = _json["returns"].map((value) => new OrderReturn.fromJson(value)) .toList(); 1360 returns = _json["returns"].map((value) => new OrderReturn.fromJson(value)) .toList();
1361 } 1361 }
1362 if (_json.containsKey("shippingDetails")) { 1362 if (_json.containsKey("shippingDetails")) {
1363 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin gDetails"]); 1363 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin gDetails"]);
1364 } 1364 }
1365 if (_json.containsKey("tax")) { 1365 if (_json.containsKey("tax")) {
1366 tax = new Price.fromJson(_json["tax"]); 1366 tax = new Price.fromJson(_json["tax"]);
1367 } 1367 }
1368 } 1368 }
1369 1369
1370 core.Map toJson() { 1370 core.Map<core.String, core.Object> toJson() {
1371 var _json = new core.Map(); 1371 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1372 if (cancellations != null) { 1372 if (cancellations != null) {
1373 _json["cancellations"] = cancellations.map((value) => (value).toJson()).to List(); 1373 _json["cancellations"] = cancellations.map((value) => (value).toJson()).to List();
1374 } 1374 }
1375 if (id != null) { 1375 if (id != null) {
1376 _json["id"] = id; 1376 _json["id"] = id;
1377 } 1377 }
1378 if (price != null) { 1378 if (price != null) {
1379 _json["price"] = (price).toJson(); 1379 _json["price"] = (price).toJson();
1380 } 1380 }
1381 if (product != null) { 1381 if (product != null) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 targetCountry = _json["targetCountry"]; 1494 targetCountry = _json["targetCountry"];
1495 } 1495 }
1496 if (_json.containsKey("title")) { 1496 if (_json.containsKey("title")) {
1497 title = _json["title"]; 1497 title = _json["title"];
1498 } 1498 }
1499 if (_json.containsKey("variantAttributes")) { 1499 if (_json.containsKey("variantAttributes")) {
1500 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin eItemProductVariantAttribute.fromJson(value)).toList(); 1500 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin eItemProductVariantAttribute.fromJson(value)).toList();
1501 } 1501 }
1502 } 1502 }
1503 1503
1504 core.Map toJson() { 1504 core.Map<core.String, core.Object> toJson() {
1505 var _json = new core.Map(); 1505 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1506 if (brand != null) { 1506 if (brand != null) {
1507 _json["brand"] = brand; 1507 _json["brand"] = brand;
1508 } 1508 }
1509 if (channel != null) { 1509 if (channel != null) {
1510 _json["channel"] = channel; 1510 _json["channel"] = channel;
1511 } 1511 }
1512 if (condition != null) { 1512 if (condition != null) {
1513 _json["condition"] = condition; 1513 _json["condition"] = condition;
1514 } 1514 }
1515 if (contentLanguage != null) { 1515 if (contentLanguage != null) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 1562
1563 OrderLineItemProductVariantAttribute.fromJson(core.Map _json) { 1563 OrderLineItemProductVariantAttribute.fromJson(core.Map _json) {
1564 if (_json.containsKey("dimension")) { 1564 if (_json.containsKey("dimension")) {
1565 dimension = _json["dimension"]; 1565 dimension = _json["dimension"];
1566 } 1566 }
1567 if (_json.containsKey("value")) { 1567 if (_json.containsKey("value")) {
1568 value = _json["value"]; 1568 value = _json["value"];
1569 } 1569 }
1570 } 1570 }
1571 1571
1572 core.Map toJson() { 1572 core.Map<core.String, core.Object> toJson() {
1573 var _json = new core.Map(); 1573 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1574 if (dimension != null) { 1574 if (dimension != null) {
1575 _json["dimension"] = dimension; 1575 _json["dimension"] = dimension;
1576 } 1576 }
1577 if (value != null) { 1577 if (value != null) {
1578 _json["value"] = value; 1578 _json["value"] = value;
1579 } 1579 }
1580 return _json; 1580 return _json;
1581 } 1581 }
1582 } 1582 }
1583 1583
(...skipping 12 matching lines...) Expand all
1596 daysToReturn = _json["daysToReturn"]; 1596 daysToReturn = _json["daysToReturn"];
1597 } 1597 }
1598 if (_json.containsKey("isReturnable")) { 1598 if (_json.containsKey("isReturnable")) {
1599 isReturnable = _json["isReturnable"]; 1599 isReturnable = _json["isReturnable"];
1600 } 1600 }
1601 if (_json.containsKey("policyUrl")) { 1601 if (_json.containsKey("policyUrl")) {
1602 policyUrl = _json["policyUrl"]; 1602 policyUrl = _json["policyUrl"];
1603 } 1603 }
1604 } 1604 }
1605 1605
1606 core.Map toJson() { 1606 core.Map<core.String, core.Object> toJson() {
1607 var _json = new core.Map(); 1607 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1608 if (daysToReturn != null) { 1608 if (daysToReturn != null) {
1609 _json["daysToReturn"] = daysToReturn; 1609 _json["daysToReturn"] = daysToReturn;
1610 } 1610 }
1611 if (isReturnable != null) { 1611 if (isReturnable != null) {
1612 _json["isReturnable"] = isReturnable; 1612 _json["isReturnable"] = isReturnable;
1613 } 1613 }
1614 if (policyUrl != null) { 1614 if (policyUrl != null) {
1615 _json["policyUrl"] = policyUrl; 1615 _json["policyUrl"] = policyUrl;
1616 } 1616 }
1617 return _json; 1617 return _json;
(...skipping 15 matching lines...) Expand all
1633 deliverByDate = _json["deliverByDate"]; 1633 deliverByDate = _json["deliverByDate"];
1634 } 1634 }
1635 if (_json.containsKey("method")) { 1635 if (_json.containsKey("method")) {
1636 method = new OrderLineItemShippingDetailsMethod.fromJson(_json["method"]); 1636 method = new OrderLineItemShippingDetailsMethod.fromJson(_json["method"]);
1637 } 1637 }
1638 if (_json.containsKey("shipByDate")) { 1638 if (_json.containsKey("shipByDate")) {
1639 shipByDate = _json["shipByDate"]; 1639 shipByDate = _json["shipByDate"];
1640 } 1640 }
1641 } 1641 }
1642 1642
1643 core.Map toJson() { 1643 core.Map<core.String, core.Object> toJson() {
1644 var _json = new core.Map(); 1644 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1645 if (deliverByDate != null) { 1645 if (deliverByDate != null) {
1646 _json["deliverByDate"] = deliverByDate; 1646 _json["deliverByDate"] = deliverByDate;
1647 } 1647 }
1648 if (method != null) { 1648 if (method != null) {
1649 _json["method"] = (method).toJson(); 1649 _json["method"] = (method).toJson();
1650 } 1650 }
1651 if (shipByDate != null) { 1651 if (shipByDate != null) {
1652 _json["shipByDate"] = shipByDate; 1652 _json["shipByDate"] = shipByDate;
1653 } 1653 }
1654 return _json; 1654 return _json;
(...skipping 20 matching lines...) Expand all
1675 maxDaysInTransit = _json["maxDaysInTransit"]; 1675 maxDaysInTransit = _json["maxDaysInTransit"];
1676 } 1676 }
1677 if (_json.containsKey("methodName")) { 1677 if (_json.containsKey("methodName")) {
1678 methodName = _json["methodName"]; 1678 methodName = _json["methodName"];
1679 } 1679 }
1680 if (_json.containsKey("minDaysInTransit")) { 1680 if (_json.containsKey("minDaysInTransit")) {
1681 minDaysInTransit = _json["minDaysInTransit"]; 1681 minDaysInTransit = _json["minDaysInTransit"];
1682 } 1682 }
1683 } 1683 }
1684 1684
1685 core.Map toJson() { 1685 core.Map<core.String, core.Object> toJson() {
1686 var _json = new core.Map(); 1686 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1687 if (carrier != null) { 1687 if (carrier != null) {
1688 _json["carrier"] = carrier; 1688 _json["carrier"] = carrier;
1689 } 1689 }
1690 if (maxDaysInTransit != null) { 1690 if (maxDaysInTransit != null) {
1691 _json["maxDaysInTransit"] = maxDaysInTransit; 1691 _json["maxDaysInTransit"] = maxDaysInTransit;
1692 } 1692 }
1693 if (methodName != null) { 1693 if (methodName != null) {
1694 _json["methodName"] = methodName; 1694 _json["methodName"] = methodName;
1695 } 1695 }
1696 if (minDaysInTransit != null) { 1696 if (minDaysInTransit != null) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 lastFourDigits = _json["lastFourDigits"]; 1730 lastFourDigits = _json["lastFourDigits"];
1731 } 1731 }
1732 if (_json.containsKey("phoneNumber")) { 1732 if (_json.containsKey("phoneNumber")) {
1733 phoneNumber = _json["phoneNumber"]; 1733 phoneNumber = _json["phoneNumber"];
1734 } 1734 }
1735 if (_json.containsKey("type")) { 1735 if (_json.containsKey("type")) {
1736 type = _json["type"]; 1736 type = _json["type"];
1737 } 1737 }
1738 } 1738 }
1739 1739
1740 core.Map toJson() { 1740 core.Map<core.String, core.Object> toJson() {
1741 var _json = new core.Map(); 1741 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1742 if (billingAddress != null) { 1742 if (billingAddress != null) {
1743 _json["billingAddress"] = (billingAddress).toJson(); 1743 _json["billingAddress"] = (billingAddress).toJson();
1744 } 1744 }
1745 if (expirationMonth != null) { 1745 if (expirationMonth != null) {
1746 _json["expirationMonth"] = expirationMonth; 1746 _json["expirationMonth"] = expirationMonth;
1747 } 1747 }
1748 if (expirationYear != null) { 1748 if (expirationYear != null) {
1749 _json["expirationYear"] = expirationYear; 1749 _json["expirationYear"] = expirationYear;
1750 } 1750 }
1751 if (lastFourDigits != null) { 1751 if (lastFourDigits != null) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 longTitle = _json["longTitle"]; 1810 longTitle = _json["longTitle"];
1811 } 1811 }
1812 if (_json.containsKey("productApplicability")) { 1812 if (_json.containsKey("productApplicability")) {
1813 productApplicability = _json["productApplicability"]; 1813 productApplicability = _json["productApplicability"];
1814 } 1814 }
1815 if (_json.containsKey("redemptionChannel")) { 1815 if (_json.containsKey("redemptionChannel")) {
1816 redemptionChannel = _json["redemptionChannel"]; 1816 redemptionChannel = _json["redemptionChannel"];
1817 } 1817 }
1818 } 1818 }
1819 1819
1820 core.Map toJson() { 1820 core.Map<core.String, core.Object> toJson() {
1821 var _json = new core.Map(); 1821 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1822 if (benefits != null) { 1822 if (benefits != null) {
1823 _json["benefits"] = benefits.map((value) => (value).toJson()).toList(); 1823 _json["benefits"] = benefits.map((value) => (value).toJson()).toList();
1824 } 1824 }
1825 if (effectiveDates != null) { 1825 if (effectiveDates != null) {
1826 _json["effectiveDates"] = effectiveDates; 1826 _json["effectiveDates"] = effectiveDates;
1827 } 1827 }
1828 if (genericRedemptionCode != null) { 1828 if (genericRedemptionCode != null) {
1829 _json["genericRedemptionCode"] = genericRedemptionCode; 1829 _json["genericRedemptionCode"] = genericRedemptionCode;
1830 } 1830 }
1831 if (id != null) { 1831 if (id != null) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 subType = _json["subType"]; 1878 subType = _json["subType"];
1879 } 1879 }
1880 if (_json.containsKey("taxImpact")) { 1880 if (_json.containsKey("taxImpact")) {
1881 taxImpact = new Price.fromJson(_json["taxImpact"]); 1881 taxImpact = new Price.fromJson(_json["taxImpact"]);
1882 } 1882 }
1883 if (_json.containsKey("type")) { 1883 if (_json.containsKey("type")) {
1884 type = _json["type"]; 1884 type = _json["type"];
1885 } 1885 }
1886 } 1886 }
1887 1887
1888 core.Map toJson() { 1888 core.Map<core.String, core.Object> toJson() {
1889 var _json = new core.Map(); 1889 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1890 if (discount != null) { 1890 if (discount != null) {
1891 _json["discount"] = (discount).toJson(); 1891 _json["discount"] = (discount).toJson();
1892 } 1892 }
1893 if (offerIds != null) { 1893 if (offerIds != null) {
1894 _json["offerIds"] = offerIds; 1894 _json["offerIds"] = offerIds;
1895 } 1895 }
1896 if (subType != null) { 1896 if (subType != null) {
1897 _json["subType"] = subType; 1897 _json["subType"] = subType;
1898 } 1898 }
1899 if (taxImpact != null) { 1899 if (taxImpact != null) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 creationDate = _json["creationDate"]; 1931 creationDate = _json["creationDate"];
1932 } 1932 }
1933 if (_json.containsKey("reason")) { 1933 if (_json.containsKey("reason")) {
1934 reason = _json["reason"]; 1934 reason = _json["reason"];
1935 } 1935 }
1936 if (_json.containsKey("reasonText")) { 1936 if (_json.containsKey("reasonText")) {
1937 reasonText = _json["reasonText"]; 1937 reasonText = _json["reasonText"];
1938 } 1938 }
1939 } 1939 }
1940 1940
1941 core.Map toJson() { 1941 core.Map<core.String, core.Object> toJson() {
1942 var _json = new core.Map(); 1942 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1943 if (actor != null) { 1943 if (actor != null) {
1944 _json["actor"] = actor; 1944 _json["actor"] = actor;
1945 } 1945 }
1946 if (amount != null) { 1946 if (amount != null) {
1947 _json["amount"] = (amount).toJson(); 1947 _json["amount"] = (amount).toJson();
1948 } 1948 }
1949 if (creationDate != null) { 1949 if (creationDate != null) {
1950 _json["creationDate"] = creationDate; 1950 _json["creationDate"] = creationDate;
1951 } 1951 }
1952 if (reason != null) { 1952 if (reason != null) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 quantity = _json["quantity"]; 1984 quantity = _json["quantity"];
1985 } 1985 }
1986 if (_json.containsKey("reason")) { 1986 if (_json.containsKey("reason")) {
1987 reason = _json["reason"]; 1987 reason = _json["reason"];
1988 } 1988 }
1989 if (_json.containsKey("reasonText")) { 1989 if (_json.containsKey("reasonText")) {
1990 reasonText = _json["reasonText"]; 1990 reasonText = _json["reasonText"];
1991 } 1991 }
1992 } 1992 }
1993 1993
1994 core.Map toJson() { 1994 core.Map<core.String, core.Object> toJson() {
1995 var _json = new core.Map(); 1995 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1996 if (actor != null) { 1996 if (actor != null) {
1997 _json["actor"] = actor; 1997 _json["actor"] = actor;
1998 } 1998 }
1999 if (creationDate != null) { 1999 if (creationDate != null) {
2000 _json["creationDate"] = creationDate; 2000 _json["creationDate"] = creationDate;
2001 } 2001 }
2002 if (quantity != null) { 2002 if (quantity != null) {
2003 _json["quantity"] = quantity; 2003 _json["quantity"] = quantity;
2004 } 2004 }
2005 if (reason != null) { 2005 if (reason != null) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi pment.fromJson(value)).toList(); 2050 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi pment.fromJson(value)).toList();
2051 } 2051 }
2052 if (_json.containsKey("status")) { 2052 if (_json.containsKey("status")) {
2053 status = _json["status"]; 2053 status = _json["status"];
2054 } 2054 }
2055 if (_json.containsKey("trackingId")) { 2055 if (_json.containsKey("trackingId")) {
2056 trackingId = _json["trackingId"]; 2056 trackingId = _json["trackingId"];
2057 } 2057 }
2058 } 2058 }
2059 2059
2060 core.Map toJson() { 2060 core.Map<core.String, core.Object> toJson() {
2061 var _json = new core.Map(); 2061 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2062 if (carrier != null) { 2062 if (carrier != null) {
2063 _json["carrier"] = carrier; 2063 _json["carrier"] = carrier;
2064 } 2064 }
2065 if (creationDate != null) { 2065 if (creationDate != null) {
2066 _json["creationDate"] = creationDate; 2066 _json["creationDate"] = creationDate;
2067 } 2067 }
2068 if (deliveryDate != null) { 2068 if (deliveryDate != null) {
2069 _json["deliveryDate"] = deliveryDate; 2069 _json["deliveryDate"] = deliveryDate;
2070 } 2070 }
2071 if (id != null) { 2071 if (id != null) {
(...skipping 22 matching lines...) Expand all
2094 2094
2095 OrderShipmentLineItemShipment.fromJson(core.Map _json) { 2095 OrderShipmentLineItemShipment.fromJson(core.Map _json) {
2096 if (_json.containsKey("lineItemId")) { 2096 if (_json.containsKey("lineItemId")) {
2097 lineItemId = _json["lineItemId"]; 2097 lineItemId = _json["lineItemId"];
2098 } 2098 }
2099 if (_json.containsKey("quantity")) { 2099 if (_json.containsKey("quantity")) {
2100 quantity = _json["quantity"]; 2100 quantity = _json["quantity"];
2101 } 2101 }
2102 } 2102 }
2103 2103
2104 core.Map toJson() { 2104 core.Map<core.String, core.Object> toJson() {
2105 var _json = new core.Map(); 2105 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2106 if (lineItemId != null) { 2106 if (lineItemId != null) {
2107 _json["lineItemId"] = lineItemId; 2107 _json["lineItemId"] = lineItemId;
2108 } 2108 }
2109 if (quantity != null) { 2109 if (quantity != null) {
2110 _json["quantity"] = quantity; 2110 _json["quantity"] = quantity;
2111 } 2111 }
2112 return _json; 2112 return _json;
2113 } 2113 }
2114 } 2114 }
2115 2115
2116 class OrdersAcknowledgeRequest { 2116 class OrdersAcknowledgeRequest {
2117 /** 2117 /**
2118 * The ID of the operation. Unique across all operations for a given order. 2118 * The ID of the operation. Unique across all operations for a given order.
2119 */ 2119 */
2120 core.String operationId; 2120 core.String operationId;
2121 2121
2122 OrdersAcknowledgeRequest(); 2122 OrdersAcknowledgeRequest();
2123 2123
2124 OrdersAcknowledgeRequest.fromJson(core.Map _json) { 2124 OrdersAcknowledgeRequest.fromJson(core.Map _json) {
2125 if (_json.containsKey("operationId")) { 2125 if (_json.containsKey("operationId")) {
2126 operationId = _json["operationId"]; 2126 operationId = _json["operationId"];
2127 } 2127 }
2128 } 2128 }
2129 2129
2130 core.Map toJson() { 2130 core.Map<core.String, core.Object> toJson() {
2131 var _json = new core.Map(); 2131 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2132 if (operationId != null) { 2132 if (operationId != null) {
2133 _json["operationId"] = operationId; 2133 _json["operationId"] = operationId;
2134 } 2134 }
2135 return _json; 2135 return _json;
2136 } 2136 }
2137 } 2137 }
2138 2138
2139 class OrdersAcknowledgeResponse { 2139 class OrdersAcknowledgeResponse {
2140 /** The status of the execution. */ 2140 /** The status of the execution. */
2141 core.String executionStatus; 2141 core.String executionStatus;
2142 /** 2142 /**
2143 * Identifies what kind of resource this is. Value: the fixed string 2143 * Identifies what kind of resource this is. Value: the fixed string
2144 * "content#ordersAcknowledgeResponse". 2144 * "content#ordersAcknowledgeResponse".
2145 */ 2145 */
2146 core.String kind; 2146 core.String kind;
2147 2147
2148 OrdersAcknowledgeResponse(); 2148 OrdersAcknowledgeResponse();
2149 2149
2150 OrdersAcknowledgeResponse.fromJson(core.Map _json) { 2150 OrdersAcknowledgeResponse.fromJson(core.Map _json) {
2151 if (_json.containsKey("executionStatus")) { 2151 if (_json.containsKey("executionStatus")) {
2152 executionStatus = _json["executionStatus"]; 2152 executionStatus = _json["executionStatus"];
2153 } 2153 }
2154 if (_json.containsKey("kind")) { 2154 if (_json.containsKey("kind")) {
2155 kind = _json["kind"]; 2155 kind = _json["kind"];
2156 } 2156 }
2157 } 2157 }
2158 2158
2159 core.Map toJson() { 2159 core.Map<core.String, core.Object> toJson() {
2160 var _json = new core.Map(); 2160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2161 if (executionStatus != null) { 2161 if (executionStatus != null) {
2162 _json["executionStatus"] = executionStatus; 2162 _json["executionStatus"] = executionStatus;
2163 } 2163 }
2164 if (kind != null) { 2164 if (kind != null) {
2165 _json["kind"] = kind; 2165 _json["kind"] = kind;
2166 } 2166 }
2167 return _json; 2167 return _json;
2168 } 2168 }
2169 } 2169 }
2170 2170
2171 class OrdersAdvanceTestOrderResponse { 2171 class OrdersAdvanceTestOrderResponse {
2172 /** 2172 /**
2173 * Identifies what kind of resource this is. Value: the fixed string 2173 * Identifies what kind of resource this is. Value: the fixed string
2174 * "content#ordersAdvanceTestOrderResponse". 2174 * "content#ordersAdvanceTestOrderResponse".
2175 */ 2175 */
2176 core.String kind; 2176 core.String kind;
2177 2177
2178 OrdersAdvanceTestOrderResponse(); 2178 OrdersAdvanceTestOrderResponse();
2179 2179
2180 OrdersAdvanceTestOrderResponse.fromJson(core.Map _json) { 2180 OrdersAdvanceTestOrderResponse.fromJson(core.Map _json) {
2181 if (_json.containsKey("kind")) { 2181 if (_json.containsKey("kind")) {
2182 kind = _json["kind"]; 2182 kind = _json["kind"];
2183 } 2183 }
2184 } 2184 }
2185 2185
2186 core.Map toJson() { 2186 core.Map<core.String, core.Object> toJson() {
2187 var _json = new core.Map(); 2187 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2188 if (kind != null) { 2188 if (kind != null) {
2189 _json["kind"] = kind; 2189 _json["kind"] = kind;
2190 } 2190 }
2191 return _json; 2191 return _json;
2192 } 2192 }
2193 } 2193 }
2194 2194
2195 class OrdersCancelLineItemRequest { 2195 class OrdersCancelLineItemRequest {
2196 /** 2196 /**
2197 * Amount to refund for the cancelation. Optional. If not set, Google will 2197 * Amount to refund for the cancelation. Optional. If not set, Google will
(...skipping 30 matching lines...) Expand all
2228 quantity = _json["quantity"]; 2228 quantity = _json["quantity"];
2229 } 2229 }
2230 if (_json.containsKey("reason")) { 2230 if (_json.containsKey("reason")) {
2231 reason = _json["reason"]; 2231 reason = _json["reason"];
2232 } 2232 }
2233 if (_json.containsKey("reasonText")) { 2233 if (_json.containsKey("reasonText")) {
2234 reasonText = _json["reasonText"]; 2234 reasonText = _json["reasonText"];
2235 } 2235 }
2236 } 2236 }
2237 2237
2238 core.Map toJson() { 2238 core.Map<core.String, core.Object> toJson() {
2239 var _json = new core.Map(); 2239 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2240 if (amount != null) { 2240 if (amount != null) {
2241 _json["amount"] = (amount).toJson(); 2241 _json["amount"] = (amount).toJson();
2242 } 2242 }
2243 if (lineItemId != null) { 2243 if (lineItemId != null) {
2244 _json["lineItemId"] = lineItemId; 2244 _json["lineItemId"] = lineItemId;
2245 } 2245 }
2246 if (operationId != null) { 2246 if (operationId != null) {
2247 _json["operationId"] = operationId; 2247 _json["operationId"] = operationId;
2248 } 2248 }
2249 if (quantity != null) { 2249 if (quantity != null) {
(...skipping 22 matching lines...) Expand all
2272 2272
2273 OrdersCancelLineItemResponse.fromJson(core.Map _json) { 2273 OrdersCancelLineItemResponse.fromJson(core.Map _json) {
2274 if (_json.containsKey("executionStatus")) { 2274 if (_json.containsKey("executionStatus")) {
2275 executionStatus = _json["executionStatus"]; 2275 executionStatus = _json["executionStatus"];
2276 } 2276 }
2277 if (_json.containsKey("kind")) { 2277 if (_json.containsKey("kind")) {
2278 kind = _json["kind"]; 2278 kind = _json["kind"];
2279 } 2279 }
2280 } 2280 }
2281 2281
2282 core.Map toJson() { 2282 core.Map<core.String, core.Object> toJson() {
2283 var _json = new core.Map(); 2283 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2284 if (executionStatus != null) { 2284 if (executionStatus != null) {
2285 _json["executionStatus"] = executionStatus; 2285 _json["executionStatus"] = executionStatus;
2286 } 2286 }
2287 if (kind != null) { 2287 if (kind != null) {
2288 _json["kind"] = kind; 2288 _json["kind"] = kind;
2289 } 2289 }
2290 return _json; 2290 return _json;
2291 } 2291 }
2292 } 2292 }
2293 2293
(...skipping 14 matching lines...) Expand all
2308 operationId = _json["operationId"]; 2308 operationId = _json["operationId"];
2309 } 2309 }
2310 if (_json.containsKey("reason")) { 2310 if (_json.containsKey("reason")) {
2311 reason = _json["reason"]; 2311 reason = _json["reason"];
2312 } 2312 }
2313 if (_json.containsKey("reasonText")) { 2313 if (_json.containsKey("reasonText")) {
2314 reasonText = _json["reasonText"]; 2314 reasonText = _json["reasonText"];
2315 } 2315 }
2316 } 2316 }
2317 2317
2318 core.Map toJson() { 2318 core.Map<core.String, core.Object> toJson() {
2319 var _json = new core.Map(); 2319 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2320 if (operationId != null) { 2320 if (operationId != null) {
2321 _json["operationId"] = operationId; 2321 _json["operationId"] = operationId;
2322 } 2322 }
2323 if (reason != null) { 2323 if (reason != null) {
2324 _json["reason"] = reason; 2324 _json["reason"] = reason;
2325 } 2325 }
2326 if (reasonText != null) { 2326 if (reasonText != null) {
2327 _json["reasonText"] = reasonText; 2327 _json["reasonText"] = reasonText;
2328 } 2328 }
2329 return _json; 2329 return _json;
(...skipping 13 matching lines...) Expand all
2343 2343
2344 OrdersCancelResponse.fromJson(core.Map _json) { 2344 OrdersCancelResponse.fromJson(core.Map _json) {
2345 if (_json.containsKey("executionStatus")) { 2345 if (_json.containsKey("executionStatus")) {
2346 executionStatus = _json["executionStatus"]; 2346 executionStatus = _json["executionStatus"];
2347 } 2347 }
2348 if (_json.containsKey("kind")) { 2348 if (_json.containsKey("kind")) {
2349 kind = _json["kind"]; 2349 kind = _json["kind"];
2350 } 2350 }
2351 } 2351 }
2352 2352
2353 core.Map toJson() { 2353 core.Map<core.String, core.Object> toJson() {
2354 var _json = new core.Map(); 2354 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2355 if (executionStatus != null) { 2355 if (executionStatus != null) {
2356 _json["executionStatus"] = executionStatus; 2356 _json["executionStatus"] = executionStatus;
2357 } 2357 }
2358 if (kind != null) { 2358 if (kind != null) {
2359 _json["kind"] = kind; 2359 _json["kind"] = kind;
2360 } 2360 }
2361 return _json; 2361 return _json;
2362 } 2362 }
2363 } 2363 }
2364 2364
(...skipping 11 matching lines...) Expand all
2376 2376
2377 OrdersCreateTestOrderRequest.fromJson(core.Map _json) { 2377 OrdersCreateTestOrderRequest.fromJson(core.Map _json) {
2378 if (_json.containsKey("templateName")) { 2378 if (_json.containsKey("templateName")) {
2379 templateName = _json["templateName"]; 2379 templateName = _json["templateName"];
2380 } 2380 }
2381 if (_json.containsKey("testOrder")) { 2381 if (_json.containsKey("testOrder")) {
2382 testOrder = new TestOrder.fromJson(_json["testOrder"]); 2382 testOrder = new TestOrder.fromJson(_json["testOrder"]);
2383 } 2383 }
2384 } 2384 }
2385 2385
2386 core.Map toJson() { 2386 core.Map<core.String, core.Object> toJson() {
2387 var _json = new core.Map(); 2387 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2388 if (templateName != null) { 2388 if (templateName != null) {
2389 _json["templateName"] = templateName; 2389 _json["templateName"] = templateName;
2390 } 2390 }
2391 if (testOrder != null) { 2391 if (testOrder != null) {
2392 _json["testOrder"] = (testOrder).toJson(); 2392 _json["testOrder"] = (testOrder).toJson();
2393 } 2393 }
2394 return _json; 2394 return _json;
2395 } 2395 }
2396 } 2396 }
2397 2397
(...skipping 10 matching lines...) Expand all
2408 2408
2409 OrdersCreateTestOrderResponse.fromJson(core.Map _json) { 2409 OrdersCreateTestOrderResponse.fromJson(core.Map _json) {
2410 if (_json.containsKey("kind")) { 2410 if (_json.containsKey("kind")) {
2411 kind = _json["kind"]; 2411 kind = _json["kind"];
2412 } 2412 }
2413 if (_json.containsKey("orderId")) { 2413 if (_json.containsKey("orderId")) {
2414 orderId = _json["orderId"]; 2414 orderId = _json["orderId"];
2415 } 2415 }
2416 } 2416 }
2417 2417
2418 core.Map toJson() { 2418 core.Map<core.String, core.Object> toJson() {
2419 var _json = new core.Map(); 2419 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2420 if (kind != null) { 2420 if (kind != null) {
2421 _json["kind"] = kind; 2421 _json["kind"] = kind;
2422 } 2422 }
2423 if (orderId != null) { 2423 if (orderId != null) {
2424 _json["orderId"] = orderId; 2424 _json["orderId"] = orderId;
2425 } 2425 }
2426 return _json; 2426 return _json;
2427 } 2427 }
2428 } 2428 }
2429 2429
2430 class OrdersCustomBatchRequest { 2430 class OrdersCustomBatchRequest {
2431 /** The request entries to be processed in the batch. */ 2431 /** The request entries to be processed in the batch. */
2432 core.List<OrdersCustomBatchRequestEntry> entries; 2432 core.List<OrdersCustomBatchRequestEntry> entries;
2433 2433
2434 OrdersCustomBatchRequest(); 2434 OrdersCustomBatchRequest();
2435 2435
2436 OrdersCustomBatchRequest.fromJson(core.Map _json) { 2436 OrdersCustomBatchRequest.fromJson(core.Map _json) {
2437 if (_json.containsKey("entries")) { 2437 if (_json.containsKey("entries")) {
2438 entries = _json["entries"].map((value) => new OrdersCustomBatchRequestEntr y.fromJson(value)).toList(); 2438 entries = _json["entries"].map((value) => new OrdersCustomBatchRequestEntr y.fromJson(value)).toList();
2439 } 2439 }
2440 } 2440 }
2441 2441
2442 core.Map toJson() { 2442 core.Map<core.String, core.Object> toJson() {
2443 var _json = new core.Map(); 2443 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2444 if (entries != null) { 2444 if (entries != null) {
2445 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 2445 _json["entries"] = entries.map((value) => (value).toJson()).toList();
2446 } 2446 }
2447 return _json; 2447 return _json;
2448 } 2448 }
2449 } 2449 }
2450 2450
2451 class OrdersCustomBatchRequestEntry { 2451 class OrdersCustomBatchRequestEntry {
2452 /** An entry ID, unique within the batch request. */ 2452 /** An entry ID, unique within the batch request. */
2453 core.int batchId; 2453 core.int batchId;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2516 returnLineItem = new OrdersCustomBatchRequestEntryReturnLineItem.fromJson( _json["returnLineItem"]); 2516 returnLineItem = new OrdersCustomBatchRequestEntryReturnLineItem.fromJson( _json["returnLineItem"]);
2517 } 2517 }
2518 if (_json.containsKey("shipLineItems")) { 2518 if (_json.containsKey("shipLineItems")) {
2519 shipLineItems = new OrdersCustomBatchRequestEntryShipLineItems.fromJson(_j son["shipLineItems"]); 2519 shipLineItems = new OrdersCustomBatchRequestEntryShipLineItems.fromJson(_j son["shipLineItems"]);
2520 } 2520 }
2521 if (_json.containsKey("updateShipment")) { 2521 if (_json.containsKey("updateShipment")) {
2522 updateShipment = new OrdersCustomBatchRequestEntryUpdateShipment.fromJson( _json["updateShipment"]); 2522 updateShipment = new OrdersCustomBatchRequestEntryUpdateShipment.fromJson( _json["updateShipment"]);
2523 } 2523 }
2524 } 2524 }
2525 2525
2526 core.Map toJson() { 2526 core.Map<core.String, core.Object> toJson() {
2527 var _json = new core.Map(); 2527 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2528 if (batchId != null) { 2528 if (batchId != null) {
2529 _json["batchId"] = batchId; 2529 _json["batchId"] = batchId;
2530 } 2530 }
2531 if (cancel != null) { 2531 if (cancel != null) {
2532 _json["cancel"] = (cancel).toJson(); 2532 _json["cancel"] = (cancel).toJson();
2533 } 2533 }
2534 if (cancelLineItem != null) { 2534 if (cancelLineItem != null) {
2535 _json["cancelLineItem"] = (cancelLineItem).toJson(); 2535 _json["cancelLineItem"] = (cancelLineItem).toJson();
2536 } 2536 }
2537 if (merchantId != null) { 2537 if (merchantId != null) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2575 2575
2576 OrdersCustomBatchRequestEntryCancel.fromJson(core.Map _json) { 2576 OrdersCustomBatchRequestEntryCancel.fromJson(core.Map _json) {
2577 if (_json.containsKey("reason")) { 2577 if (_json.containsKey("reason")) {
2578 reason = _json["reason"]; 2578 reason = _json["reason"];
2579 } 2579 }
2580 if (_json.containsKey("reasonText")) { 2580 if (_json.containsKey("reasonText")) {
2581 reasonText = _json["reasonText"]; 2581 reasonText = _json["reasonText"];
2582 } 2582 }
2583 } 2583 }
2584 2584
2585 core.Map toJson() { 2585 core.Map<core.String, core.Object> toJson() {
2586 var _json = new core.Map(); 2586 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2587 if (reason != null) { 2587 if (reason != null) {
2588 _json["reason"] = reason; 2588 _json["reason"] = reason;
2589 } 2589 }
2590 if (reasonText != null) { 2590 if (reasonText != null) {
2591 _json["reasonText"] = reasonText; 2591 _json["reasonText"] = reasonText;
2592 } 2592 }
2593 return _json; 2593 return _json;
2594 } 2594 }
2595 } 2595 }
2596 2596
(...skipping 26 matching lines...) Expand all
2623 quantity = _json["quantity"]; 2623 quantity = _json["quantity"];
2624 } 2624 }
2625 if (_json.containsKey("reason")) { 2625 if (_json.containsKey("reason")) {
2626 reason = _json["reason"]; 2626 reason = _json["reason"];
2627 } 2627 }
2628 if (_json.containsKey("reasonText")) { 2628 if (_json.containsKey("reasonText")) {
2629 reasonText = _json["reasonText"]; 2629 reasonText = _json["reasonText"];
2630 } 2630 }
2631 } 2631 }
2632 2632
2633 core.Map toJson() { 2633 core.Map<core.String, core.Object> toJson() {
2634 var _json = new core.Map(); 2634 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2635 if (amount != null) { 2635 if (amount != null) {
2636 _json["amount"] = (amount).toJson(); 2636 _json["amount"] = (amount).toJson();
2637 } 2637 }
2638 if (lineItemId != null) { 2638 if (lineItemId != null) {
2639 _json["lineItemId"] = lineItemId; 2639 _json["lineItemId"] = lineItemId;
2640 } 2640 }
2641 if (quantity != null) { 2641 if (quantity != null) {
2642 _json["quantity"] = quantity; 2642 _json["quantity"] = quantity;
2643 } 2643 }
2644 if (reason != null) { 2644 if (reason != null) {
(...skipping 21 matching lines...) Expand all
2666 amount = new Price.fromJson(_json["amount"]); 2666 amount = new Price.fromJson(_json["amount"]);
2667 } 2667 }
2668 if (_json.containsKey("reason")) { 2668 if (_json.containsKey("reason")) {
2669 reason = _json["reason"]; 2669 reason = _json["reason"];
2670 } 2670 }
2671 if (_json.containsKey("reasonText")) { 2671 if (_json.containsKey("reasonText")) {
2672 reasonText = _json["reasonText"]; 2672 reasonText = _json["reasonText"];
2673 } 2673 }
2674 } 2674 }
2675 2675
2676 core.Map toJson() { 2676 core.Map<core.String, core.Object> toJson() {
2677 var _json = new core.Map(); 2677 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2678 if (amount != null) { 2678 if (amount != null) {
2679 _json["amount"] = (amount).toJson(); 2679 _json["amount"] = (amount).toJson();
2680 } 2680 }
2681 if (reason != null) { 2681 if (reason != null) {
2682 _json["reason"] = reason; 2682 _json["reason"] = reason;
2683 } 2683 }
2684 if (reasonText != null) { 2684 if (reasonText != null) {
2685 _json["reasonText"] = reasonText; 2685 _json["reasonText"] = reasonText;
2686 } 2686 }
2687 return _json; 2687 return _json;
(...skipping 20 matching lines...) Expand all
2708 quantity = _json["quantity"]; 2708 quantity = _json["quantity"];
2709 } 2709 }
2710 if (_json.containsKey("reason")) { 2710 if (_json.containsKey("reason")) {
2711 reason = _json["reason"]; 2711 reason = _json["reason"];
2712 } 2712 }
2713 if (_json.containsKey("reasonText")) { 2713 if (_json.containsKey("reasonText")) {
2714 reasonText = _json["reasonText"]; 2714 reasonText = _json["reasonText"];
2715 } 2715 }
2716 } 2716 }
2717 2717
2718 core.Map toJson() { 2718 core.Map<core.String, core.Object> toJson() {
2719 var _json = new core.Map(); 2719 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2720 if (lineItemId != null) { 2720 if (lineItemId != null) {
2721 _json["lineItemId"] = lineItemId; 2721 _json["lineItemId"] = lineItemId;
2722 } 2722 }
2723 if (quantity != null) { 2723 if (quantity != null) {
2724 _json["quantity"] = quantity; 2724 _json["quantity"] = quantity;
2725 } 2725 }
2726 if (reason != null) { 2726 if (reason != null) {
2727 _json["reason"] = reason; 2727 _json["reason"] = reason;
2728 } 2728 }
2729 if (reasonText != null) { 2729 if (reasonText != null) {
(...skipping 23 matching lines...) Expand all
2753 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi pment.fromJson(value)).toList(); 2753 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi pment.fromJson(value)).toList();
2754 } 2754 }
2755 if (_json.containsKey("shipmentId")) { 2755 if (_json.containsKey("shipmentId")) {
2756 shipmentId = _json["shipmentId"]; 2756 shipmentId = _json["shipmentId"];
2757 } 2757 }
2758 if (_json.containsKey("trackingId")) { 2758 if (_json.containsKey("trackingId")) {
2759 trackingId = _json["trackingId"]; 2759 trackingId = _json["trackingId"];
2760 } 2760 }
2761 } 2761 }
2762 2762
2763 core.Map toJson() { 2763 core.Map<core.String, core.Object> toJson() {
2764 var _json = new core.Map(); 2764 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2765 if (carrier != null) { 2765 if (carrier != null) {
2766 _json["carrier"] = carrier; 2766 _json["carrier"] = carrier;
2767 } 2767 }
2768 if (lineItems != null) { 2768 if (lineItems != null) {
2769 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); 2769 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList();
2770 } 2770 }
2771 if (shipmentId != null) { 2771 if (shipmentId != null) {
2772 _json["shipmentId"] = shipmentId; 2772 _json["shipmentId"] = shipmentId;
2773 } 2773 }
2774 if (trackingId != null) { 2774 if (trackingId != null) {
(...skipping 23 matching lines...) Expand all
2798 shipmentId = _json["shipmentId"]; 2798 shipmentId = _json["shipmentId"];
2799 } 2799 }
2800 if (_json.containsKey("status")) { 2800 if (_json.containsKey("status")) {
2801 status = _json["status"]; 2801 status = _json["status"];
2802 } 2802 }
2803 if (_json.containsKey("trackingId")) { 2803 if (_json.containsKey("trackingId")) {
2804 trackingId = _json["trackingId"]; 2804 trackingId = _json["trackingId"];
2805 } 2805 }
2806 } 2806 }
2807 2807
2808 core.Map toJson() { 2808 core.Map<core.String, core.Object> toJson() {
2809 var _json = new core.Map(); 2809 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2810 if (carrier != null) { 2810 if (carrier != null) {
2811 _json["carrier"] = carrier; 2811 _json["carrier"] = carrier;
2812 } 2812 }
2813 if (shipmentId != null) { 2813 if (shipmentId != null) {
2814 _json["shipmentId"] = shipmentId; 2814 _json["shipmentId"] = shipmentId;
2815 } 2815 }
2816 if (status != null) { 2816 if (status != null) {
2817 _json["status"] = status; 2817 _json["status"] = status;
2818 } 2818 }
2819 if (trackingId != null) { 2819 if (trackingId != null) {
(...skipping 16 matching lines...) Expand all
2836 2836
2837 OrdersCustomBatchResponse.fromJson(core.Map _json) { 2837 OrdersCustomBatchResponse.fromJson(core.Map _json) {
2838 if (_json.containsKey("entries")) { 2838 if (_json.containsKey("entries")) {
2839 entries = _json["entries"].map((value) => new OrdersCustomBatchResponseEnt ry.fromJson(value)).toList(); 2839 entries = _json["entries"].map((value) => new OrdersCustomBatchResponseEnt ry.fromJson(value)).toList();
2840 } 2840 }
2841 if (_json.containsKey("kind")) { 2841 if (_json.containsKey("kind")) {
2842 kind = _json["kind"]; 2842 kind = _json["kind"];
2843 } 2843 }
2844 } 2844 }
2845 2845
2846 core.Map toJson() { 2846 core.Map<core.String, core.Object> toJson() {
2847 var _json = new core.Map(); 2847 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2848 if (entries != null) { 2848 if (entries != null) {
2849 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 2849 _json["entries"] = entries.map((value) => (value).toJson()).toList();
2850 } 2850 }
2851 if (kind != null) { 2851 if (kind != null) {
2852 _json["kind"] = kind; 2852 _json["kind"] = kind;
2853 } 2853 }
2854 return _json; 2854 return _json;
2855 } 2855 }
2856 } 2856 }
2857 2857
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2889 executionStatus = _json["executionStatus"]; 2889 executionStatus = _json["executionStatus"];
2890 } 2890 }
2891 if (_json.containsKey("kind")) { 2891 if (_json.containsKey("kind")) {
2892 kind = _json["kind"]; 2892 kind = _json["kind"];
2893 } 2893 }
2894 if (_json.containsKey("order")) { 2894 if (_json.containsKey("order")) {
2895 order = new Order.fromJson(_json["order"]); 2895 order = new Order.fromJson(_json["order"]);
2896 } 2896 }
2897 } 2897 }
2898 2898
2899 core.Map toJson() { 2899 core.Map<core.String, core.Object> toJson() {
2900 var _json = new core.Map(); 2900 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2901 if (batchId != null) { 2901 if (batchId != null) {
2902 _json["batchId"] = batchId; 2902 _json["batchId"] = batchId;
2903 } 2903 }
2904 if (errors != null) { 2904 if (errors != null) {
2905 _json["errors"] = (errors).toJson(); 2905 _json["errors"] = (errors).toJson();
2906 } 2906 }
2907 if (executionStatus != null) { 2907 if (executionStatus != null) {
2908 _json["executionStatus"] = executionStatus; 2908 _json["executionStatus"] = executionStatus;
2909 } 2909 }
2910 if (kind != null) { 2910 if (kind != null) {
(...skipping 19 matching lines...) Expand all
2930 2930
2931 OrdersGetByMerchantOrderIdResponse.fromJson(core.Map _json) { 2931 OrdersGetByMerchantOrderIdResponse.fromJson(core.Map _json) {
2932 if (_json.containsKey("kind")) { 2932 if (_json.containsKey("kind")) {
2933 kind = _json["kind"]; 2933 kind = _json["kind"];
2934 } 2934 }
2935 if (_json.containsKey("order")) { 2935 if (_json.containsKey("order")) {
2936 order = new Order.fromJson(_json["order"]); 2936 order = new Order.fromJson(_json["order"]);
2937 } 2937 }
2938 } 2938 }
2939 2939
2940 core.Map toJson() { 2940 core.Map<core.String, core.Object> toJson() {
2941 var _json = new core.Map(); 2941 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2942 if (kind != null) { 2942 if (kind != null) {
2943 _json["kind"] = kind; 2943 _json["kind"] = kind;
2944 } 2944 }
2945 if (order != null) { 2945 if (order != null) {
2946 _json["order"] = (order).toJson(); 2946 _json["order"] = (order).toJson();
2947 } 2947 }
2948 return _json; 2948 return _json;
2949 } 2949 }
2950 } 2950 }
2951 2951
(...skipping 10 matching lines...) Expand all
2962 2962
2963 OrdersGetTestOrderTemplateResponse.fromJson(core.Map _json) { 2963 OrdersGetTestOrderTemplateResponse.fromJson(core.Map _json) {
2964 if (_json.containsKey("kind")) { 2964 if (_json.containsKey("kind")) {
2965 kind = _json["kind"]; 2965 kind = _json["kind"];
2966 } 2966 }
2967 if (_json.containsKey("template")) { 2967 if (_json.containsKey("template")) {
2968 template = new TestOrder.fromJson(_json["template"]); 2968 template = new TestOrder.fromJson(_json["template"]);
2969 } 2969 }
2970 } 2970 }
2971 2971
2972 core.Map toJson() { 2972 core.Map<core.String, core.Object> toJson() {
2973 var _json = new core.Map(); 2973 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2974 if (kind != null) { 2974 if (kind != null) {
2975 _json["kind"] = kind; 2975 _json["kind"] = kind;
2976 } 2976 }
2977 if (template != null) { 2977 if (template != null) {
2978 _json["template"] = (template).toJson(); 2978 _json["template"] = (template).toJson();
2979 } 2979 }
2980 return _json; 2980 return _json;
2981 } 2981 }
2982 } 2982 }
2983 2983
(...skipping 14 matching lines...) Expand all
2998 kind = _json["kind"]; 2998 kind = _json["kind"];
2999 } 2999 }
3000 if (_json.containsKey("nextPageToken")) { 3000 if (_json.containsKey("nextPageToken")) {
3001 nextPageToken = _json["nextPageToken"]; 3001 nextPageToken = _json["nextPageToken"];
3002 } 3002 }
3003 if (_json.containsKey("resources")) { 3003 if (_json.containsKey("resources")) {
3004 resources = _json["resources"].map((value) => new Order.fromJson(value)).t oList(); 3004 resources = _json["resources"].map((value) => new Order.fromJson(value)).t oList();
3005 } 3005 }
3006 } 3006 }
3007 3007
3008 core.Map toJson() { 3008 core.Map<core.String, core.Object> toJson() {
3009 var _json = new core.Map(); 3009 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3010 if (kind != null) { 3010 if (kind != null) {
3011 _json["kind"] = kind; 3011 _json["kind"] = kind;
3012 } 3012 }
3013 if (nextPageToken != null) { 3013 if (nextPageToken != null) {
3014 _json["nextPageToken"] = nextPageToken; 3014 _json["nextPageToken"] = nextPageToken;
3015 } 3015 }
3016 if (resources != null) { 3016 if (resources != null) {
3017 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 3017 _json["resources"] = resources.map((value) => (value).toJson()).toList();
3018 } 3018 }
3019 return _json; 3019 return _json;
(...skipping 22 matching lines...) Expand all
3042 operationId = _json["operationId"]; 3042 operationId = _json["operationId"];
3043 } 3043 }
3044 if (_json.containsKey("reason")) { 3044 if (_json.containsKey("reason")) {
3045 reason = _json["reason"]; 3045 reason = _json["reason"];
3046 } 3046 }
3047 if (_json.containsKey("reasonText")) { 3047 if (_json.containsKey("reasonText")) {
3048 reasonText = _json["reasonText"]; 3048 reasonText = _json["reasonText"];
3049 } 3049 }
3050 } 3050 }
3051 3051
3052 core.Map toJson() { 3052 core.Map<core.String, core.Object> toJson() {
3053 var _json = new core.Map(); 3053 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3054 if (amount != null) { 3054 if (amount != null) {
3055 _json["amount"] = (amount).toJson(); 3055 _json["amount"] = (amount).toJson();
3056 } 3056 }
3057 if (operationId != null) { 3057 if (operationId != null) {
3058 _json["operationId"] = operationId; 3058 _json["operationId"] = operationId;
3059 } 3059 }
3060 if (reason != null) { 3060 if (reason != null) {
3061 _json["reason"] = reason; 3061 _json["reason"] = reason;
3062 } 3062 }
3063 if (reasonText != null) { 3063 if (reasonText != null) {
(...skipping 16 matching lines...) Expand all
3080 3080
3081 OrdersRefundResponse.fromJson(core.Map _json) { 3081 OrdersRefundResponse.fromJson(core.Map _json) {
3082 if (_json.containsKey("executionStatus")) { 3082 if (_json.containsKey("executionStatus")) {
3083 executionStatus = _json["executionStatus"]; 3083 executionStatus = _json["executionStatus"];
3084 } 3084 }
3085 if (_json.containsKey("kind")) { 3085 if (_json.containsKey("kind")) {
3086 kind = _json["kind"]; 3086 kind = _json["kind"];
3087 } 3087 }
3088 } 3088 }
3089 3089
3090 core.Map toJson() { 3090 core.Map<core.String, core.Object> toJson() {
3091 var _json = new core.Map(); 3091 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3092 if (executionStatus != null) { 3092 if (executionStatus != null) {
3093 _json["executionStatus"] = executionStatus; 3093 _json["executionStatus"] = executionStatus;
3094 } 3094 }
3095 if (kind != null) { 3095 if (kind != null) {
3096 _json["kind"] = kind; 3096 _json["kind"] = kind;
3097 } 3097 }
3098 return _json; 3098 return _json;
3099 } 3099 }
3100 } 3100 }
3101 3101
(...skipping 24 matching lines...) Expand all
3126 quantity = _json["quantity"]; 3126 quantity = _json["quantity"];
3127 } 3127 }
3128 if (_json.containsKey("reason")) { 3128 if (_json.containsKey("reason")) {
3129 reason = _json["reason"]; 3129 reason = _json["reason"];
3130 } 3130 }
3131 if (_json.containsKey("reasonText")) { 3131 if (_json.containsKey("reasonText")) {
3132 reasonText = _json["reasonText"]; 3132 reasonText = _json["reasonText"];
3133 } 3133 }
3134 } 3134 }
3135 3135
3136 core.Map toJson() { 3136 core.Map<core.String, core.Object> toJson() {
3137 var _json = new core.Map(); 3137 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3138 if (lineItemId != null) { 3138 if (lineItemId != null) {
3139 _json["lineItemId"] = lineItemId; 3139 _json["lineItemId"] = lineItemId;
3140 } 3140 }
3141 if (operationId != null) { 3141 if (operationId != null) {
3142 _json["operationId"] = operationId; 3142 _json["operationId"] = operationId;
3143 } 3143 }
3144 if (quantity != null) { 3144 if (quantity != null) {
3145 _json["quantity"] = quantity; 3145 _json["quantity"] = quantity;
3146 } 3146 }
3147 if (reason != null) { 3147 if (reason != null) {
(...skipping 19 matching lines...) Expand all
3167 3167
3168 OrdersReturnLineItemResponse.fromJson(core.Map _json) { 3168 OrdersReturnLineItemResponse.fromJson(core.Map _json) {
3169 if (_json.containsKey("executionStatus")) { 3169 if (_json.containsKey("executionStatus")) {
3170 executionStatus = _json["executionStatus"]; 3170 executionStatus = _json["executionStatus"];
3171 } 3171 }
3172 if (_json.containsKey("kind")) { 3172 if (_json.containsKey("kind")) {
3173 kind = _json["kind"]; 3173 kind = _json["kind"];
3174 } 3174 }
3175 } 3175 }
3176 3176
3177 core.Map toJson() { 3177 core.Map<core.String, core.Object> toJson() {
3178 var _json = new core.Map(); 3178 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3179 if (executionStatus != null) { 3179 if (executionStatus != null) {
3180 _json["executionStatus"] = executionStatus; 3180 _json["executionStatus"] = executionStatus;
3181 } 3181 }
3182 if (kind != null) { 3182 if (kind != null) {
3183 _json["kind"] = kind; 3183 _json["kind"] = kind;
3184 } 3184 }
3185 return _json; 3185 return _json;
3186 } 3186 }
3187 } 3187 }
3188 3188
(...skipping 24 matching lines...) Expand all
3213 operationId = _json["operationId"]; 3213 operationId = _json["operationId"];
3214 } 3214 }
3215 if (_json.containsKey("shipmentId")) { 3215 if (_json.containsKey("shipmentId")) {
3216 shipmentId = _json["shipmentId"]; 3216 shipmentId = _json["shipmentId"];
3217 } 3217 }
3218 if (_json.containsKey("trackingId")) { 3218 if (_json.containsKey("trackingId")) {
3219 trackingId = _json["trackingId"]; 3219 trackingId = _json["trackingId"];
3220 } 3220 }
3221 } 3221 }
3222 3222
3223 core.Map toJson() { 3223 core.Map<core.String, core.Object> toJson() {
3224 var _json = new core.Map(); 3224 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3225 if (carrier != null) { 3225 if (carrier != null) {
3226 _json["carrier"] = carrier; 3226 _json["carrier"] = carrier;
3227 } 3227 }
3228 if (lineItems != null) { 3228 if (lineItems != null) {
3229 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); 3229 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList();
3230 } 3230 }
3231 if (operationId != null) { 3231 if (operationId != null) {
3232 _json["operationId"] = operationId; 3232 _json["operationId"] = operationId;
3233 } 3233 }
3234 if (shipmentId != null) { 3234 if (shipmentId != null) {
(...skipping 19 matching lines...) Expand all
3254 3254
3255 OrdersShipLineItemsResponse.fromJson(core.Map _json) { 3255 OrdersShipLineItemsResponse.fromJson(core.Map _json) {
3256 if (_json.containsKey("executionStatus")) { 3256 if (_json.containsKey("executionStatus")) {
3257 executionStatus = _json["executionStatus"]; 3257 executionStatus = _json["executionStatus"];
3258 } 3258 }
3259 if (_json.containsKey("kind")) { 3259 if (_json.containsKey("kind")) {
3260 kind = _json["kind"]; 3260 kind = _json["kind"];
3261 } 3261 }
3262 } 3262 }
3263 3263
3264 core.Map toJson() { 3264 core.Map<core.String, core.Object> toJson() {
3265 var _json = new core.Map(); 3265 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3266 if (executionStatus != null) { 3266 if (executionStatus != null) {
3267 _json["executionStatus"] = executionStatus; 3267 _json["executionStatus"] = executionStatus;
3268 } 3268 }
3269 if (kind != null) { 3269 if (kind != null) {
3270 _json["kind"] = kind; 3270 _json["kind"] = kind;
3271 } 3271 }
3272 return _json; 3272 return _json;
3273 } 3273 }
3274 } 3274 }
3275 3275
(...skipping 12 matching lines...) Expand all
3288 3288
3289 OrdersUpdateMerchantOrderIdRequest.fromJson(core.Map _json) { 3289 OrdersUpdateMerchantOrderIdRequest.fromJson(core.Map _json) {
3290 if (_json.containsKey("merchantOrderId")) { 3290 if (_json.containsKey("merchantOrderId")) {
3291 merchantOrderId = _json["merchantOrderId"]; 3291 merchantOrderId = _json["merchantOrderId"];
3292 } 3292 }
3293 if (_json.containsKey("operationId")) { 3293 if (_json.containsKey("operationId")) {
3294 operationId = _json["operationId"]; 3294 operationId = _json["operationId"];
3295 } 3295 }
3296 } 3296 }
3297 3297
3298 core.Map toJson() { 3298 core.Map<core.String, core.Object> toJson() {
3299 var _json = new core.Map(); 3299 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3300 if (merchantOrderId != null) { 3300 if (merchantOrderId != null) {
3301 _json["merchantOrderId"] = merchantOrderId; 3301 _json["merchantOrderId"] = merchantOrderId;
3302 } 3302 }
3303 if (operationId != null) { 3303 if (operationId != null) {
3304 _json["operationId"] = operationId; 3304 _json["operationId"] = operationId;
3305 } 3305 }
3306 return _json; 3306 return _json;
3307 } 3307 }
3308 } 3308 }
3309 3309
(...skipping 10 matching lines...) Expand all
3320 3320
3321 OrdersUpdateMerchantOrderIdResponse.fromJson(core.Map _json) { 3321 OrdersUpdateMerchantOrderIdResponse.fromJson(core.Map _json) {
3322 if (_json.containsKey("executionStatus")) { 3322 if (_json.containsKey("executionStatus")) {
3323 executionStatus = _json["executionStatus"]; 3323 executionStatus = _json["executionStatus"];
3324 } 3324 }
3325 if (_json.containsKey("kind")) { 3325 if (_json.containsKey("kind")) {
3326 kind = _json["kind"]; 3326 kind = _json["kind"];
3327 } 3327 }
3328 } 3328 }
3329 3329
3330 core.Map toJson() { 3330 core.Map<core.String, core.Object> toJson() {
3331 var _json = new core.Map(); 3331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3332 if (executionStatus != null) { 3332 if (executionStatus != null) {
3333 _json["executionStatus"] = executionStatus; 3333 _json["executionStatus"] = executionStatus;
3334 } 3334 }
3335 if (kind != null) { 3335 if (kind != null) {
3336 _json["kind"] = kind; 3336 _json["kind"] = kind;
3337 } 3337 }
3338 return _json; 3338 return _json;
3339 } 3339 }
3340 } 3340 }
3341 3341
(...skipping 24 matching lines...) Expand all
3366 shipmentId = _json["shipmentId"]; 3366 shipmentId = _json["shipmentId"];
3367 } 3367 }
3368 if (_json.containsKey("status")) { 3368 if (_json.containsKey("status")) {
3369 status = _json["status"]; 3369 status = _json["status"];
3370 } 3370 }
3371 if (_json.containsKey("trackingId")) { 3371 if (_json.containsKey("trackingId")) {
3372 trackingId = _json["trackingId"]; 3372 trackingId = _json["trackingId"];
3373 } 3373 }
3374 } 3374 }
3375 3375
3376 core.Map toJson() { 3376 core.Map<core.String, core.Object> toJson() {
3377 var _json = new core.Map(); 3377 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3378 if (carrier != null) { 3378 if (carrier != null) {
3379 _json["carrier"] = carrier; 3379 _json["carrier"] = carrier;
3380 } 3380 }
3381 if (operationId != null) { 3381 if (operationId != null) {
3382 _json["operationId"] = operationId; 3382 _json["operationId"] = operationId;
3383 } 3383 }
3384 if (shipmentId != null) { 3384 if (shipmentId != null) {
3385 _json["shipmentId"] = shipmentId; 3385 _json["shipmentId"] = shipmentId;
3386 } 3386 }
3387 if (status != null) { 3387 if (status != null) {
(...skipping 19 matching lines...) Expand all
3407 3407
3408 OrdersUpdateShipmentResponse.fromJson(core.Map _json) { 3408 OrdersUpdateShipmentResponse.fromJson(core.Map _json) {
3409 if (_json.containsKey("executionStatus")) { 3409 if (_json.containsKey("executionStatus")) {
3410 executionStatus = _json["executionStatus"]; 3410 executionStatus = _json["executionStatus"];
3411 } 3411 }
3412 if (_json.containsKey("kind")) { 3412 if (_json.containsKey("kind")) {
3413 kind = _json["kind"]; 3413 kind = _json["kind"];
3414 } 3414 }
3415 } 3415 }
3416 3416
3417 core.Map toJson() { 3417 core.Map<core.String, core.Object> toJson() {
3418 var _json = new core.Map(); 3418 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3419 if (executionStatus != null) { 3419 if (executionStatus != null) {
3420 _json["executionStatus"] = executionStatus; 3420 _json["executionStatus"] = executionStatus;
3421 } 3421 }
3422 if (kind != null) { 3422 if (kind != null) {
3423 _json["kind"] = kind; 3423 _json["kind"] = kind;
3424 } 3424 }
3425 return _json; 3425 return _json;
3426 } 3426 }
3427 } 3427 }
3428 3428
3429 class Price { 3429 class Price {
3430 /** The currency of the price. */ 3430 /** The currency of the price. */
3431 core.String currency; 3431 core.String currency;
3432 /** The price represented as a number. */ 3432 /** The price represented as a number. */
3433 core.String value; 3433 core.String value;
3434 3434
3435 Price(); 3435 Price();
3436 3436
3437 Price.fromJson(core.Map _json) { 3437 Price.fromJson(core.Map _json) {
3438 if (_json.containsKey("currency")) { 3438 if (_json.containsKey("currency")) {
3439 currency = _json["currency"]; 3439 currency = _json["currency"];
3440 } 3440 }
3441 if (_json.containsKey("value")) { 3441 if (_json.containsKey("value")) {
3442 value = _json["value"]; 3442 value = _json["value"];
3443 } 3443 }
3444 } 3444 }
3445 3445
3446 core.Map toJson() { 3446 core.Map<core.String, core.Object> toJson() {
3447 var _json = new core.Map(); 3447 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3448 if (currency != null) { 3448 if (currency != null) {
3449 _json["currency"] = currency; 3449 _json["currency"] = currency;
3450 } 3450 }
3451 if (value != null) { 3451 if (value != null) {
3452 _json["value"] = value; 3452 _json["value"] = value;
3453 } 3453 }
3454 return _json; 3454 return _json;
3455 } 3455 }
3456 } 3456 }
3457 3457
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
3508 shippingCost = new Price.fromJson(_json["shippingCost"]); 3508 shippingCost = new Price.fromJson(_json["shippingCost"]);
3509 } 3509 }
3510 if (_json.containsKey("shippingCostTax")) { 3510 if (_json.containsKey("shippingCostTax")) {
3511 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]); 3511 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]);
3512 } 3512 }
3513 if (_json.containsKey("shippingOption")) { 3513 if (_json.containsKey("shippingOption")) {
3514 shippingOption = _json["shippingOption"]; 3514 shippingOption = _json["shippingOption"];
3515 } 3515 }
3516 } 3516 }
3517 3517
3518 core.Map toJson() { 3518 core.Map<core.String, core.Object> toJson() {
3519 var _json = new core.Map(); 3519 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3520 if (customer != null) { 3520 if (customer != null) {
3521 _json["customer"] = (customer).toJson(); 3521 _json["customer"] = (customer).toJson();
3522 } 3522 }
3523 if (kind != null) { 3523 if (kind != null) {
3524 _json["kind"] = kind; 3524 _json["kind"] = kind;
3525 } 3525 }
3526 if (lineItems != null) { 3526 if (lineItems != null) {
3527 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); 3527 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList();
3528 } 3528 }
3529 if (paymentMethod != null) { 3529 if (paymentMethod != null) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
3569 email = _json["email"]; 3569 email = _json["email"];
3570 } 3570 }
3571 if (_json.containsKey("explicitMarketingPreference")) { 3571 if (_json.containsKey("explicitMarketingPreference")) {
3572 explicitMarketingPreference = _json["explicitMarketingPreference"]; 3572 explicitMarketingPreference = _json["explicitMarketingPreference"];
3573 } 3573 }
3574 if (_json.containsKey("fullName")) { 3574 if (_json.containsKey("fullName")) {
3575 fullName = _json["fullName"]; 3575 fullName = _json["fullName"];
3576 } 3576 }
3577 } 3577 }
3578 3578
3579 core.Map toJson() { 3579 core.Map<core.String, core.Object> toJson() {
3580 var _json = new core.Map(); 3580 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3581 if (email != null) { 3581 if (email != null) {
3582 _json["email"] = email; 3582 _json["email"] = email;
3583 } 3583 }
3584 if (explicitMarketingPreference != null) { 3584 if (explicitMarketingPreference != null) {
3585 _json["explicitMarketingPreference"] = explicitMarketingPreference; 3585 _json["explicitMarketingPreference"] = explicitMarketingPreference;
3586 } 3586 }
3587 if (fullName != null) { 3587 if (fullName != null) {
3588 _json["fullName"] = fullName; 3588 _json["fullName"] = fullName;
3589 } 3589 }
3590 return _json; 3590 return _json;
(...skipping 25 matching lines...) Expand all
3616 returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]); 3616 returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]);
3617 } 3617 }
3618 if (_json.containsKey("shippingDetails")) { 3618 if (_json.containsKey("shippingDetails")) {
3619 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin gDetails"]); 3619 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin gDetails"]);
3620 } 3620 }
3621 if (_json.containsKey("unitTax")) { 3621 if (_json.containsKey("unitTax")) {
3622 unitTax = new Price.fromJson(_json["unitTax"]); 3622 unitTax = new Price.fromJson(_json["unitTax"]);
3623 } 3623 }
3624 } 3624 }
3625 3625
3626 core.Map toJson() { 3626 core.Map<core.String, core.Object> toJson() {
3627 var _json = new core.Map(); 3627 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3628 if (product != null) { 3628 if (product != null) {
3629 _json["product"] = (product).toJson(); 3629 _json["product"] = (product).toJson();
3630 } 3630 }
3631 if (quantityOrdered != null) { 3631 if (quantityOrdered != null) {
3632 _json["quantityOrdered"] = quantityOrdered; 3632 _json["quantityOrdered"] = quantityOrdered;
3633 } 3633 }
3634 if (returnInfo != null) { 3634 if (returnInfo != null) {
3635 _json["returnInfo"] = (returnInfo).toJson(); 3635 _json["returnInfo"] = (returnInfo).toJson();
3636 } 3636 }
3637 if (shippingDetails != null) { 3637 if (shippingDetails != null) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
3709 targetCountry = _json["targetCountry"]; 3709 targetCountry = _json["targetCountry"];
3710 } 3710 }
3711 if (_json.containsKey("title")) { 3711 if (_json.containsKey("title")) {
3712 title = _json["title"]; 3712 title = _json["title"];
3713 } 3713 }
3714 if (_json.containsKey("variantAttributes")) { 3714 if (_json.containsKey("variantAttributes")) {
3715 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin eItemProductVariantAttribute.fromJson(value)).toList(); 3715 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin eItemProductVariantAttribute.fromJson(value)).toList();
3716 } 3716 }
3717 } 3717 }
3718 3718
3719 core.Map toJson() { 3719 core.Map<core.String, core.Object> toJson() {
3720 var _json = new core.Map(); 3720 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3721 if (brand != null) { 3721 if (brand != null) {
3722 _json["brand"] = brand; 3722 _json["brand"] = brand;
3723 } 3723 }
3724 if (channel != null) { 3724 if (channel != null) {
3725 _json["channel"] = channel; 3725 _json["channel"] = channel;
3726 } 3726 }
3727 if (condition != null) { 3727 if (condition != null) {
3728 _json["condition"] = condition; 3728 _json["condition"] = condition;
3729 } 3729 }
3730 if (contentLanguage != null) { 3730 if (contentLanguage != null) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
3789 lastFourDigits = _json["lastFourDigits"]; 3789 lastFourDigits = _json["lastFourDigits"];
3790 } 3790 }
3791 if (_json.containsKey("predefinedBillingAddress")) { 3791 if (_json.containsKey("predefinedBillingAddress")) {
3792 predefinedBillingAddress = _json["predefinedBillingAddress"]; 3792 predefinedBillingAddress = _json["predefinedBillingAddress"];
3793 } 3793 }
3794 if (_json.containsKey("type")) { 3794 if (_json.containsKey("type")) {
3795 type = _json["type"]; 3795 type = _json["type"];
3796 } 3796 }
3797 } 3797 }
3798 3798
3799 core.Map toJson() { 3799 core.Map<core.String, core.Object> toJson() {
3800 var _json = new core.Map(); 3800 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3801 if (expirationMonth != null) { 3801 if (expirationMonth != null) {
3802 _json["expirationMonth"] = expirationMonth; 3802 _json["expirationMonth"] = expirationMonth;
3803 } 3803 }
3804 if (expirationYear != null) { 3804 if (expirationYear != null) {
3805 _json["expirationYear"] = expirationYear; 3805 _json["expirationYear"] = expirationYear;
3806 } 3806 }
3807 if (lastFourDigits != null) { 3807 if (lastFourDigits != null) {
3808 _json["lastFourDigits"] = lastFourDigits; 3808 _json["lastFourDigits"] = lastFourDigits;
3809 } 3809 }
3810 if (predefinedBillingAddress != null) { 3810 if (predefinedBillingAddress != null) {
3811 _json["predefinedBillingAddress"] = predefinedBillingAddress; 3811 _json["predefinedBillingAddress"] = predefinedBillingAddress;
3812 } 3812 }
3813 if (type != null) { 3813 if (type != null) {
3814 _json["type"] = type; 3814 _json["type"] = type;
3815 } 3815 }
3816 return _json; 3816 return _json;
3817 } 3817 }
3818 } 3818 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/content/v2.dart ('k') | generated/googleapis/lib/customsearch/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698