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

Side by Side Diff: generated/googleapis/lib/content/v2.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.content.v2; 3 library googleapis.content.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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 "POST", 947 "POST",
948 body: _body, 948 body: _body,
949 queryParams: _queryParams, 949 queryParams: _queryParams,
950 uploadOptions: _uploadOptions, 950 uploadOptions: _uploadOptions,
951 uploadMedia: _uploadMedia, 951 uploadMedia: _uploadMedia,
952 downloadOptions: _downloadOptions); 952 downloadOptions: _downloadOptions);
953 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da ta)); 953 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da ta));
954 } 954 }
955 955
956 /** 956 /**
957 * Deletes a datafeed from your Merchant Center account. This method can only 957 * Deletes a datafeed configuration from your Merchant Center account. This
958 * be called for non-multi-client accounts. 958 * method can only be called for non-multi-client accounts.
959 * 959 *
960 * Request parameters: 960 * Request parameters:
961 * 961 *
962 * [merchantId] - null 962 * [merchantId] - null
963 * 963 *
964 * [datafeedId] - null 964 * [datafeedId] - null
965 * 965 *
966 * [dryRun] - Flag to run the request in dry-run mode. 966 * [dryRun] - Flag to run the request in dry-run mode.
967 * 967 *
968 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 968 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 28 matching lines...) Expand all
997 "DELETE", 997 "DELETE",
998 body: _body, 998 body: _body,
999 queryParams: _queryParams, 999 queryParams: _queryParams,
1000 uploadOptions: _uploadOptions, 1000 uploadOptions: _uploadOptions,
1001 uploadMedia: _uploadMedia, 1001 uploadMedia: _uploadMedia,
1002 downloadOptions: _downloadOptions); 1002 downloadOptions: _downloadOptions);
1003 return _response.then((data) => null); 1003 return _response.then((data) => null);
1004 } 1004 }
1005 1005
1006 /** 1006 /**
1007 * Retrieves a datafeed from your Merchant Center account. This method can 1007 * Retrieves a datafeed configuration from your Merchant Center account. This
1008 * only be called for non-multi-client accounts. 1008 * method can only be called for non-multi-client accounts.
1009 * 1009 *
1010 * Request parameters: 1010 * Request parameters:
1011 * 1011 *
1012 * [merchantId] - null 1012 * [merchantId] - null
1013 * 1013 *
1014 * [datafeedId] - null 1014 * [datafeedId] - null
1015 * 1015 *
1016 * Completes with a [Datafeed]. 1016 * Completes with a [Datafeed].
1017 * 1017 *
1018 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1018 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 23 matching lines...) Expand all
1042 "GET", 1042 "GET",
1043 body: _body, 1043 body: _body,
1044 queryParams: _queryParams, 1044 queryParams: _queryParams,
1045 uploadOptions: _uploadOptions, 1045 uploadOptions: _uploadOptions,
1046 uploadMedia: _uploadMedia, 1046 uploadMedia: _uploadMedia,
1047 downloadOptions: _downloadOptions); 1047 downloadOptions: _downloadOptions);
1048 return _response.then((data) => new Datafeed.fromJson(data)); 1048 return _response.then((data) => new Datafeed.fromJson(data));
1049 } 1049 }
1050 1050
1051 /** 1051 /**
1052 * Registers a datafeed with your Merchant Center account. This method can 1052 * Registers a datafeed configuration with your Merchant Center account. This
1053 * only be called for non-multi-client accounts. 1053 * method can only be called for non-multi-client accounts.
1054 * 1054 *
1055 * [request] - The metadata request object. 1055 * [request] - The metadata request object.
1056 * 1056 *
1057 * Request parameters: 1057 * Request parameters:
1058 * 1058 *
1059 * [merchantId] - null 1059 * [merchantId] - null
1060 * 1060 *
1061 * [dryRun] - Flag to run the request in dry-run mode. 1061 * [dryRun] - Flag to run the request in dry-run mode.
1062 * 1062 *
1063 * Completes with a [Datafeed]. 1063 * Completes with a [Datafeed].
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 "GET", 1143 "GET",
1144 body: _body, 1144 body: _body,
1145 queryParams: _queryParams, 1145 queryParams: _queryParams,
1146 uploadOptions: _uploadOptions, 1146 uploadOptions: _uploadOptions,
1147 uploadMedia: _uploadMedia, 1147 uploadMedia: _uploadMedia,
1148 downloadOptions: _downloadOptions); 1148 downloadOptions: _downloadOptions);
1149 return _response.then((data) => new DatafeedsListResponse.fromJson(data)); 1149 return _response.then((data) => new DatafeedsListResponse.fromJson(data));
1150 } 1150 }
1151 1151
1152 /** 1152 /**
1153 * Updates a datafeed of your Merchant Center account. This method can only be 1153 * Updates a datafeed configuration of your Merchant Center account. This
1154 * called for non-multi-client accounts. This method supports patch semantics. 1154 * method can only be called for non-multi-client accounts. This method
1155 * supports patch semantics.
1155 * 1156 *
1156 * [request] - The metadata request object. 1157 * [request] - The metadata request object.
1157 * 1158 *
1158 * Request parameters: 1159 * Request parameters:
1159 * 1160 *
1160 * [merchantId] - null 1161 * [merchantId] - null
1161 * 1162 *
1162 * [datafeedId] - null 1163 * [datafeedId] - null
1163 * 1164 *
1164 * [dryRun] - Flag to run the request in dry-run mode. 1165 * [dryRun] - Flag to run the request in dry-run mode.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 "PATCH", 1199 "PATCH",
1199 body: _body, 1200 body: _body,
1200 queryParams: _queryParams, 1201 queryParams: _queryParams,
1201 uploadOptions: _uploadOptions, 1202 uploadOptions: _uploadOptions,
1202 uploadMedia: _uploadMedia, 1203 uploadMedia: _uploadMedia,
1203 downloadOptions: _downloadOptions); 1204 downloadOptions: _downloadOptions);
1204 return _response.then((data) => new Datafeed.fromJson(data)); 1205 return _response.then((data) => new Datafeed.fromJson(data));
1205 } 1206 }
1206 1207
1207 /** 1208 /**
1208 * Updates a datafeed of your Merchant Center account. This method can only be 1209 * Updates a datafeed configuration of your Merchant Center account. This
1209 * called for non-multi-client accounts. 1210 * method can only be called for non-multi-client accounts.
1210 * 1211 *
1211 * [request] - The metadata request object. 1212 * [request] - The metadata request object.
1212 * 1213 *
1213 * Request parameters: 1214 * Request parameters:
1214 * 1215 *
1215 * [merchantId] - null 1216 * [merchantId] - null
1216 * 1217 *
1217 * [datafeedId] - null 1218 * [datafeedId] - null
1218 * 1219 *
1219 * [dryRun] - Flag to run the request in dry-run mode. 1220 * [dryRun] - Flag to run the request in dry-run mode.
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after
3100 sellerId = _json["sellerId"]; 3101 sellerId = _json["sellerId"];
3101 } 3102 }
3102 if (_json.containsKey("users")) { 3103 if (_json.containsKey("users")) {
3103 users = _json["users"].map((value) => new AccountUser.fromJson(value)).toL ist(); 3104 users = _json["users"].map((value) => new AccountUser.fromJson(value)).toL ist();
3104 } 3105 }
3105 if (_json.containsKey("websiteUrl")) { 3106 if (_json.containsKey("websiteUrl")) {
3106 websiteUrl = _json["websiteUrl"]; 3107 websiteUrl = _json["websiteUrl"];
3107 } 3108 }
3108 } 3109 }
3109 3110
3110 core.Map toJson() { 3111 core.Map<core.String, core.Object> toJson() {
3111 var _json = new core.Map(); 3112 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3112 if (adultContent != null) { 3113 if (adultContent != null) {
3113 _json["adultContent"] = adultContent; 3114 _json["adultContent"] = adultContent;
3114 } 3115 }
3115 if (adwordsLinks != null) { 3116 if (adwordsLinks != null) {
3116 _json["adwordsLinks"] = adwordsLinks.map((value) => (value).toJson()).toLi st(); 3117 _json["adwordsLinks"] = adwordsLinks.map((value) => (value).toJson()).toLi st();
3117 } 3118 }
3118 if (id != null) { 3119 if (id != null) {
3119 _json["id"] = id; 3120 _json["id"] = id;
3120 } 3121 }
3121 if (kind != null) { 3122 if (kind != null) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
3160 3161
3161 AccountAdwordsLink.fromJson(core.Map _json) { 3162 AccountAdwordsLink.fromJson(core.Map _json) {
3162 if (_json.containsKey("adwordsId")) { 3163 if (_json.containsKey("adwordsId")) {
3163 adwordsId = _json["adwordsId"]; 3164 adwordsId = _json["adwordsId"];
3164 } 3165 }
3165 if (_json.containsKey("status")) { 3166 if (_json.containsKey("status")) {
3166 status = _json["status"]; 3167 status = _json["status"];
3167 } 3168 }
3168 } 3169 }
3169 3170
3170 core.Map toJson() { 3171 core.Map<core.String, core.Object> toJson() {
3171 var _json = new core.Map(); 3172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3172 if (adwordsId != null) { 3173 if (adwordsId != null) {
3173 _json["adwordsId"] = adwordsId; 3174 _json["adwordsId"] = adwordsId;
3174 } 3175 }
3175 if (status != null) { 3176 if (status != null) {
3176 _json["status"] = status; 3177 _json["status"] = status;
3177 } 3178 }
3178 return _json; 3179 return _json;
3179 } 3180 }
3180 } 3181 }
3181 3182
(...skipping 10 matching lines...) Expand all
3192 3193
3193 AccountIdentifier.fromJson(core.Map _json) { 3194 AccountIdentifier.fromJson(core.Map _json) {
3194 if (_json.containsKey("aggregatorId")) { 3195 if (_json.containsKey("aggregatorId")) {
3195 aggregatorId = _json["aggregatorId"]; 3196 aggregatorId = _json["aggregatorId"];
3196 } 3197 }
3197 if (_json.containsKey("merchantId")) { 3198 if (_json.containsKey("merchantId")) {
3198 merchantId = _json["merchantId"]; 3199 merchantId = _json["merchantId"];
3199 } 3200 }
3200 } 3201 }
3201 3202
3202 core.Map toJson() { 3203 core.Map<core.String, core.Object> toJson() {
3203 var _json = new core.Map(); 3204 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3204 if (aggregatorId != null) { 3205 if (aggregatorId != null) {
3205 _json["aggregatorId"] = aggregatorId; 3206 _json["aggregatorId"] = aggregatorId;
3206 } 3207 }
3207 if (merchantId != null) { 3208 if (merchantId != null) {
3208 _json["merchantId"] = merchantId; 3209 _json["merchantId"] = merchantId;
3209 } 3210 }
3210 return _json; 3211 return _json;
3211 } 3212 }
3212 } 3213 }
3213 3214
(...skipping 24 matching lines...) Expand all
3238 dataQualityIssues = _json["dataQualityIssues"].map((value) => new AccountS tatusDataQualityIssue.fromJson(value)).toList(); 3239 dataQualityIssues = _json["dataQualityIssues"].map((value) => new AccountS tatusDataQualityIssue.fromJson(value)).toList();
3239 } 3240 }
3240 if (_json.containsKey("kind")) { 3241 if (_json.containsKey("kind")) {
3241 kind = _json["kind"]; 3242 kind = _json["kind"];
3242 } 3243 }
3243 if (_json.containsKey("websiteClaimed")) { 3244 if (_json.containsKey("websiteClaimed")) {
3244 websiteClaimed = _json["websiteClaimed"]; 3245 websiteClaimed = _json["websiteClaimed"];
3245 } 3246 }
3246 } 3247 }
3247 3248
3248 core.Map toJson() { 3249 core.Map<core.String, core.Object> toJson() {
3249 var _json = new core.Map(); 3250 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3250 if (accountId != null) { 3251 if (accountId != null) {
3251 _json["accountId"] = accountId; 3252 _json["accountId"] = accountId;
3252 } 3253 }
3253 if (dataQualityIssues != null) { 3254 if (dataQualityIssues != null) {
3254 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs on()).toList(); 3255 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs on()).toList();
3255 } 3256 }
3256 if (kind != null) { 3257 if (kind != null) {
3257 _json["kind"] = kind; 3258 _json["kind"] = kind;
3258 } 3259 }
3259 if (websiteClaimed != null) { 3260 if (websiteClaimed != null) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
3313 numItems = _json["numItems"]; 3314 numItems = _json["numItems"];
3314 } 3315 }
3315 if (_json.containsKey("severity")) { 3316 if (_json.containsKey("severity")) {
3316 severity = _json["severity"]; 3317 severity = _json["severity"];
3317 } 3318 }
3318 if (_json.containsKey("submittedValue")) { 3319 if (_json.containsKey("submittedValue")) {
3319 submittedValue = _json["submittedValue"]; 3320 submittedValue = _json["submittedValue"];
3320 } 3321 }
3321 } 3322 }
3322 3323
3323 core.Map toJson() { 3324 core.Map<core.String, core.Object> toJson() {
3324 var _json = new core.Map(); 3325 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3325 if (country != null) { 3326 if (country != null) {
3326 _json["country"] = country; 3327 _json["country"] = country;
3327 } 3328 }
3328 if (detail != null) { 3329 if (detail != null) {
3329 _json["detail"] = detail; 3330 _json["detail"] = detail;
3330 } 3331 }
3331 if (displayedValue != null) { 3332 if (displayedValue != null) {
3332 _json["displayedValue"] = displayedValue; 3333 _json["displayedValue"] = displayedValue;
3333 } 3334 }
3334 if (exampleItems != null) { 3335 if (exampleItems != null) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
3385 submittedValue = _json["submittedValue"]; 3386 submittedValue = _json["submittedValue"];
3386 } 3387 }
3387 if (_json.containsKey("title")) { 3388 if (_json.containsKey("title")) {
3388 title = _json["title"]; 3389 title = _json["title"];
3389 } 3390 }
3390 if (_json.containsKey("valueOnLandingPage")) { 3391 if (_json.containsKey("valueOnLandingPage")) {
3391 valueOnLandingPage = _json["valueOnLandingPage"]; 3392 valueOnLandingPage = _json["valueOnLandingPage"];
3392 } 3393 }
3393 } 3394 }
3394 3395
3395 core.Map toJson() { 3396 core.Map<core.String, core.Object> toJson() {
3396 var _json = new core.Map(); 3397 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3397 if (itemId != null) { 3398 if (itemId != null) {
3398 _json["itemId"] = itemId; 3399 _json["itemId"] = itemId;
3399 } 3400 }
3400 if (link != null) { 3401 if (link != null) {
3401 _json["link"] = link; 3402 _json["link"] = link;
3402 } 3403 }
3403 if (submittedValue != null) { 3404 if (submittedValue != null) {
3404 _json["submittedValue"] = submittedValue; 3405 _json["submittedValue"] = submittedValue;
3405 } 3406 }
3406 if (title != null) { 3407 if (title != null) {
(...skipping 28 matching lines...) Expand all
3435 accountId = _json["accountId"]; 3436 accountId = _json["accountId"];
3436 } 3437 }
3437 if (_json.containsKey("kind")) { 3438 if (_json.containsKey("kind")) {
3438 kind = _json["kind"]; 3439 kind = _json["kind"];
3439 } 3440 }
3440 if (_json.containsKey("rules")) { 3441 if (_json.containsKey("rules")) {
3441 rules = _json["rules"].map((value) => new AccountTaxTaxRule.fromJson(value )).toList(); 3442 rules = _json["rules"].map((value) => new AccountTaxTaxRule.fromJson(value )).toList();
3442 } 3443 }
3443 } 3444 }
3444 3445
3445 core.Map toJson() { 3446 core.Map<core.String, core.Object> toJson() {
3446 var _json = new core.Map(); 3447 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3447 if (accountId != null) { 3448 if (accountId != null) {
3448 _json["accountId"] = accountId; 3449 _json["accountId"] = accountId;
3449 } 3450 }
3450 if (kind != null) { 3451 if (kind != null) {
3451 _json["kind"] = kind; 3452 _json["kind"] = kind;
3452 } 3453 }
3453 if (rules != null) { 3454 if (rules != null) {
3454 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 3455 _json["rules"] = rules.map((value) => (value).toJson()).toList();
3455 } 3456 }
3456 return _json; 3457 return _json;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
3492 ratePercent = _json["ratePercent"]; 3493 ratePercent = _json["ratePercent"];
3493 } 3494 }
3494 if (_json.containsKey("shippingTaxed")) { 3495 if (_json.containsKey("shippingTaxed")) {
3495 shippingTaxed = _json["shippingTaxed"]; 3496 shippingTaxed = _json["shippingTaxed"];
3496 } 3497 }
3497 if (_json.containsKey("useGlobalRate")) { 3498 if (_json.containsKey("useGlobalRate")) {
3498 useGlobalRate = _json["useGlobalRate"]; 3499 useGlobalRate = _json["useGlobalRate"];
3499 } 3500 }
3500 } 3501 }
3501 3502
3502 core.Map toJson() { 3503 core.Map<core.String, core.Object> toJson() {
3503 var _json = new core.Map(); 3504 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3504 if (country != null) { 3505 if (country != null) {
3505 _json["country"] = country; 3506 _json["country"] = country;
3506 } 3507 }
3507 if (locationId != null) { 3508 if (locationId != null) {
3508 _json["locationId"] = locationId; 3509 _json["locationId"] = locationId;
3509 } 3510 }
3510 if (ratePercent != null) { 3511 if (ratePercent != null) {
3511 _json["ratePercent"] = ratePercent; 3512 _json["ratePercent"] = ratePercent;
3512 } 3513 }
3513 if (shippingTaxed != null) { 3514 if (shippingTaxed != null) {
(...skipping 16 matching lines...) Expand all
3530 3531
3531 AccountUser.fromJson(core.Map _json) { 3532 AccountUser.fromJson(core.Map _json) {
3532 if (_json.containsKey("admin")) { 3533 if (_json.containsKey("admin")) {
3533 admin = _json["admin"]; 3534 admin = _json["admin"];
3534 } 3535 }
3535 if (_json.containsKey("emailAddress")) { 3536 if (_json.containsKey("emailAddress")) {
3536 emailAddress = _json["emailAddress"]; 3537 emailAddress = _json["emailAddress"];
3537 } 3538 }
3538 } 3539 }
3539 3540
3540 core.Map toJson() { 3541 core.Map<core.String, core.Object> toJson() {
3541 var _json = new core.Map(); 3542 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3542 if (admin != null) { 3543 if (admin != null) {
3543 _json["admin"] = admin; 3544 _json["admin"] = admin;
3544 } 3545 }
3545 if (emailAddress != null) { 3546 if (emailAddress != null) {
3546 _json["emailAddress"] = emailAddress; 3547 _json["emailAddress"] = emailAddress;
3547 } 3548 }
3548 return _json; 3549 return _json;
3549 } 3550 }
3550 } 3551 }
3551 3552
(...skipping 16 matching lines...) Expand all
3568 3569
3569 AccountsAuthInfoResponse.fromJson(core.Map _json) { 3570 AccountsAuthInfoResponse.fromJson(core.Map _json) {
3570 if (_json.containsKey("accountIdentifiers")) { 3571 if (_json.containsKey("accountIdentifiers")) {
3571 accountIdentifiers = _json["accountIdentifiers"].map((value) => new Accoun tIdentifier.fromJson(value)).toList(); 3572 accountIdentifiers = _json["accountIdentifiers"].map((value) => new Accoun tIdentifier.fromJson(value)).toList();
3572 } 3573 }
3573 if (_json.containsKey("kind")) { 3574 if (_json.containsKey("kind")) {
3574 kind = _json["kind"]; 3575 kind = _json["kind"];
3575 } 3576 }
3576 } 3577 }
3577 3578
3578 core.Map toJson() { 3579 core.Map<core.String, core.Object> toJson() {
3579 var _json = new core.Map(); 3580 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3580 if (accountIdentifiers != null) { 3581 if (accountIdentifiers != null) {
3581 _json["accountIdentifiers"] = accountIdentifiers.map((value) => (value).to Json()).toList(); 3582 _json["accountIdentifiers"] = accountIdentifiers.map((value) => (value).to Json()).toList();
3582 } 3583 }
3583 if (kind != null) { 3584 if (kind != null) {
3584 _json["kind"] = kind; 3585 _json["kind"] = kind;
3585 } 3586 }
3586 return _json; 3587 return _json;
3587 } 3588 }
3588 } 3589 }
3589 3590
3590 class AccountsClaimWebsiteResponse { 3591 class AccountsClaimWebsiteResponse {
3591 /** 3592 /**
3592 * Identifies what kind of resource this is. Value: the fixed string 3593 * Identifies what kind of resource this is. Value: the fixed string
3593 * "content#accountsClaimWebsiteResponse". 3594 * "content#accountsClaimWebsiteResponse".
3594 */ 3595 */
3595 core.String kind; 3596 core.String kind;
3596 3597
3597 AccountsClaimWebsiteResponse(); 3598 AccountsClaimWebsiteResponse();
3598 3599
3599 AccountsClaimWebsiteResponse.fromJson(core.Map _json) { 3600 AccountsClaimWebsiteResponse.fromJson(core.Map _json) {
3600 if (_json.containsKey("kind")) { 3601 if (_json.containsKey("kind")) {
3601 kind = _json["kind"]; 3602 kind = _json["kind"];
3602 } 3603 }
3603 } 3604 }
3604 3605
3605 core.Map toJson() { 3606 core.Map<core.String, core.Object> toJson() {
3606 var _json = new core.Map(); 3607 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3607 if (kind != null) { 3608 if (kind != null) {
3608 _json["kind"] = kind; 3609 _json["kind"] = kind;
3609 } 3610 }
3610 return _json; 3611 return _json;
3611 } 3612 }
3612 } 3613 }
3613 3614
3614 class AccountsCustomBatchRequest { 3615 class AccountsCustomBatchRequest {
3615 /** The request entries to be processed in the batch. */ 3616 /** The request entries to be processed in the batch. */
3616 core.List<AccountsCustomBatchRequestEntry> entries; 3617 core.List<AccountsCustomBatchRequestEntry> entries;
3617 3618
3618 AccountsCustomBatchRequest(); 3619 AccountsCustomBatchRequest();
3619 3620
3620 AccountsCustomBatchRequest.fromJson(core.Map _json) { 3621 AccountsCustomBatchRequest.fromJson(core.Map _json) {
3621 if (_json.containsKey("entries")) { 3622 if (_json.containsKey("entries")) {
3622 entries = _json["entries"].map((value) => new AccountsCustomBatchRequestEn try.fromJson(value)).toList(); 3623 entries = _json["entries"].map((value) => new AccountsCustomBatchRequestEn try.fromJson(value)).toList();
3623 } 3624 }
3624 } 3625 }
3625 3626
3626 core.Map toJson() { 3627 core.Map<core.String, core.Object> toJson() {
3627 var _json = new core.Map(); 3628 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3628 if (entries != null) { 3629 if (entries != null) {
3629 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 3630 _json["entries"] = entries.map((value) => (value).toJson()).toList();
3630 } 3631 }
3631 return _json; 3632 return _json;
3632 } 3633 }
3633 } 3634 }
3634 3635
3635 /** A batch entry encoding a single non-batch accounts request. */ 3636 /** A batch entry encoding a single non-batch accounts request. */
3636 class AccountsCustomBatchRequestEntry { 3637 class AccountsCustomBatchRequestEntry {
3637 /** 3638 /**
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
3671 merchantId = _json["merchantId"]; 3672 merchantId = _json["merchantId"];
3672 } 3673 }
3673 if (_json.containsKey("method")) { 3674 if (_json.containsKey("method")) {
3674 method = _json["method"]; 3675 method = _json["method"];
3675 } 3676 }
3676 if (_json.containsKey("overwrite")) { 3677 if (_json.containsKey("overwrite")) {
3677 overwrite = _json["overwrite"]; 3678 overwrite = _json["overwrite"];
3678 } 3679 }
3679 } 3680 }
3680 3681
3681 core.Map toJson() { 3682 core.Map<core.String, core.Object> toJson() {
3682 var _json = new core.Map(); 3683 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3683 if (account != null) { 3684 if (account != null) {
3684 _json["account"] = (account).toJson(); 3685 _json["account"] = (account).toJson();
3685 } 3686 }
3686 if (accountId != null) { 3687 if (accountId != null) {
3687 _json["accountId"] = accountId; 3688 _json["accountId"] = accountId;
3688 } 3689 }
3689 if (batchId != null) { 3690 if (batchId != null) {
3690 _json["batchId"] = batchId; 3691 _json["batchId"] = batchId;
3691 } 3692 }
3692 if (merchantId != null) { 3693 if (merchantId != null) {
(...skipping 22 matching lines...) Expand all
3715 3716
3716 AccountsCustomBatchResponse.fromJson(core.Map _json) { 3717 AccountsCustomBatchResponse.fromJson(core.Map _json) {
3717 if (_json.containsKey("entries")) { 3718 if (_json.containsKey("entries")) {
3718 entries = _json["entries"].map((value) => new AccountsCustomBatchResponseE ntry.fromJson(value)).toList(); 3719 entries = _json["entries"].map((value) => new AccountsCustomBatchResponseE ntry.fromJson(value)).toList();
3719 } 3720 }
3720 if (_json.containsKey("kind")) { 3721 if (_json.containsKey("kind")) {
3721 kind = _json["kind"]; 3722 kind = _json["kind"];
3722 } 3723 }
3723 } 3724 }
3724 3725
3725 core.Map toJson() { 3726 core.Map<core.String, core.Object> toJson() {
3726 var _json = new core.Map(); 3727 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3727 if (entries != null) { 3728 if (entries != null) {
3728 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 3729 _json["entries"] = entries.map((value) => (value).toJson()).toList();
3729 } 3730 }
3730 if (kind != null) { 3731 if (kind != null) {
3731 _json["kind"] = kind; 3732 _json["kind"] = kind;
3732 } 3733 }
3733 return _json; 3734 return _json;
3734 } 3735 }
3735 } 3736 }
3736 3737
(...skipping 24 matching lines...) Expand all
3761 batchId = _json["batchId"]; 3762 batchId = _json["batchId"];
3762 } 3763 }
3763 if (_json.containsKey("errors")) { 3764 if (_json.containsKey("errors")) {
3764 errors = new Errors.fromJson(_json["errors"]); 3765 errors = new Errors.fromJson(_json["errors"]);
3765 } 3766 }
3766 if (_json.containsKey("kind")) { 3767 if (_json.containsKey("kind")) {
3767 kind = _json["kind"]; 3768 kind = _json["kind"];
3768 } 3769 }
3769 } 3770 }
3770 3771
3771 core.Map toJson() { 3772 core.Map<core.String, core.Object> toJson() {
3772 var _json = new core.Map(); 3773 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3773 if (account != null) { 3774 if (account != null) {
3774 _json["account"] = (account).toJson(); 3775 _json["account"] = (account).toJson();
3775 } 3776 }
3776 if (batchId != null) { 3777 if (batchId != null) {
3777 _json["batchId"] = batchId; 3778 _json["batchId"] = batchId;
3778 } 3779 }
3779 if (errors != null) { 3780 if (errors != null) {
3780 _json["errors"] = (errors).toJson(); 3781 _json["errors"] = (errors).toJson();
3781 } 3782 }
3782 if (kind != null) { 3783 if (kind != null) {
(...skipping 20 matching lines...) Expand all
3803 kind = _json["kind"]; 3804 kind = _json["kind"];
3804 } 3805 }
3805 if (_json.containsKey("nextPageToken")) { 3806 if (_json.containsKey("nextPageToken")) {
3806 nextPageToken = _json["nextPageToken"]; 3807 nextPageToken = _json["nextPageToken"];
3807 } 3808 }
3808 if (_json.containsKey("resources")) { 3809 if (_json.containsKey("resources")) {
3809 resources = _json["resources"].map((value) => new Account.fromJson(value)) .toList(); 3810 resources = _json["resources"].map((value) => new Account.fromJson(value)) .toList();
3810 } 3811 }
3811 } 3812 }
3812 3813
3813 core.Map toJson() { 3814 core.Map<core.String, core.Object> toJson() {
3814 var _json = new core.Map(); 3815 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3815 if (kind != null) { 3816 if (kind != null) {
3816 _json["kind"] = kind; 3817 _json["kind"] = kind;
3817 } 3818 }
3818 if (nextPageToken != null) { 3819 if (nextPageToken != null) {
3819 _json["nextPageToken"] = nextPageToken; 3820 _json["nextPageToken"] = nextPageToken;
3820 } 3821 }
3821 if (resources != null) { 3822 if (resources != null) {
3822 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 3823 _json["resources"] = resources.map((value) => (value).toJson()).toList();
3823 } 3824 }
3824 return _json; 3825 return _json;
3825 } 3826 }
3826 } 3827 }
3827 3828
3828 class AccountstatusesCustomBatchRequest { 3829 class AccountstatusesCustomBatchRequest {
3829 /** The request entries to be processed in the batch. */ 3830 /** The request entries to be processed in the batch. */
3830 core.List<AccountstatusesCustomBatchRequestEntry> entries; 3831 core.List<AccountstatusesCustomBatchRequestEntry> entries;
3831 3832
3832 AccountstatusesCustomBatchRequest(); 3833 AccountstatusesCustomBatchRequest();
3833 3834
3834 AccountstatusesCustomBatchRequest.fromJson(core.Map _json) { 3835 AccountstatusesCustomBatchRequest.fromJson(core.Map _json) {
3835 if (_json.containsKey("entries")) { 3836 if (_json.containsKey("entries")) {
3836 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe questEntry.fromJson(value)).toList(); 3837 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe questEntry.fromJson(value)).toList();
3837 } 3838 }
3838 } 3839 }
3839 3840
3840 core.Map toJson() { 3841 core.Map<core.String, core.Object> toJson() {
3841 var _json = new core.Map(); 3842 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3842 if (entries != null) { 3843 if (entries != null) {
3843 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 3844 _json["entries"] = entries.map((value) => (value).toJson()).toList();
3844 } 3845 }
3845 return _json; 3846 return _json;
3846 } 3847 }
3847 } 3848 }
3848 3849
3849 /** A batch entry encoding a single non-batch accountstatuses request. */ 3850 /** A batch entry encoding a single non-batch accountstatuses request. */
3850 class AccountstatusesCustomBatchRequestEntry { 3851 class AccountstatusesCustomBatchRequestEntry {
3851 /** The ID of the (sub-)account whose status to get. */ 3852 /** The ID of the (sub-)account whose status to get. */
(...skipping 15 matching lines...) Expand all
3867 batchId = _json["batchId"]; 3868 batchId = _json["batchId"];
3868 } 3869 }
3869 if (_json.containsKey("merchantId")) { 3870 if (_json.containsKey("merchantId")) {
3870 merchantId = _json["merchantId"]; 3871 merchantId = _json["merchantId"];
3871 } 3872 }
3872 if (_json.containsKey("method")) { 3873 if (_json.containsKey("method")) {
3873 method = _json["method"]; 3874 method = _json["method"];
3874 } 3875 }
3875 } 3876 }
3876 3877
3877 core.Map toJson() { 3878 core.Map<core.String, core.Object> toJson() {
3878 var _json = new core.Map(); 3879 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3879 if (accountId != null) { 3880 if (accountId != null) {
3880 _json["accountId"] = accountId; 3881 _json["accountId"] = accountId;
3881 } 3882 }
3882 if (batchId != null) { 3883 if (batchId != null) {
3883 _json["batchId"] = batchId; 3884 _json["batchId"] = batchId;
3884 } 3885 }
3885 if (merchantId != null) { 3886 if (merchantId != null) {
3886 _json["merchantId"] = merchantId; 3887 _json["merchantId"] = merchantId;
3887 } 3888 }
3888 if (method != null) { 3889 if (method != null) {
(...skipping 16 matching lines...) Expand all
3905 3906
3906 AccountstatusesCustomBatchResponse.fromJson(core.Map _json) { 3907 AccountstatusesCustomBatchResponse.fromJson(core.Map _json) {
3907 if (_json.containsKey("entries")) { 3908 if (_json.containsKey("entries")) {
3908 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe sponseEntry.fromJson(value)).toList(); 3909 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe sponseEntry.fromJson(value)).toList();
3909 } 3910 }
3910 if (_json.containsKey("kind")) { 3911 if (_json.containsKey("kind")) {
3911 kind = _json["kind"]; 3912 kind = _json["kind"];
3912 } 3913 }
3913 } 3914 }
3914 3915
3915 core.Map toJson() { 3916 core.Map<core.String, core.Object> toJson() {
3916 var _json = new core.Map(); 3917 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3917 if (entries != null) { 3918 if (entries != null) {
3918 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 3919 _json["entries"] = entries.map((value) => (value).toJson()).toList();
3919 } 3920 }
3920 if (kind != null) { 3921 if (kind != null) {
3921 _json["kind"] = kind; 3922 _json["kind"] = kind;
3922 } 3923 }
3923 return _json; 3924 return _json;
3924 } 3925 }
3925 } 3926 }
3926 3927
(...skipping 16 matching lines...) Expand all
3943 accountStatus = new AccountStatus.fromJson(_json["accountStatus"]); 3944 accountStatus = new AccountStatus.fromJson(_json["accountStatus"]);
3944 } 3945 }
3945 if (_json.containsKey("batchId")) { 3946 if (_json.containsKey("batchId")) {
3946 batchId = _json["batchId"]; 3947 batchId = _json["batchId"];
3947 } 3948 }
3948 if (_json.containsKey("errors")) { 3949 if (_json.containsKey("errors")) {
3949 errors = new Errors.fromJson(_json["errors"]); 3950 errors = new Errors.fromJson(_json["errors"]);
3950 } 3951 }
3951 } 3952 }
3952 3953
3953 core.Map toJson() { 3954 core.Map<core.String, core.Object> toJson() {
3954 var _json = new core.Map(); 3955 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3955 if (accountStatus != null) { 3956 if (accountStatus != null) {
3956 _json["accountStatus"] = (accountStatus).toJson(); 3957 _json["accountStatus"] = (accountStatus).toJson();
3957 } 3958 }
3958 if (batchId != null) { 3959 if (batchId != null) {
3959 _json["batchId"] = batchId; 3960 _json["batchId"] = batchId;
3960 } 3961 }
3961 if (errors != null) { 3962 if (errors != null) {
3962 _json["errors"] = (errors).toJson(); 3963 _json["errors"] = (errors).toJson();
3963 } 3964 }
3964 return _json; 3965 return _json;
(...skipping 17 matching lines...) Expand all
3982 kind = _json["kind"]; 3983 kind = _json["kind"];
3983 } 3984 }
3984 if (_json.containsKey("nextPageToken")) { 3985 if (_json.containsKey("nextPageToken")) {
3985 nextPageToken = _json["nextPageToken"]; 3986 nextPageToken = _json["nextPageToken"];
3986 } 3987 }
3987 if (_json.containsKey("resources")) { 3988 if (_json.containsKey("resources")) {
3988 resources = _json["resources"].map((value) => new AccountStatus.fromJson(v alue)).toList(); 3989 resources = _json["resources"].map((value) => new AccountStatus.fromJson(v alue)).toList();
3989 } 3990 }
3990 } 3991 }
3991 3992
3992 core.Map toJson() { 3993 core.Map<core.String, core.Object> toJson() {
3993 var _json = new core.Map(); 3994 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3994 if (kind != null) { 3995 if (kind != null) {
3995 _json["kind"] = kind; 3996 _json["kind"] = kind;
3996 } 3997 }
3997 if (nextPageToken != null) { 3998 if (nextPageToken != null) {
3998 _json["nextPageToken"] = nextPageToken; 3999 _json["nextPageToken"] = nextPageToken;
3999 } 4000 }
4000 if (resources != null) { 4001 if (resources != null) {
4001 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 4002 _json["resources"] = resources.map((value) => (value).toJson()).toList();
4002 } 4003 }
4003 return _json; 4004 return _json;
4004 } 4005 }
4005 } 4006 }
4006 4007
4007 class AccounttaxCustomBatchRequest { 4008 class AccounttaxCustomBatchRequest {
4008 /** The request entries to be processed in the batch. */ 4009 /** The request entries to be processed in the batch. */
4009 core.List<AccounttaxCustomBatchRequestEntry> entries; 4010 core.List<AccounttaxCustomBatchRequestEntry> entries;
4010 4011
4011 AccounttaxCustomBatchRequest(); 4012 AccounttaxCustomBatchRequest();
4012 4013
4013 AccounttaxCustomBatchRequest.fromJson(core.Map _json) { 4014 AccounttaxCustomBatchRequest.fromJson(core.Map _json) {
4014 if (_json.containsKey("entries")) { 4015 if (_json.containsKey("entries")) {
4015 entries = _json["entries"].map((value) => new AccounttaxCustomBatchRequest Entry.fromJson(value)).toList(); 4016 entries = _json["entries"].map((value) => new AccounttaxCustomBatchRequest Entry.fromJson(value)).toList();
4016 } 4017 }
4017 } 4018 }
4018 4019
4019 core.Map toJson() { 4020 core.Map<core.String, core.Object> toJson() {
4020 var _json = new core.Map(); 4021 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4021 if (entries != null) { 4022 if (entries != null) {
4022 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 4023 _json["entries"] = entries.map((value) => (value).toJson()).toList();
4023 } 4024 }
4024 return _json; 4025 return _json;
4025 } 4026 }
4026 } 4027 }
4027 4028
4028 /** A batch entry encoding a single non-batch accounttax request. */ 4029 /** A batch entry encoding a single non-batch accounttax request. */
4029 class AccounttaxCustomBatchRequestEntry { 4030 class AccounttaxCustomBatchRequestEntry {
4030 /** The ID of the account for which to get/update account tax settings. */ 4031 /** The ID of the account for which to get/update account tax settings. */
(...skipping 21 matching lines...) Expand all
4052 batchId = _json["batchId"]; 4053 batchId = _json["batchId"];
4053 } 4054 }
4054 if (_json.containsKey("merchantId")) { 4055 if (_json.containsKey("merchantId")) {
4055 merchantId = _json["merchantId"]; 4056 merchantId = _json["merchantId"];
4056 } 4057 }
4057 if (_json.containsKey("method")) { 4058 if (_json.containsKey("method")) {
4058 method = _json["method"]; 4059 method = _json["method"];
4059 } 4060 }
4060 } 4061 }
4061 4062
4062 core.Map toJson() { 4063 core.Map<core.String, core.Object> toJson() {
4063 var _json = new core.Map(); 4064 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4064 if (accountId != null) { 4065 if (accountId != null) {
4065 _json["accountId"] = accountId; 4066 _json["accountId"] = accountId;
4066 } 4067 }
4067 if (accountTax != null) { 4068 if (accountTax != null) {
4068 _json["accountTax"] = (accountTax).toJson(); 4069 _json["accountTax"] = (accountTax).toJson();
4069 } 4070 }
4070 if (batchId != null) { 4071 if (batchId != null) {
4071 _json["batchId"] = batchId; 4072 _json["batchId"] = batchId;
4072 } 4073 }
4073 if (merchantId != null) { 4074 if (merchantId != null) {
(...skipping 19 matching lines...) Expand all
4093 4094
4094 AccounttaxCustomBatchResponse.fromJson(core.Map _json) { 4095 AccounttaxCustomBatchResponse.fromJson(core.Map _json) {
4095 if (_json.containsKey("entries")) { 4096 if (_json.containsKey("entries")) {
4096 entries = _json["entries"].map((value) => new AccounttaxCustomBatchRespons eEntry.fromJson(value)).toList(); 4097 entries = _json["entries"].map((value) => new AccounttaxCustomBatchRespons eEntry.fromJson(value)).toList();
4097 } 4098 }
4098 if (_json.containsKey("kind")) { 4099 if (_json.containsKey("kind")) {
4099 kind = _json["kind"]; 4100 kind = _json["kind"];
4100 } 4101 }
4101 } 4102 }
4102 4103
4103 core.Map toJson() { 4104 core.Map<core.String, core.Object> toJson() {
4104 var _json = new core.Map(); 4105 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4105 if (entries != null) { 4106 if (entries != null) {
4106 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 4107 _json["entries"] = entries.map((value) => (value).toJson()).toList();
4107 } 4108 }
4108 if (kind != null) { 4109 if (kind != null) {
4109 _json["kind"] = kind; 4110 _json["kind"] = kind;
4110 } 4111 }
4111 return _json; 4112 return _json;
4112 } 4113 }
4113 } 4114 }
4114 4115
(...skipping 21 matching lines...) Expand all
4136 batchId = _json["batchId"]; 4137 batchId = _json["batchId"];
4137 } 4138 }
4138 if (_json.containsKey("errors")) { 4139 if (_json.containsKey("errors")) {
4139 errors = new Errors.fromJson(_json["errors"]); 4140 errors = new Errors.fromJson(_json["errors"]);
4140 } 4141 }
4141 if (_json.containsKey("kind")) { 4142 if (_json.containsKey("kind")) {
4142 kind = _json["kind"]; 4143 kind = _json["kind"];
4143 } 4144 }
4144 } 4145 }
4145 4146
4146 core.Map toJson() { 4147 core.Map<core.String, core.Object> toJson() {
4147 var _json = new core.Map(); 4148 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4148 if (accountTax != null) { 4149 if (accountTax != null) {
4149 _json["accountTax"] = (accountTax).toJson(); 4150 _json["accountTax"] = (accountTax).toJson();
4150 } 4151 }
4151 if (batchId != null) { 4152 if (batchId != null) {
4152 _json["batchId"] = batchId; 4153 _json["batchId"] = batchId;
4153 } 4154 }
4154 if (errors != null) { 4155 if (errors != null) {
4155 _json["errors"] = (errors).toJson(); 4156 _json["errors"] = (errors).toJson();
4156 } 4157 }
4157 if (kind != null) { 4158 if (kind != null) {
(...skipping 20 matching lines...) Expand all
4178 kind = _json["kind"]; 4179 kind = _json["kind"];
4179 } 4180 }
4180 if (_json.containsKey("nextPageToken")) { 4181 if (_json.containsKey("nextPageToken")) {
4181 nextPageToken = _json["nextPageToken"]; 4182 nextPageToken = _json["nextPageToken"];
4182 } 4183 }
4183 if (_json.containsKey("resources")) { 4184 if (_json.containsKey("resources")) {
4184 resources = _json["resources"].map((value) => new AccountTax.fromJson(valu e)).toList(); 4185 resources = _json["resources"].map((value) => new AccountTax.fromJson(valu e)).toList();
4185 } 4186 }
4186 } 4187 }
4187 4188
4188 core.Map toJson() { 4189 core.Map<core.String, core.Object> toJson() {
4189 var _json = new core.Map(); 4190 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4190 if (kind != null) { 4191 if (kind != null) {
4191 _json["kind"] = kind; 4192 _json["kind"] = kind;
4192 } 4193 }
4193 if (nextPageToken != null) { 4194 if (nextPageToken != null) {
4194 _json["nextPageToken"] = nextPageToken; 4195 _json["nextPageToken"] = nextPageToken;
4195 } 4196 }
4196 if (resources != null) { 4197 if (resources != null) {
4197 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 4198 _json["resources"] = resources.map((value) => (value).toJson()).toList();
4198 } 4199 }
4199 return _json; 4200 return _json;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
4245 name = _json["name"]; 4246 name = _json["name"];
4246 } 4247 }
4247 if (_json.containsKey("originPostalCode")) { 4248 if (_json.containsKey("originPostalCode")) {
4248 originPostalCode = _json["originPostalCode"]; 4249 originPostalCode = _json["originPostalCode"];
4249 } 4250 }
4250 if (_json.containsKey("percentageAdjustment")) { 4251 if (_json.containsKey("percentageAdjustment")) {
4251 percentageAdjustment = _json["percentageAdjustment"]; 4252 percentageAdjustment = _json["percentageAdjustment"];
4252 } 4253 }
4253 } 4254 }
4254 4255
4255 core.Map toJson() { 4256 core.Map<core.String, core.Object> toJson() {
4256 var _json = new core.Map(); 4257 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4257 if (carrierName != null) { 4258 if (carrierName != null) {
4258 _json["carrierName"] = carrierName; 4259 _json["carrierName"] = carrierName;
4259 } 4260 }
4260 if (carrierService != null) { 4261 if (carrierService != null) {
4261 _json["carrierService"] = carrierService; 4262 _json["carrierService"] = carrierService;
4262 } 4263 }
4263 if (flatAdjustment != null) { 4264 if (flatAdjustment != null) {
4264 _json["flatAdjustment"] = (flatAdjustment).toJson(); 4265 _json["flatAdjustment"] = (flatAdjustment).toJson();
4265 } 4266 }
4266 if (name != null) { 4267 if (name != null) {
(...skipping 27 matching lines...) Expand all
4294 country = _json["country"]; 4295 country = _json["country"];
4295 } 4296 }
4296 if (_json.containsKey("name")) { 4297 if (_json.containsKey("name")) {
4297 name = _json["name"]; 4298 name = _json["name"];
4298 } 4299 }
4299 if (_json.containsKey("services")) { 4300 if (_json.containsKey("services")) {
4300 services = _json["services"]; 4301 services = _json["services"];
4301 } 4302 }
4302 } 4303 }
4303 4304
4304 core.Map toJson() { 4305 core.Map<core.String, core.Object> toJson() {
4305 var _json = new core.Map(); 4306 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4306 if (country != null) { 4307 if (country != null) {
4307 _json["country"] = country; 4308 _json["country"] = country;
4308 } 4309 }
4309 if (name != null) { 4310 if (name != null) {
4310 _json["name"] = name; 4311 _json["name"] = name;
4311 } 4312 }
4312 if (services != null) { 4313 if (services != null) {
4313 _json["services"] = services; 4314 _json["services"] = services;
4314 } 4315 }
4315 return _json; 4316 return _json;
4316 } 4317 }
4317 } 4318 }
4318 4319
4319 /** Datafeed data. */ 4320 /** Datafeed configuration data. */
4320 class Datafeed { 4321 class Datafeed {
4321 /** 4322 /**
4322 * The two-letter ISO 639-1 language in which the attributes are defined in 4323 * The two-letter ISO 639-1 language in which the attributes are defined in
4323 * the data feed. 4324 * the data feed.
4324 */ 4325 */
4325 core.String attributeLanguage; 4326 core.String attributeLanguage;
4326 /** 4327 /**
4327 * The two-letter ISO 639-1 language of the items in the feed. Must be a valid 4328 * The two-letter ISO 639-1 language of the items in the feed. Must be a valid
4328 * language for targetCountry. 4329 * language for targetCountry.
4329 */ 4330 */
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
4390 kind = _json["kind"]; 4391 kind = _json["kind"];
4391 } 4392 }
4392 if (_json.containsKey("name")) { 4393 if (_json.containsKey("name")) {
4393 name = _json["name"]; 4394 name = _json["name"];
4394 } 4395 }
4395 if (_json.containsKey("targetCountry")) { 4396 if (_json.containsKey("targetCountry")) {
4396 targetCountry = _json["targetCountry"]; 4397 targetCountry = _json["targetCountry"];
4397 } 4398 }
4398 } 4399 }
4399 4400
4400 core.Map toJson() { 4401 core.Map<core.String, core.Object> toJson() {
4401 var _json = new core.Map(); 4402 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4402 if (attributeLanguage != null) { 4403 if (attributeLanguage != null) {
4403 _json["attributeLanguage"] = attributeLanguage; 4404 _json["attributeLanguage"] = attributeLanguage;
4404 } 4405 }
4405 if (contentLanguage != null) { 4406 if (contentLanguage != null) {
4406 _json["contentLanguage"] = contentLanguage; 4407 _json["contentLanguage"] = contentLanguage;
4407 } 4408 }
4408 if (contentType != null) { 4409 if (contentType != null) {
4409 _json["contentType"] = contentType; 4410 _json["contentType"] = contentType;
4410 } 4411 }
4411 if (fetchSchedule != null) { 4412 if (fetchSchedule != null) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
4491 timeZone = _json["timeZone"]; 4492 timeZone = _json["timeZone"];
4492 } 4493 }
4493 if (_json.containsKey("username")) { 4494 if (_json.containsKey("username")) {
4494 username = _json["username"]; 4495 username = _json["username"];
4495 } 4496 }
4496 if (_json.containsKey("weekday")) { 4497 if (_json.containsKey("weekday")) {
4497 weekday = _json["weekday"]; 4498 weekday = _json["weekday"];
4498 } 4499 }
4499 } 4500 }
4500 4501
4501 core.Map toJson() { 4502 core.Map<core.String, core.Object> toJson() {
4502 var _json = new core.Map(); 4503 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4503 if (dayOfMonth != null) { 4504 if (dayOfMonth != null) {
4504 _json["dayOfMonth"] = dayOfMonth; 4505 _json["dayOfMonth"] = dayOfMonth;
4505 } 4506 }
4506 if (fetchUrl != null) { 4507 if (fetchUrl != null) {
4507 _json["fetchUrl"] = fetchUrl; 4508 _json["fetchUrl"] = fetchUrl;
4508 } 4509 }
4509 if (hour != null) { 4510 if (hour != null) {
4510 _json["hour"] = hour; 4511 _json["hour"] = hour;
4511 } 4512 }
4512 if (minuteOfHour != null) { 4513 if (minuteOfHour != null) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
4553 columnDelimiter = _json["columnDelimiter"]; 4554 columnDelimiter = _json["columnDelimiter"];
4554 } 4555 }
4555 if (_json.containsKey("fileEncoding")) { 4556 if (_json.containsKey("fileEncoding")) {
4556 fileEncoding = _json["fileEncoding"]; 4557 fileEncoding = _json["fileEncoding"];
4557 } 4558 }
4558 if (_json.containsKey("quotingMode")) { 4559 if (_json.containsKey("quotingMode")) {
4559 quotingMode = _json["quotingMode"]; 4560 quotingMode = _json["quotingMode"];
4560 } 4561 }
4561 } 4562 }
4562 4563
4563 core.Map toJson() { 4564 core.Map<core.String, core.Object> toJson() {
4564 var _json = new core.Map(); 4565 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4565 if (columnDelimiter != null) { 4566 if (columnDelimiter != null) {
4566 _json["columnDelimiter"] = columnDelimiter; 4567 _json["columnDelimiter"] = columnDelimiter;
4567 } 4568 }
4568 if (fileEncoding != null) { 4569 if (fileEncoding != null) {
4569 _json["fileEncoding"] = fileEncoding; 4570 _json["fileEncoding"] = fileEncoding;
4570 } 4571 }
4571 if (quotingMode != null) { 4572 if (quotingMode != null) {
4572 _json["quotingMode"] = quotingMode; 4573 _json["quotingMode"] = quotingMode;
4573 } 4574 }
4574 return _json; 4575 return _json;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
4622 lastUploadDate = _json["lastUploadDate"]; 4623 lastUploadDate = _json["lastUploadDate"];
4623 } 4624 }
4624 if (_json.containsKey("processingStatus")) { 4625 if (_json.containsKey("processingStatus")) {
4625 processingStatus = _json["processingStatus"]; 4626 processingStatus = _json["processingStatus"];
4626 } 4627 }
4627 if (_json.containsKey("warnings")) { 4628 if (_json.containsKey("warnings")) {
4628 warnings = _json["warnings"].map((value) => new DatafeedStatusError.fromJs on(value)).toList(); 4629 warnings = _json["warnings"].map((value) => new DatafeedStatusError.fromJs on(value)).toList();
4629 } 4630 }
4630 } 4631 }
4631 4632
4632 core.Map toJson() { 4633 core.Map<core.String, core.Object> toJson() {
4633 var _json = new core.Map(); 4634 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4634 if (datafeedId != null) { 4635 if (datafeedId != null) {
4635 _json["datafeedId"] = datafeedId; 4636 _json["datafeedId"] = datafeedId;
4636 } 4637 }
4637 if (errors != null) { 4638 if (errors != null) {
4638 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 4639 _json["errors"] = errors.map((value) => (value).toJson()).toList();
4639 } 4640 }
4640 if (itemsTotal != null) { 4641 if (itemsTotal != null) {
4641 _json["itemsTotal"] = itemsTotal; 4642 _json["itemsTotal"] = itemsTotal;
4642 } 4643 }
4643 if (itemsValid != null) { 4644 if (itemsValid != null) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
4680 count = _json["count"]; 4681 count = _json["count"];
4681 } 4682 }
4682 if (_json.containsKey("examples")) { 4683 if (_json.containsKey("examples")) {
4683 examples = _json["examples"].map((value) => new DatafeedStatusExample.from Json(value)).toList(); 4684 examples = _json["examples"].map((value) => new DatafeedStatusExample.from Json(value)).toList();
4684 } 4685 }
4685 if (_json.containsKey("message")) { 4686 if (_json.containsKey("message")) {
4686 message = _json["message"]; 4687 message = _json["message"];
4687 } 4688 }
4688 } 4689 }
4689 4690
4690 core.Map toJson() { 4691 core.Map<core.String, core.Object> toJson() {
4691 var _json = new core.Map(); 4692 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4692 if (code != null) { 4693 if (code != null) {
4693 _json["code"] = code; 4694 _json["code"] = code;
4694 } 4695 }
4695 if (count != null) { 4696 if (count != null) {
4696 _json["count"] = count; 4697 _json["count"] = count;
4697 } 4698 }
4698 if (examples != null) { 4699 if (examples != null) {
4699 _json["examples"] = examples.map((value) => (value).toJson()).toList(); 4700 _json["examples"] = examples.map((value) => (value).toJson()).toList();
4700 } 4701 }
4701 if (message != null) { 4702 if (message != null) {
(...skipping 19 matching lines...) Expand all
4721 itemId = _json["itemId"]; 4722 itemId = _json["itemId"];
4722 } 4723 }
4723 if (_json.containsKey("lineNumber")) { 4724 if (_json.containsKey("lineNumber")) {
4724 lineNumber = _json["lineNumber"]; 4725 lineNumber = _json["lineNumber"];
4725 } 4726 }
4726 if (_json.containsKey("value")) { 4727 if (_json.containsKey("value")) {
4727 value = _json["value"]; 4728 value = _json["value"];
4728 } 4729 }
4729 } 4730 }
4730 4731
4731 core.Map toJson() { 4732 core.Map<core.String, core.Object> toJson() {
4732 var _json = new core.Map(); 4733 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4733 if (itemId != null) { 4734 if (itemId != null) {
4734 _json["itemId"] = itemId; 4735 _json["itemId"] = itemId;
4735 } 4736 }
4736 if (lineNumber != null) { 4737 if (lineNumber != null) {
4737 _json["lineNumber"] = lineNumber; 4738 _json["lineNumber"] = lineNumber;
4738 } 4739 }
4739 if (value != null) { 4740 if (value != null) {
4740 _json["value"] = value; 4741 _json["value"] = value;
4741 } 4742 }
4742 return _json; 4743 return _json;
4743 } 4744 }
4744 } 4745 }
4745 4746
4746 class DatafeedsCustomBatchRequest { 4747 class DatafeedsCustomBatchRequest {
4747 /** The request entries to be processed in the batch. */ 4748 /** The request entries to be processed in the batch. */
4748 core.List<DatafeedsCustomBatchRequestEntry> entries; 4749 core.List<DatafeedsCustomBatchRequestEntry> entries;
4749 4750
4750 DatafeedsCustomBatchRequest(); 4751 DatafeedsCustomBatchRequest();
4751 4752
4752 DatafeedsCustomBatchRequest.fromJson(core.Map _json) { 4753 DatafeedsCustomBatchRequest.fromJson(core.Map _json) {
4753 if (_json.containsKey("entries")) { 4754 if (_json.containsKey("entries")) {
4754 entries = _json["entries"].map((value) => new DatafeedsCustomBatchRequestE ntry.fromJson(value)).toList(); 4755 entries = _json["entries"].map((value) => new DatafeedsCustomBatchRequestE ntry.fromJson(value)).toList();
4755 } 4756 }
4756 } 4757 }
4757 4758
4758 core.Map toJson() { 4759 core.Map<core.String, core.Object> toJson() {
4759 var _json = new core.Map(); 4760 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4760 if (entries != null) { 4761 if (entries != null) {
4761 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 4762 _json["entries"] = entries.map((value) => (value).toJson()).toList();
4762 } 4763 }
4763 return _json; 4764 return _json;
4764 } 4765 }
4765 } 4766 }
4766 4767
4767 /** A batch entry encoding a single non-batch datafeeds request. */ 4768 /** A batch entry encoding a single non-batch datafeeds request. */
4768 class DatafeedsCustomBatchRequestEntry { 4769 class DatafeedsCustomBatchRequestEntry {
4769 /** An entry ID, unique within the batch request. */ 4770 /** An entry ID, unique within the batch request. */
(...skipping 19 matching lines...) Expand all
4789 datafeedId = _json["datafeedId"]; 4790 datafeedId = _json["datafeedId"];
4790 } 4791 }
4791 if (_json.containsKey("merchantId")) { 4792 if (_json.containsKey("merchantId")) {
4792 merchantId = _json["merchantId"]; 4793 merchantId = _json["merchantId"];
4793 } 4794 }
4794 if (_json.containsKey("method")) { 4795 if (_json.containsKey("method")) {
4795 method = _json["method"]; 4796 method = _json["method"];
4796 } 4797 }
4797 } 4798 }
4798 4799
4799 core.Map toJson() { 4800 core.Map<core.String, core.Object> toJson() {
4800 var _json = new core.Map(); 4801 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4801 if (batchId != null) { 4802 if (batchId != null) {
4802 _json["batchId"] = batchId; 4803 _json["batchId"] = batchId;
4803 } 4804 }
4804 if (datafeed != null) { 4805 if (datafeed != null) {
4805 _json["datafeed"] = (datafeed).toJson(); 4806 _json["datafeed"] = (datafeed).toJson();
4806 } 4807 }
4807 if (datafeedId != null) { 4808 if (datafeedId != null) {
4808 _json["datafeedId"] = datafeedId; 4809 _json["datafeedId"] = datafeedId;
4809 } 4810 }
4810 if (merchantId != null) { 4811 if (merchantId != null) {
(...skipping 19 matching lines...) Expand all
4830 4831
4831 DatafeedsCustomBatchResponse.fromJson(core.Map _json) { 4832 DatafeedsCustomBatchResponse.fromJson(core.Map _json) {
4832 if (_json.containsKey("entries")) { 4833 if (_json.containsKey("entries")) {
4833 entries = _json["entries"].map((value) => new DatafeedsCustomBatchResponse Entry.fromJson(value)).toList(); 4834 entries = _json["entries"].map((value) => new DatafeedsCustomBatchResponse Entry.fromJson(value)).toList();
4834 } 4835 }
4835 if (_json.containsKey("kind")) { 4836 if (_json.containsKey("kind")) {
4836 kind = _json["kind"]; 4837 kind = _json["kind"];
4837 } 4838 }
4838 } 4839 }
4839 4840
4840 core.Map toJson() { 4841 core.Map<core.String, core.Object> toJson() {
4841 var _json = new core.Map(); 4842 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4842 if (entries != null) { 4843 if (entries != null) {
4843 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 4844 _json["entries"] = entries.map((value) => (value).toJson()).toList();
4844 } 4845 }
4845 if (kind != null) { 4846 if (kind != null) {
4846 _json["kind"] = kind; 4847 _json["kind"] = kind;
4847 } 4848 }
4848 return _json; 4849 return _json;
4849 } 4850 }
4850 } 4851 }
4851 4852
(...skipping 15 matching lines...) Expand all
4867 batchId = _json["batchId"]; 4868 batchId = _json["batchId"];
4868 } 4869 }
4869 if (_json.containsKey("datafeed")) { 4870 if (_json.containsKey("datafeed")) {
4870 datafeed = new Datafeed.fromJson(_json["datafeed"]); 4871 datafeed = new Datafeed.fromJson(_json["datafeed"]);
4871 } 4872 }
4872 if (_json.containsKey("errors")) { 4873 if (_json.containsKey("errors")) {
4873 errors = new Errors.fromJson(_json["errors"]); 4874 errors = new Errors.fromJson(_json["errors"]);
4874 } 4875 }
4875 } 4876 }
4876 4877
4877 core.Map toJson() { 4878 core.Map<core.String, core.Object> toJson() {
4878 var _json = new core.Map(); 4879 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4879 if (batchId != null) { 4880 if (batchId != null) {
4880 _json["batchId"] = batchId; 4881 _json["batchId"] = batchId;
4881 } 4882 }
4882 if (datafeed != null) { 4883 if (datafeed != null) {
4883 _json["datafeed"] = (datafeed).toJson(); 4884 _json["datafeed"] = (datafeed).toJson();
4884 } 4885 }
4885 if (errors != null) { 4886 if (errors != null) {
4886 _json["errors"] = (errors).toJson(); 4887 _json["errors"] = (errors).toJson();
4887 } 4888 }
4888 return _json; 4889 return _json;
(...skipping 17 matching lines...) Expand all
4906 kind = _json["kind"]; 4907 kind = _json["kind"];
4907 } 4908 }
4908 if (_json.containsKey("nextPageToken")) { 4909 if (_json.containsKey("nextPageToken")) {
4909 nextPageToken = _json["nextPageToken"]; 4910 nextPageToken = _json["nextPageToken"];
4910 } 4911 }
4911 if (_json.containsKey("resources")) { 4912 if (_json.containsKey("resources")) {
4912 resources = _json["resources"].map((value) => new Datafeed.fromJson(value) ).toList(); 4913 resources = _json["resources"].map((value) => new Datafeed.fromJson(value) ).toList();
4913 } 4914 }
4914 } 4915 }
4915 4916
4916 core.Map toJson() { 4917 core.Map<core.String, core.Object> toJson() {
4917 var _json = new core.Map(); 4918 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4918 if (kind != null) { 4919 if (kind != null) {
4919 _json["kind"] = kind; 4920 _json["kind"] = kind;
4920 } 4921 }
4921 if (nextPageToken != null) { 4922 if (nextPageToken != null) {
4922 _json["nextPageToken"] = nextPageToken; 4923 _json["nextPageToken"] = nextPageToken;
4923 } 4924 }
4924 if (resources != null) { 4925 if (resources != null) {
4925 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 4926 _json["resources"] = resources.map((value) => (value).toJson()).toList();
4926 } 4927 }
4927 return _json; 4928 return _json;
4928 } 4929 }
4929 } 4930 }
4930 4931
4931 class DatafeedstatusesCustomBatchRequest { 4932 class DatafeedstatusesCustomBatchRequest {
4932 /** The request entries to be processed in the batch. */ 4933 /** The request entries to be processed in the batch. */
4933 core.List<DatafeedstatusesCustomBatchRequestEntry> entries; 4934 core.List<DatafeedstatusesCustomBatchRequestEntry> entries;
4934 4935
4935 DatafeedstatusesCustomBatchRequest(); 4936 DatafeedstatusesCustomBatchRequest();
4936 4937
4937 DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) { 4938 DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) {
4938 if (_json.containsKey("entries")) { 4939 if (_json.containsKey("entries")) {
4939 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR equestEntry.fromJson(value)).toList(); 4940 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR equestEntry.fromJson(value)).toList();
4940 } 4941 }
4941 } 4942 }
4942 4943
4943 core.Map toJson() { 4944 core.Map<core.String, core.Object> toJson() {
4944 var _json = new core.Map(); 4945 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4945 if (entries != null) { 4946 if (entries != null) {
4946 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 4947 _json["entries"] = entries.map((value) => (value).toJson()).toList();
4947 } 4948 }
4948 return _json; 4949 return _json;
4949 } 4950 }
4950 } 4951 }
4951 4952
4952 /** A batch entry encoding a single non-batch datafeedstatuses request. */ 4953 /** A batch entry encoding a single non-batch datafeedstatuses request. */
4953 class DatafeedstatusesCustomBatchRequestEntry { 4954 class DatafeedstatusesCustomBatchRequestEntry {
4954 /** An entry ID, unique within the batch request. */ 4955 /** An entry ID, unique within the batch request. */
(...skipping 14 matching lines...) Expand all
4969 datafeedId = _json["datafeedId"]; 4970 datafeedId = _json["datafeedId"];
4970 } 4971 }
4971 if (_json.containsKey("merchantId")) { 4972 if (_json.containsKey("merchantId")) {
4972 merchantId = _json["merchantId"]; 4973 merchantId = _json["merchantId"];
4973 } 4974 }
4974 if (_json.containsKey("method")) { 4975 if (_json.containsKey("method")) {
4975 method = _json["method"]; 4976 method = _json["method"];
4976 } 4977 }
4977 } 4978 }
4978 4979
4979 core.Map toJson() { 4980 core.Map<core.String, core.Object> toJson() {
4980 var _json = new core.Map(); 4981 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4981 if (batchId != null) { 4982 if (batchId != null) {
4982 _json["batchId"] = batchId; 4983 _json["batchId"] = batchId;
4983 } 4984 }
4984 if (datafeedId != null) { 4985 if (datafeedId != null) {
4985 _json["datafeedId"] = datafeedId; 4986 _json["datafeedId"] = datafeedId;
4986 } 4987 }
4987 if (merchantId != null) { 4988 if (merchantId != null) {
4988 _json["merchantId"] = merchantId; 4989 _json["merchantId"] = merchantId;
4989 } 4990 }
4990 if (method != null) { 4991 if (method != null) {
(...skipping 16 matching lines...) Expand all
5007 5008
5008 DatafeedstatusesCustomBatchResponse.fromJson(core.Map _json) { 5009 DatafeedstatusesCustomBatchResponse.fromJson(core.Map _json) {
5009 if (_json.containsKey("entries")) { 5010 if (_json.containsKey("entries")) {
5010 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR esponseEntry.fromJson(value)).toList(); 5011 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR esponseEntry.fromJson(value)).toList();
5011 } 5012 }
5012 if (_json.containsKey("kind")) { 5013 if (_json.containsKey("kind")) {
5013 kind = _json["kind"]; 5014 kind = _json["kind"];
5014 } 5015 }
5015 } 5016 }
5016 5017
5017 core.Map toJson() { 5018 core.Map<core.String, core.Object> toJson() {
5018 var _json = new core.Map(); 5019 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5019 if (entries != null) { 5020 if (entries != null) {
5020 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 5021 _json["entries"] = entries.map((value) => (value).toJson()).toList();
5021 } 5022 }
5022 if (kind != null) { 5023 if (kind != null) {
5023 _json["kind"] = kind; 5024 _json["kind"] = kind;
5024 } 5025 }
5025 return _json; 5026 return _json;
5026 } 5027 }
5027 } 5028 }
5028 5029
(...skipping 16 matching lines...) Expand all
5045 batchId = _json["batchId"]; 5046 batchId = _json["batchId"];
5046 } 5047 }
5047 if (_json.containsKey("datafeedStatus")) { 5048 if (_json.containsKey("datafeedStatus")) {
5048 datafeedStatus = new DatafeedStatus.fromJson(_json["datafeedStatus"]); 5049 datafeedStatus = new DatafeedStatus.fromJson(_json["datafeedStatus"]);
5049 } 5050 }
5050 if (_json.containsKey("errors")) { 5051 if (_json.containsKey("errors")) {
5051 errors = new Errors.fromJson(_json["errors"]); 5052 errors = new Errors.fromJson(_json["errors"]);
5052 } 5053 }
5053 } 5054 }
5054 5055
5055 core.Map toJson() { 5056 core.Map<core.String, core.Object> toJson() {
5056 var _json = new core.Map(); 5057 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5057 if (batchId != null) { 5058 if (batchId != null) {
5058 _json["batchId"] = batchId; 5059 _json["batchId"] = batchId;
5059 } 5060 }
5060 if (datafeedStatus != null) { 5061 if (datafeedStatus != null) {
5061 _json["datafeedStatus"] = (datafeedStatus).toJson(); 5062 _json["datafeedStatus"] = (datafeedStatus).toJson();
5062 } 5063 }
5063 if (errors != null) { 5064 if (errors != null) {
5064 _json["errors"] = (errors).toJson(); 5065 _json["errors"] = (errors).toJson();
5065 } 5066 }
5066 return _json; 5067 return _json;
(...skipping 17 matching lines...) Expand all
5084 kind = _json["kind"]; 5085 kind = _json["kind"];
5085 } 5086 }
5086 if (_json.containsKey("nextPageToken")) { 5087 if (_json.containsKey("nextPageToken")) {
5087 nextPageToken = _json["nextPageToken"]; 5088 nextPageToken = _json["nextPageToken"];
5088 } 5089 }
5089 if (_json.containsKey("resources")) { 5090 if (_json.containsKey("resources")) {
5090 resources = _json["resources"].map((value) => new DatafeedStatus.fromJson( value)).toList(); 5091 resources = _json["resources"].map((value) => new DatafeedStatus.fromJson( value)).toList();
5091 } 5092 }
5092 } 5093 }
5093 5094
5094 core.Map toJson() { 5095 core.Map<core.String, core.Object> toJson() {
5095 var _json = new core.Map(); 5096 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5096 if (kind != null) { 5097 if (kind != null) {
5097 _json["kind"] = kind; 5098 _json["kind"] = kind;
5098 } 5099 }
5099 if (nextPageToken != null) { 5100 if (nextPageToken != null) {
5100 _json["nextPageToken"] = nextPageToken; 5101 _json["nextPageToken"] = nextPageToken;
5101 } 5102 }
5102 if (resources != null) { 5103 if (resources != null) {
5103 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 5104 _json["resources"] = resources.map((value) => (value).toJson()).toList();
5104 } 5105 }
5105 return _json; 5106 return _json;
(...skipping 17 matching lines...) Expand all
5123 5124
5124 DeliveryTime.fromJson(core.Map _json) { 5125 DeliveryTime.fromJson(core.Map _json) {
5125 if (_json.containsKey("maxTransitTimeInDays")) { 5126 if (_json.containsKey("maxTransitTimeInDays")) {
5126 maxTransitTimeInDays = _json["maxTransitTimeInDays"]; 5127 maxTransitTimeInDays = _json["maxTransitTimeInDays"];
5127 } 5128 }
5128 if (_json.containsKey("minTransitTimeInDays")) { 5129 if (_json.containsKey("minTransitTimeInDays")) {
5129 minTransitTimeInDays = _json["minTransitTimeInDays"]; 5130 minTransitTimeInDays = _json["minTransitTimeInDays"];
5130 } 5131 }
5131 } 5132 }
5132 5133
5133 core.Map toJson() { 5134 core.Map<core.String, core.Object> toJson() {
5134 var _json = new core.Map(); 5135 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5135 if (maxTransitTimeInDays != null) { 5136 if (maxTransitTimeInDays != null) {
5136 _json["maxTransitTimeInDays"] = maxTransitTimeInDays; 5137 _json["maxTransitTimeInDays"] = maxTransitTimeInDays;
5137 } 5138 }
5138 if (minTransitTimeInDays != null) { 5139 if (minTransitTimeInDays != null) {
5139 _json["minTransitTimeInDays"] = minTransitTimeInDays; 5140 _json["minTransitTimeInDays"] = minTransitTimeInDays;
5140 } 5141 }
5141 return _json; 5142 return _json;
5142 } 5143 }
5143 } 5144 }
5144 5145
(...skipping 13 matching lines...) Expand all
5158 domain = _json["domain"]; 5159 domain = _json["domain"];
5159 } 5160 }
5160 if (_json.containsKey("message")) { 5161 if (_json.containsKey("message")) {
5161 message = _json["message"]; 5162 message = _json["message"];
5162 } 5163 }
5163 if (_json.containsKey("reason")) { 5164 if (_json.containsKey("reason")) {
5164 reason = _json["reason"]; 5165 reason = _json["reason"];
5165 } 5166 }
5166 } 5167 }
5167 5168
5168 core.Map toJson() { 5169 core.Map<core.String, core.Object> toJson() {
5169 var _json = new core.Map(); 5170 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5170 if (domain != null) { 5171 if (domain != null) {
5171 _json["domain"] = domain; 5172 _json["domain"] = domain;
5172 } 5173 }
5173 if (message != null) { 5174 if (message != null) {
5174 _json["message"] = message; 5175 _json["message"] = message;
5175 } 5176 }
5176 if (reason != null) { 5177 if (reason != null) {
5177 _json["reason"] = reason; 5178 _json["reason"] = reason;
5178 } 5179 }
5179 return _json; 5180 return _json;
(...skipping 16 matching lines...) Expand all
5196 code = _json["code"]; 5197 code = _json["code"];
5197 } 5198 }
5198 if (_json.containsKey("errors")) { 5199 if (_json.containsKey("errors")) {
5199 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList( ); 5200 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList( );
5200 } 5201 }
5201 if (_json.containsKey("message")) { 5202 if (_json.containsKey("message")) {
5202 message = _json["message"]; 5203 message = _json["message"];
5203 } 5204 }
5204 } 5205 }
5205 5206
5206 core.Map toJson() { 5207 core.Map<core.String, core.Object> toJson() {
5207 var _json = new core.Map(); 5208 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5208 if (code != null) { 5209 if (code != null) {
5209 _json["code"] = code; 5210 _json["code"] = code;
5210 } 5211 }
5211 if (errors != null) { 5212 if (errors != null) {
5212 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 5213 _json["errors"] = errors.map((value) => (value).toJson()).toList();
5213 } 5214 }
5214 if (message != null) { 5215 if (message != null) {
5215 _json["message"] = message; 5216 _json["message"] = message;
5216 } 5217 }
5217 return _json; 5218 return _json;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
5271 postalCodeGroupNames = _json["postalCodeGroupNames"]; 5272 postalCodeGroupNames = _json["postalCodeGroupNames"];
5272 } 5273 }
5273 if (_json.containsKey("prices")) { 5274 if (_json.containsKey("prices")) {
5274 prices = _json["prices"].map((value) => new Price.fromJson(value)).toList( ); 5275 prices = _json["prices"].map((value) => new Price.fromJson(value)).toList( );
5275 } 5276 }
5276 if (_json.containsKey("weights")) { 5277 if (_json.containsKey("weights")) {
5277 weights = _json["weights"].map((value) => new Weight.fromJson(value)).toLi st(); 5278 weights = _json["weights"].map((value) => new Weight.fromJson(value)).toLi st();
5278 } 5279 }
5279 } 5280 }
5280 5281
5281 core.Map toJson() { 5282 core.Map<core.String, core.Object> toJson() {
5282 var _json = new core.Map(); 5283 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5283 if (locations != null) { 5284 if (locations != null) {
5284 _json["locations"] = locations.map((value) => (value).toJson()).toList(); 5285 _json["locations"] = locations.map((value) => (value).toJson()).toList();
5285 } 5286 }
5286 if (numberOfItems != null) { 5287 if (numberOfItems != null) {
5287 _json["numberOfItems"] = numberOfItems; 5288 _json["numberOfItems"] = numberOfItems;
5288 } 5289 }
5289 if (postalCodeGroupNames != null) { 5290 if (postalCodeGroupNames != null) {
5290 _json["postalCodeGroupNames"] = postalCodeGroupNames; 5291 _json["postalCodeGroupNames"] = postalCodeGroupNames;
5291 } 5292 }
5292 if (prices != null) { 5293 if (prices != null) {
(...skipping 16 matching lines...) Expand all
5309 5310
5310 Installment.fromJson(core.Map _json) { 5311 Installment.fromJson(core.Map _json) {
5311 if (_json.containsKey("amount")) { 5312 if (_json.containsKey("amount")) {
5312 amount = new Price.fromJson(_json["amount"]); 5313 amount = new Price.fromJson(_json["amount"]);
5313 } 5314 }
5314 if (_json.containsKey("months")) { 5315 if (_json.containsKey("months")) {
5315 months = _json["months"]; 5316 months = _json["months"];
5316 } 5317 }
5317 } 5318 }
5318 5319
5319 core.Map toJson() { 5320 core.Map<core.String, core.Object> toJson() {
5320 var _json = new core.Map(); 5321 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5321 if (amount != null) { 5322 if (amount != null) {
5322 _json["amount"] = (amount).toJson(); 5323 _json["amount"] = (amount).toJson();
5323 } 5324 }
5324 if (months != null) { 5325 if (months != null) {
5325 _json["months"] = months; 5326 _json["months"] = months;
5326 } 5327 }
5327 return _json; 5328 return _json;
5328 } 5329 }
5329 } 5330 }
5330 5331
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
5400 salePrice = new Price.fromJson(_json["salePrice"]); 5401 salePrice = new Price.fromJson(_json["salePrice"]);
5401 } 5402 }
5402 if (_json.containsKey("salePriceEffectiveDate")) { 5403 if (_json.containsKey("salePriceEffectiveDate")) {
5403 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; 5404 salePriceEffectiveDate = _json["salePriceEffectiveDate"];
5404 } 5405 }
5405 if (_json.containsKey("sellOnGoogleQuantity")) { 5406 if (_json.containsKey("sellOnGoogleQuantity")) {
5406 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"]; 5407 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"];
5407 } 5408 }
5408 } 5409 }
5409 5410
5410 core.Map toJson() { 5411 core.Map<core.String, core.Object> toJson() {
5411 var _json = new core.Map(); 5412 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5412 if (availability != null) { 5413 if (availability != null) {
5413 _json["availability"] = availability; 5414 _json["availability"] = availability;
5414 } 5415 }
5415 if (installment != null) { 5416 if (installment != null) {
5416 _json["installment"] = (installment).toJson(); 5417 _json["installment"] = (installment).toJson();
5417 } 5418 }
5418 if (kind != null) { 5419 if (kind != null) {
5419 _json["kind"] = kind; 5420 _json["kind"] = kind;
5420 } 5421 }
5421 if (loyaltyPoints != null) { 5422 if (loyaltyPoints != null) {
(...skipping 26 matching lines...) Expand all
5448 core.List<InventoryCustomBatchRequestEntry> entries; 5449 core.List<InventoryCustomBatchRequestEntry> entries;
5449 5450
5450 InventoryCustomBatchRequest(); 5451 InventoryCustomBatchRequest();
5451 5452
5452 InventoryCustomBatchRequest.fromJson(core.Map _json) { 5453 InventoryCustomBatchRequest.fromJson(core.Map _json) {
5453 if (_json.containsKey("entries")) { 5454 if (_json.containsKey("entries")) {
5454 entries = _json["entries"].map((value) => new InventoryCustomBatchRequestE ntry.fromJson(value)).toList(); 5455 entries = _json["entries"].map((value) => new InventoryCustomBatchRequestE ntry.fromJson(value)).toList();
5455 } 5456 }
5456 } 5457 }
5457 5458
5458 core.Map toJson() { 5459 core.Map<core.String, core.Object> toJson() {
5459 var _json = new core.Map(); 5460 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5460 if (entries != null) { 5461 if (entries != null) {
5461 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 5462 _json["entries"] = entries.map((value) => (value).toJson()).toList();
5462 } 5463 }
5463 return _json; 5464 return _json;
5464 } 5465 }
5465 } 5466 }
5466 5467
5467 /** A batch entry encoding a single non-batch inventory request. */ 5468 /** A batch entry encoding a single non-batch inventory request. */
5468 class InventoryCustomBatchRequestEntry { 5469 class InventoryCustomBatchRequestEntry {
5469 /** An entry ID, unique within the batch request. */ 5470 /** An entry ID, unique within the batch request. */
(...skipping 23 matching lines...) Expand all
5493 merchantId = _json["merchantId"]; 5494 merchantId = _json["merchantId"];
5494 } 5495 }
5495 if (_json.containsKey("productId")) { 5496 if (_json.containsKey("productId")) {
5496 productId = _json["productId"]; 5497 productId = _json["productId"];
5497 } 5498 }
5498 if (_json.containsKey("storeCode")) { 5499 if (_json.containsKey("storeCode")) {
5499 storeCode = _json["storeCode"]; 5500 storeCode = _json["storeCode"];
5500 } 5501 }
5501 } 5502 }
5502 5503
5503 core.Map toJson() { 5504 core.Map<core.String, core.Object> toJson() {
5504 var _json = new core.Map(); 5505 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5505 if (batchId != null) { 5506 if (batchId != null) {
5506 _json["batchId"] = batchId; 5507 _json["batchId"] = batchId;
5507 } 5508 }
5508 if (inventory != null) { 5509 if (inventory != null) {
5509 _json["inventory"] = (inventory).toJson(); 5510 _json["inventory"] = (inventory).toJson();
5510 } 5511 }
5511 if (merchantId != null) { 5512 if (merchantId != null) {
5512 _json["merchantId"] = merchantId; 5513 _json["merchantId"] = merchantId;
5513 } 5514 }
5514 if (productId != null) { 5515 if (productId != null) {
(...skipping 19 matching lines...) Expand all
5534 5535
5535 InventoryCustomBatchResponse.fromJson(core.Map _json) { 5536 InventoryCustomBatchResponse.fromJson(core.Map _json) {
5536 if (_json.containsKey("entries")) { 5537 if (_json.containsKey("entries")) {
5537 entries = _json["entries"].map((value) => new InventoryCustomBatchResponse Entry.fromJson(value)).toList(); 5538 entries = _json["entries"].map((value) => new InventoryCustomBatchResponse Entry.fromJson(value)).toList();
5538 } 5539 }
5539 if (_json.containsKey("kind")) { 5540 if (_json.containsKey("kind")) {
5540 kind = _json["kind"]; 5541 kind = _json["kind"];
5541 } 5542 }
5542 } 5543 }
5543 5544
5544 core.Map toJson() { 5545 core.Map<core.String, core.Object> toJson() {
5545 var _json = new core.Map(); 5546 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5546 if (entries != null) { 5547 if (entries != null) {
5547 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 5548 _json["entries"] = entries.map((value) => (value).toJson()).toList();
5548 } 5549 }
5549 if (kind != null) { 5550 if (kind != null) {
5550 _json["kind"] = kind; 5551 _json["kind"] = kind;
5551 } 5552 }
5552 return _json; 5553 return _json;
5553 } 5554 }
5554 } 5555 }
5555 5556
(...skipping 16 matching lines...) Expand all
5572 batchId = _json["batchId"]; 5573 batchId = _json["batchId"];
5573 } 5574 }
5574 if (_json.containsKey("errors")) { 5575 if (_json.containsKey("errors")) {
5575 errors = new Errors.fromJson(_json["errors"]); 5576 errors = new Errors.fromJson(_json["errors"]);
5576 } 5577 }
5577 if (_json.containsKey("kind")) { 5578 if (_json.containsKey("kind")) {
5578 kind = _json["kind"]; 5579 kind = _json["kind"];
5579 } 5580 }
5580 } 5581 }
5581 5582
5582 core.Map toJson() { 5583 core.Map<core.String, core.Object> toJson() {
5583 var _json = new core.Map(); 5584 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5584 if (batchId != null) { 5585 if (batchId != null) {
5585 _json["batchId"] = batchId; 5586 _json["batchId"] = batchId;
5586 } 5587 }
5587 if (errors != null) { 5588 if (errors != null) {
5588 _json["errors"] = (errors).toJson(); 5589 _json["errors"] = (errors).toJson();
5589 } 5590 }
5590 if (kind != null) { 5591 if (kind != null) {
5591 _json["kind"] = kind; 5592 _json["kind"] = kind;
5592 } 5593 }
5593 return _json; 5594 return _json;
(...skipping 19 matching lines...) Expand all
5613 5614
5614 InventoryPickup.fromJson(core.Map _json) { 5615 InventoryPickup.fromJson(core.Map _json) {
5615 if (_json.containsKey("pickupMethod")) { 5616 if (_json.containsKey("pickupMethod")) {
5616 pickupMethod = _json["pickupMethod"]; 5617 pickupMethod = _json["pickupMethod"];
5617 } 5618 }
5618 if (_json.containsKey("pickupSla")) { 5619 if (_json.containsKey("pickupSla")) {
5619 pickupSla = _json["pickupSla"]; 5620 pickupSla = _json["pickupSla"];
5620 } 5621 }
5621 } 5622 }
5622 5623
5623 core.Map toJson() { 5624 core.Map<core.String, core.Object> toJson() {
5624 var _json = new core.Map(); 5625 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5625 if (pickupMethod != null) { 5626 if (pickupMethod != null) {
5626 _json["pickupMethod"] = pickupMethod; 5627 _json["pickupMethod"] = pickupMethod;
5627 } 5628 }
5628 if (pickupSla != null) { 5629 if (pickupSla != null) {
5629 _json["pickupSla"] = pickupSla; 5630 _json["pickupSla"] = pickupSla;
5630 } 5631 }
5631 return _json; 5632 return _json;
5632 } 5633 }
5633 } 5634 }
5634 5635
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
5696 salePrice = new Price.fromJson(_json["salePrice"]); 5697 salePrice = new Price.fromJson(_json["salePrice"]);
5697 } 5698 }
5698 if (_json.containsKey("salePriceEffectiveDate")) { 5699 if (_json.containsKey("salePriceEffectiveDate")) {
5699 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; 5700 salePriceEffectiveDate = _json["salePriceEffectiveDate"];
5700 } 5701 }
5701 if (_json.containsKey("sellOnGoogleQuantity")) { 5702 if (_json.containsKey("sellOnGoogleQuantity")) {
5702 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"]; 5703 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"];
5703 } 5704 }
5704 } 5705 }
5705 5706
5706 core.Map toJson() { 5707 core.Map<core.String, core.Object> toJson() {
5707 var _json = new core.Map(); 5708 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5708 if (availability != null) { 5709 if (availability != null) {
5709 _json["availability"] = availability; 5710 _json["availability"] = availability;
5710 } 5711 }
5711 if (installment != null) { 5712 if (installment != null) {
5712 _json["installment"] = (installment).toJson(); 5713 _json["installment"] = (installment).toJson();
5713 } 5714 }
5714 if (loyaltyPoints != null) { 5715 if (loyaltyPoints != null) {
5715 _json["loyaltyPoints"] = (loyaltyPoints).toJson(); 5716 _json["loyaltyPoints"] = (loyaltyPoints).toJson();
5716 } 5717 }
5717 if (pickup != null) { 5718 if (pickup != null) {
(...skipping 26 matching lines...) Expand all
5744 core.String kind; 5745 core.String kind;
5745 5746
5746 InventorySetResponse(); 5747 InventorySetResponse();
5747 5748
5748 InventorySetResponse.fromJson(core.Map _json) { 5749 InventorySetResponse.fromJson(core.Map _json) {
5749 if (_json.containsKey("kind")) { 5750 if (_json.containsKey("kind")) {
5750 kind = _json["kind"]; 5751 kind = _json["kind"];
5751 } 5752 }
5752 } 5753 }
5753 5754
5754 core.Map toJson() { 5755 core.Map<core.String, core.Object> toJson() {
5755 var _json = new core.Map(); 5756 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5756 if (kind != null) { 5757 if (kind != null) {
5757 _json["kind"] = kind; 5758 _json["kind"] = kind;
5758 } 5759 }
5759 return _json; 5760 return _json;
5760 } 5761 }
5761 } 5762 }
5762 5763
5763 class LocationIdSet { 5764 class LocationIdSet {
5764 /** 5765 /**
5765 * A non-empty list of location IDs. They must all be of the same location 5766 * A non-empty list of location IDs. They must all be of the same location
5766 * type (e.g., state). 5767 * type (e.g., state).
5767 */ 5768 */
5768 core.List<core.String> locationIds; 5769 core.List<core.String> locationIds;
5769 5770
5770 LocationIdSet(); 5771 LocationIdSet();
5771 5772
5772 LocationIdSet.fromJson(core.Map _json) { 5773 LocationIdSet.fromJson(core.Map _json) {
5773 if (_json.containsKey("locationIds")) { 5774 if (_json.containsKey("locationIds")) {
5774 locationIds = _json["locationIds"]; 5775 locationIds = _json["locationIds"];
5775 } 5776 }
5776 } 5777 }
5777 5778
5778 core.Map toJson() { 5779 core.Map<core.String, core.Object> toJson() {
5779 var _json = new core.Map(); 5780 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5780 if (locationIds != null) { 5781 if (locationIds != null) {
5781 _json["locationIds"] = locationIds; 5782 _json["locationIds"] = locationIds;
5782 } 5783 }
5783 return _json; 5784 return _json;
5784 } 5785 }
5785 } 5786 }
5786 5787
5787 class LoyaltyPoints { 5788 class LoyaltyPoints {
5788 /** 5789 /**
5789 * Name of loyalty points program. It is recommended to limit the name to 12 5790 * Name of loyalty points program. It is recommended to limit the name to 12
(...skipping 16 matching lines...) Expand all
5806 name = _json["name"]; 5807 name = _json["name"];
5807 } 5808 }
5808 if (_json.containsKey("pointsValue")) { 5809 if (_json.containsKey("pointsValue")) {
5809 pointsValue = _json["pointsValue"]; 5810 pointsValue = _json["pointsValue"];
5810 } 5811 }
5811 if (_json.containsKey("ratio")) { 5812 if (_json.containsKey("ratio")) {
5812 ratio = _json["ratio"]; 5813 ratio = _json["ratio"];
5813 } 5814 }
5814 } 5815 }
5815 5816
5816 core.Map toJson() { 5817 core.Map<core.String, core.Object> toJson() {
5817 var _json = new core.Map(); 5818 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5818 if (name != null) { 5819 if (name != null) {
5819 _json["name"] = name; 5820 _json["name"] = name;
5820 } 5821 }
5821 if (pointsValue != null) { 5822 if (pointsValue != null) {
5822 _json["pointsValue"] = pointsValue; 5823 _json["pointsValue"] = pointsValue;
5823 } 5824 }
5824 if (ratio != null) { 5825 if (ratio != null) {
5825 _json["ratio"] = ratio; 5826 _json["ratio"] = ratio;
5826 } 5827 }
5827 return _json; 5828 return _json;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
5937 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]); 5938 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]);
5938 } 5939 }
5939 if (_json.containsKey("shippingOption")) { 5940 if (_json.containsKey("shippingOption")) {
5940 shippingOption = _json["shippingOption"]; 5941 shippingOption = _json["shippingOption"];
5941 } 5942 }
5942 if (_json.containsKey("status")) { 5943 if (_json.containsKey("status")) {
5943 status = _json["status"]; 5944 status = _json["status"];
5944 } 5945 }
5945 } 5946 }
5946 5947
5947 core.Map toJson() { 5948 core.Map<core.String, core.Object> toJson() {
5948 var _json = new core.Map(); 5949 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5949 if (acknowledged != null) { 5950 if (acknowledged != null) {
5950 _json["acknowledged"] = acknowledged; 5951 _json["acknowledged"] = acknowledged;
5951 } 5952 }
5952 if (channelType != null) { 5953 if (channelType != null) {
5953 _json["channelType"] = channelType; 5954 _json["channelType"] = channelType;
5954 } 5955 }
5955 if (customer != null) { 5956 if (customer != null) {
5956 _json["customer"] = (customer).toJson(); 5957 _json["customer"] = (customer).toJson();
5957 } 5958 }
5958 if (deliveryDetails != null) { 5959 if (deliveryDetails != null) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
6060 recipientName = _json["recipientName"]; 6061 recipientName = _json["recipientName"];
6061 } 6062 }
6062 if (_json.containsKey("region")) { 6063 if (_json.containsKey("region")) {
6063 region = _json["region"]; 6064 region = _json["region"];
6064 } 6065 }
6065 if (_json.containsKey("streetAddress")) { 6066 if (_json.containsKey("streetAddress")) {
6066 streetAddress = _json["streetAddress"]; 6067 streetAddress = _json["streetAddress"];
6067 } 6068 }
6068 } 6069 }
6069 6070
6070 core.Map toJson() { 6071 core.Map<core.String, core.Object> toJson() {
6071 var _json = new core.Map(); 6072 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6072 if (country != null) { 6073 if (country != null) {
6073 _json["country"] = country; 6074 _json["country"] = country;
6074 } 6075 }
6075 if (fullAddress != null) { 6076 if (fullAddress != null) {
6076 _json["fullAddress"] = fullAddress; 6077 _json["fullAddress"] = fullAddress;
6077 } 6078 }
6078 if (isPostOfficeBox != null) { 6079 if (isPostOfficeBox != null) {
6079 _json["isPostOfficeBox"] = isPostOfficeBox; 6080 _json["isPostOfficeBox"] = isPostOfficeBox;
6080 } 6081 }
6081 if (locality != null) { 6082 if (locality != null) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
6126 quantity = _json["quantity"]; 6127 quantity = _json["quantity"];
6127 } 6128 }
6128 if (_json.containsKey("reason")) { 6129 if (_json.containsKey("reason")) {
6129 reason = _json["reason"]; 6130 reason = _json["reason"];
6130 } 6131 }
6131 if (_json.containsKey("reasonText")) { 6132 if (_json.containsKey("reasonText")) {
6132 reasonText = _json["reasonText"]; 6133 reasonText = _json["reasonText"];
6133 } 6134 }
6134 } 6135 }
6135 6136
6136 core.Map toJson() { 6137 core.Map<core.String, core.Object> toJson() {
6137 var _json = new core.Map(); 6138 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6138 if (actor != null) { 6139 if (actor != null) {
6139 _json["actor"] = actor; 6140 _json["actor"] = actor;
6140 } 6141 }
6141 if (creationDate != null) { 6142 if (creationDate != null) {
6142 _json["creationDate"] = creationDate; 6143 _json["creationDate"] = creationDate;
6143 } 6144 }
6144 if (quantity != null) { 6145 if (quantity != null) {
6145 _json["quantity"] = quantity; 6146 _json["quantity"] = quantity;
6146 } 6147 }
6147 if (reason != null) { 6148 if (reason != null) {
(...skipping 26 matching lines...) Expand all
6174 email = _json["email"]; 6175 email = _json["email"];
6175 } 6176 }
6176 if (_json.containsKey("explicitMarketingPreference")) { 6177 if (_json.containsKey("explicitMarketingPreference")) {
6177 explicitMarketingPreference = _json["explicitMarketingPreference"]; 6178 explicitMarketingPreference = _json["explicitMarketingPreference"];
6178 } 6179 }
6179 if (_json.containsKey("fullName")) { 6180 if (_json.containsKey("fullName")) {
6180 fullName = _json["fullName"]; 6181 fullName = _json["fullName"];
6181 } 6182 }
6182 } 6183 }
6183 6184
6184 core.Map toJson() { 6185 core.Map<core.String, core.Object> toJson() {
6185 var _json = new core.Map(); 6186 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6186 if (email != null) { 6187 if (email != null) {
6187 _json["email"] = email; 6188 _json["email"] = email;
6188 } 6189 }
6189 if (explicitMarketingPreference != null) { 6190 if (explicitMarketingPreference != null) {
6190 _json["explicitMarketingPreference"] = explicitMarketingPreference; 6191 _json["explicitMarketingPreference"] = explicitMarketingPreference;
6191 } 6192 }
6192 if (fullName != null) { 6193 if (fullName != null) {
6193 _json["fullName"] = fullName; 6194 _json["fullName"] = fullName;
6194 } 6195 }
6195 return _json; 6196 return _json;
(...skipping 10 matching lines...) Expand all
6206 6207
6207 OrderDeliveryDetails.fromJson(core.Map _json) { 6208 OrderDeliveryDetails.fromJson(core.Map _json) {
6208 if (_json.containsKey("address")) { 6209 if (_json.containsKey("address")) {
6209 address = new OrderAddress.fromJson(_json["address"]); 6210 address = new OrderAddress.fromJson(_json["address"]);
6210 } 6211 }
6211 if (_json.containsKey("phoneNumber")) { 6212 if (_json.containsKey("phoneNumber")) {
6212 phoneNumber = _json["phoneNumber"]; 6213 phoneNumber = _json["phoneNumber"];
6213 } 6214 }
6214 } 6215 }
6215 6216
6216 core.Map toJson() { 6217 core.Map<core.String, core.Object> toJson() {
6217 var _json = new core.Map(); 6218 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6218 if (address != null) { 6219 if (address != null) {
6219 _json["address"] = (address).toJson(); 6220 _json["address"] = (address).toJson();
6220 } 6221 }
6221 if (phoneNumber != null) { 6222 if (phoneNumber != null) {
6222 _json["phoneNumber"] = phoneNumber; 6223 _json["phoneNumber"] = phoneNumber;
6223 } 6224 }
6224 return _json; 6225 return _json;
6225 } 6226 }
6226 } 6227 }
6227 6228
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
6301 returns = _json["returns"].map((value) => new OrderReturn.fromJson(value)) .toList(); 6302 returns = _json["returns"].map((value) => new OrderReturn.fromJson(value)) .toList();
6302 } 6303 }
6303 if (_json.containsKey("shippingDetails")) { 6304 if (_json.containsKey("shippingDetails")) {
6304 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin gDetails"]); 6305 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin gDetails"]);
6305 } 6306 }
6306 if (_json.containsKey("tax")) { 6307 if (_json.containsKey("tax")) {
6307 tax = new Price.fromJson(_json["tax"]); 6308 tax = new Price.fromJson(_json["tax"]);
6308 } 6309 }
6309 } 6310 }
6310 6311
6311 core.Map toJson() { 6312 core.Map<core.String, core.Object> toJson() {
6312 var _json = new core.Map(); 6313 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6313 if (cancellations != null) { 6314 if (cancellations != null) {
6314 _json["cancellations"] = cancellations.map((value) => (value).toJson()).to List(); 6315 _json["cancellations"] = cancellations.map((value) => (value).toJson()).to List();
6315 } 6316 }
6316 if (id != null) { 6317 if (id != null) {
6317 _json["id"] = id; 6318 _json["id"] = id;
6318 } 6319 }
6319 if (price != null) { 6320 if (price != null) {
6320 _json["price"] = (price).toJson(); 6321 _json["price"] = (price).toJson();
6321 } 6322 }
6322 if (product != null) { 6323 if (product != null) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
6435 targetCountry = _json["targetCountry"]; 6436 targetCountry = _json["targetCountry"];
6436 } 6437 }
6437 if (_json.containsKey("title")) { 6438 if (_json.containsKey("title")) {
6438 title = _json["title"]; 6439 title = _json["title"];
6439 } 6440 }
6440 if (_json.containsKey("variantAttributes")) { 6441 if (_json.containsKey("variantAttributes")) {
6441 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin eItemProductVariantAttribute.fromJson(value)).toList(); 6442 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin eItemProductVariantAttribute.fromJson(value)).toList();
6442 } 6443 }
6443 } 6444 }
6444 6445
6445 core.Map toJson() { 6446 core.Map<core.String, core.Object> toJson() {
6446 var _json = new core.Map(); 6447 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6447 if (brand != null) { 6448 if (brand != null) {
6448 _json["brand"] = brand; 6449 _json["brand"] = brand;
6449 } 6450 }
6450 if (channel != null) { 6451 if (channel != null) {
6451 _json["channel"] = channel; 6452 _json["channel"] = channel;
6452 } 6453 }
6453 if (condition != null) { 6454 if (condition != null) {
6454 _json["condition"] = condition; 6455 _json["condition"] = condition;
6455 } 6456 }
6456 if (contentLanguage != null) { 6457 if (contentLanguage != null) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
6503 6504
6504 OrderLineItemProductVariantAttribute.fromJson(core.Map _json) { 6505 OrderLineItemProductVariantAttribute.fromJson(core.Map _json) {
6505 if (_json.containsKey("dimension")) { 6506 if (_json.containsKey("dimension")) {
6506 dimension = _json["dimension"]; 6507 dimension = _json["dimension"];
6507 } 6508 }
6508 if (_json.containsKey("value")) { 6509 if (_json.containsKey("value")) {
6509 value = _json["value"]; 6510 value = _json["value"];
6510 } 6511 }
6511 } 6512 }
6512 6513
6513 core.Map toJson() { 6514 core.Map<core.String, core.Object> toJson() {
6514 var _json = new core.Map(); 6515 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6515 if (dimension != null) { 6516 if (dimension != null) {
6516 _json["dimension"] = dimension; 6517 _json["dimension"] = dimension;
6517 } 6518 }
6518 if (value != null) { 6519 if (value != null) {
6519 _json["value"] = value; 6520 _json["value"] = value;
6520 } 6521 }
6521 return _json; 6522 return _json;
6522 } 6523 }
6523 } 6524 }
6524 6525
(...skipping 12 matching lines...) Expand all
6537 daysToReturn = _json["daysToReturn"]; 6538 daysToReturn = _json["daysToReturn"];
6538 } 6539 }
6539 if (_json.containsKey("isReturnable")) { 6540 if (_json.containsKey("isReturnable")) {
6540 isReturnable = _json["isReturnable"]; 6541 isReturnable = _json["isReturnable"];
6541 } 6542 }
6542 if (_json.containsKey("policyUrl")) { 6543 if (_json.containsKey("policyUrl")) {
6543 policyUrl = _json["policyUrl"]; 6544 policyUrl = _json["policyUrl"];
6544 } 6545 }
6545 } 6546 }
6546 6547
6547 core.Map toJson() { 6548 core.Map<core.String, core.Object> toJson() {
6548 var _json = new core.Map(); 6549 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6549 if (daysToReturn != null) { 6550 if (daysToReturn != null) {
6550 _json["daysToReturn"] = daysToReturn; 6551 _json["daysToReturn"] = daysToReturn;
6551 } 6552 }
6552 if (isReturnable != null) { 6553 if (isReturnable != null) {
6553 _json["isReturnable"] = isReturnable; 6554 _json["isReturnable"] = isReturnable;
6554 } 6555 }
6555 if (policyUrl != null) { 6556 if (policyUrl != null) {
6556 _json["policyUrl"] = policyUrl; 6557 _json["policyUrl"] = policyUrl;
6557 } 6558 }
6558 return _json; 6559 return _json;
(...skipping 15 matching lines...) Expand all
6574 deliverByDate = _json["deliverByDate"]; 6575 deliverByDate = _json["deliverByDate"];
6575 } 6576 }
6576 if (_json.containsKey("method")) { 6577 if (_json.containsKey("method")) {
6577 method = new OrderLineItemShippingDetailsMethod.fromJson(_json["method"]); 6578 method = new OrderLineItemShippingDetailsMethod.fromJson(_json["method"]);
6578 } 6579 }
6579 if (_json.containsKey("shipByDate")) { 6580 if (_json.containsKey("shipByDate")) {
6580 shipByDate = _json["shipByDate"]; 6581 shipByDate = _json["shipByDate"];
6581 } 6582 }
6582 } 6583 }
6583 6584
6584 core.Map toJson() { 6585 core.Map<core.String, core.Object> toJson() {
6585 var _json = new core.Map(); 6586 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6586 if (deliverByDate != null) { 6587 if (deliverByDate != null) {
6587 _json["deliverByDate"] = deliverByDate; 6588 _json["deliverByDate"] = deliverByDate;
6588 } 6589 }
6589 if (method != null) { 6590 if (method != null) {
6590 _json["method"] = (method).toJson(); 6591 _json["method"] = (method).toJson();
6591 } 6592 }
6592 if (shipByDate != null) { 6593 if (shipByDate != null) {
6593 _json["shipByDate"] = shipByDate; 6594 _json["shipByDate"] = shipByDate;
6594 } 6595 }
6595 return _json; 6596 return _json;
(...skipping 20 matching lines...) Expand all
6616 maxDaysInTransit = _json["maxDaysInTransit"]; 6617 maxDaysInTransit = _json["maxDaysInTransit"];
6617 } 6618 }
6618 if (_json.containsKey("methodName")) { 6619 if (_json.containsKey("methodName")) {
6619 methodName = _json["methodName"]; 6620 methodName = _json["methodName"];
6620 } 6621 }
6621 if (_json.containsKey("minDaysInTransit")) { 6622 if (_json.containsKey("minDaysInTransit")) {
6622 minDaysInTransit = _json["minDaysInTransit"]; 6623 minDaysInTransit = _json["minDaysInTransit"];
6623 } 6624 }
6624 } 6625 }
6625 6626
6626 core.Map toJson() { 6627 core.Map<core.String, core.Object> toJson() {
6627 var _json = new core.Map(); 6628 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6628 if (carrier != null) { 6629 if (carrier != null) {
6629 _json["carrier"] = carrier; 6630 _json["carrier"] = carrier;
6630 } 6631 }
6631 if (maxDaysInTransit != null) { 6632 if (maxDaysInTransit != null) {
6632 _json["maxDaysInTransit"] = maxDaysInTransit; 6633 _json["maxDaysInTransit"] = maxDaysInTransit;
6633 } 6634 }
6634 if (methodName != null) { 6635 if (methodName != null) {
6635 _json["methodName"] = methodName; 6636 _json["methodName"] = methodName;
6636 } 6637 }
6637 if (minDaysInTransit != null) { 6638 if (minDaysInTransit != null) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
6671 lastFourDigits = _json["lastFourDigits"]; 6672 lastFourDigits = _json["lastFourDigits"];
6672 } 6673 }
6673 if (_json.containsKey("phoneNumber")) { 6674 if (_json.containsKey("phoneNumber")) {
6674 phoneNumber = _json["phoneNumber"]; 6675 phoneNumber = _json["phoneNumber"];
6675 } 6676 }
6676 if (_json.containsKey("type")) { 6677 if (_json.containsKey("type")) {
6677 type = _json["type"]; 6678 type = _json["type"];
6678 } 6679 }
6679 } 6680 }
6680 6681
6681 core.Map toJson() { 6682 core.Map<core.String, core.Object> toJson() {
6682 var _json = new core.Map(); 6683 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6683 if (billingAddress != null) { 6684 if (billingAddress != null) {
6684 _json["billingAddress"] = (billingAddress).toJson(); 6685 _json["billingAddress"] = (billingAddress).toJson();
6685 } 6686 }
6686 if (expirationMonth != null) { 6687 if (expirationMonth != null) {
6687 _json["expirationMonth"] = expirationMonth; 6688 _json["expirationMonth"] = expirationMonth;
6688 } 6689 }
6689 if (expirationYear != null) { 6690 if (expirationYear != null) {
6690 _json["expirationYear"] = expirationYear; 6691 _json["expirationYear"] = expirationYear;
6691 } 6692 }
6692 if (lastFourDigits != null) { 6693 if (lastFourDigits != null) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
6751 longTitle = _json["longTitle"]; 6752 longTitle = _json["longTitle"];
6752 } 6753 }
6753 if (_json.containsKey("productApplicability")) { 6754 if (_json.containsKey("productApplicability")) {
6754 productApplicability = _json["productApplicability"]; 6755 productApplicability = _json["productApplicability"];
6755 } 6756 }
6756 if (_json.containsKey("redemptionChannel")) { 6757 if (_json.containsKey("redemptionChannel")) {
6757 redemptionChannel = _json["redemptionChannel"]; 6758 redemptionChannel = _json["redemptionChannel"];
6758 } 6759 }
6759 } 6760 }
6760 6761
6761 core.Map toJson() { 6762 core.Map<core.String, core.Object> toJson() {
6762 var _json = new core.Map(); 6763 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6763 if (benefits != null) { 6764 if (benefits != null) {
6764 _json["benefits"] = benefits.map((value) => (value).toJson()).toList(); 6765 _json["benefits"] = benefits.map((value) => (value).toJson()).toList();
6765 } 6766 }
6766 if (effectiveDates != null) { 6767 if (effectiveDates != null) {
6767 _json["effectiveDates"] = effectiveDates; 6768 _json["effectiveDates"] = effectiveDates;
6768 } 6769 }
6769 if (genericRedemptionCode != null) { 6770 if (genericRedemptionCode != null) {
6770 _json["genericRedemptionCode"] = genericRedemptionCode; 6771 _json["genericRedemptionCode"] = genericRedemptionCode;
6771 } 6772 }
6772 if (id != null) { 6773 if (id != null) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
6819 subType = _json["subType"]; 6820 subType = _json["subType"];
6820 } 6821 }
6821 if (_json.containsKey("taxImpact")) { 6822 if (_json.containsKey("taxImpact")) {
6822 taxImpact = new Price.fromJson(_json["taxImpact"]); 6823 taxImpact = new Price.fromJson(_json["taxImpact"]);
6823 } 6824 }
6824 if (_json.containsKey("type")) { 6825 if (_json.containsKey("type")) {
6825 type = _json["type"]; 6826 type = _json["type"];
6826 } 6827 }
6827 } 6828 }
6828 6829
6829 core.Map toJson() { 6830 core.Map<core.String, core.Object> toJson() {
6830 var _json = new core.Map(); 6831 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6831 if (discount != null) { 6832 if (discount != null) {
6832 _json["discount"] = (discount).toJson(); 6833 _json["discount"] = (discount).toJson();
6833 } 6834 }
6834 if (offerIds != null) { 6835 if (offerIds != null) {
6835 _json["offerIds"] = offerIds; 6836 _json["offerIds"] = offerIds;
6836 } 6837 }
6837 if (subType != null) { 6838 if (subType != null) {
6838 _json["subType"] = subType; 6839 _json["subType"] = subType;
6839 } 6840 }
6840 if (taxImpact != null) { 6841 if (taxImpact != null) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6872 creationDate = _json["creationDate"]; 6873 creationDate = _json["creationDate"];
6873 } 6874 }
6874 if (_json.containsKey("reason")) { 6875 if (_json.containsKey("reason")) {
6875 reason = _json["reason"]; 6876 reason = _json["reason"];
6876 } 6877 }
6877 if (_json.containsKey("reasonText")) { 6878 if (_json.containsKey("reasonText")) {
6878 reasonText = _json["reasonText"]; 6879 reasonText = _json["reasonText"];
6879 } 6880 }
6880 } 6881 }
6881 6882
6882 core.Map toJson() { 6883 core.Map<core.String, core.Object> toJson() {
6883 var _json = new core.Map(); 6884 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6884 if (actor != null) { 6885 if (actor != null) {
6885 _json["actor"] = actor; 6886 _json["actor"] = actor;
6886 } 6887 }
6887 if (amount != null) { 6888 if (amount != null) {
6888 _json["amount"] = (amount).toJson(); 6889 _json["amount"] = (amount).toJson();
6889 } 6890 }
6890 if (creationDate != null) { 6891 if (creationDate != null) {
6891 _json["creationDate"] = creationDate; 6892 _json["creationDate"] = creationDate;
6892 } 6893 }
6893 if (reason != null) { 6894 if (reason != null) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6925 quantity = _json["quantity"]; 6926 quantity = _json["quantity"];
6926 } 6927 }
6927 if (_json.containsKey("reason")) { 6928 if (_json.containsKey("reason")) {
6928 reason = _json["reason"]; 6929 reason = _json["reason"];
6929 } 6930 }
6930 if (_json.containsKey("reasonText")) { 6931 if (_json.containsKey("reasonText")) {
6931 reasonText = _json["reasonText"]; 6932 reasonText = _json["reasonText"];
6932 } 6933 }
6933 } 6934 }
6934 6935
6935 core.Map toJson() { 6936 core.Map<core.String, core.Object> toJson() {
6936 var _json = new core.Map(); 6937 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6937 if (actor != null) { 6938 if (actor != null) {
6938 _json["actor"] = actor; 6939 _json["actor"] = actor;
6939 } 6940 }
6940 if (creationDate != null) { 6941 if (creationDate != null) {
6941 _json["creationDate"] = creationDate; 6942 _json["creationDate"] = creationDate;
6942 } 6943 }
6943 if (quantity != null) { 6944 if (quantity != null) {
6944 _json["quantity"] = quantity; 6945 _json["quantity"] = quantity;
6945 } 6946 }
6946 if (reason != null) { 6947 if (reason != null) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
6991 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi pment.fromJson(value)).toList(); 6992 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi pment.fromJson(value)).toList();
6992 } 6993 }
6993 if (_json.containsKey("status")) { 6994 if (_json.containsKey("status")) {
6994 status = _json["status"]; 6995 status = _json["status"];
6995 } 6996 }
6996 if (_json.containsKey("trackingId")) { 6997 if (_json.containsKey("trackingId")) {
6997 trackingId = _json["trackingId"]; 6998 trackingId = _json["trackingId"];
6998 } 6999 }
6999 } 7000 }
7000 7001
7001 core.Map toJson() { 7002 core.Map<core.String, core.Object> toJson() {
7002 var _json = new core.Map(); 7003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7003 if (carrier != null) { 7004 if (carrier != null) {
7004 _json["carrier"] = carrier; 7005 _json["carrier"] = carrier;
7005 } 7006 }
7006 if (creationDate != null) { 7007 if (creationDate != null) {
7007 _json["creationDate"] = creationDate; 7008 _json["creationDate"] = creationDate;
7008 } 7009 }
7009 if (deliveryDate != null) { 7010 if (deliveryDate != null) {
7010 _json["deliveryDate"] = deliveryDate; 7011 _json["deliveryDate"] = deliveryDate;
7011 } 7012 }
7012 if (id != null) { 7013 if (id != null) {
(...skipping 22 matching lines...) Expand all
7035 7036
7036 OrderShipmentLineItemShipment.fromJson(core.Map _json) { 7037 OrderShipmentLineItemShipment.fromJson(core.Map _json) {
7037 if (_json.containsKey("lineItemId")) { 7038 if (_json.containsKey("lineItemId")) {
7038 lineItemId = _json["lineItemId"]; 7039 lineItemId = _json["lineItemId"];
7039 } 7040 }
7040 if (_json.containsKey("quantity")) { 7041 if (_json.containsKey("quantity")) {
7041 quantity = _json["quantity"]; 7042 quantity = _json["quantity"];
7042 } 7043 }
7043 } 7044 }
7044 7045
7045 core.Map toJson() { 7046 core.Map<core.String, core.Object> toJson() {
7046 var _json = new core.Map(); 7047 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7047 if (lineItemId != null) { 7048 if (lineItemId != null) {
7048 _json["lineItemId"] = lineItemId; 7049 _json["lineItemId"] = lineItemId;
7049 } 7050 }
7050 if (quantity != null) { 7051 if (quantity != null) {
7051 _json["quantity"] = quantity; 7052 _json["quantity"] = quantity;
7052 } 7053 }
7053 return _json; 7054 return _json;
7054 } 7055 }
7055 } 7056 }
7056 7057
7057 class OrdersAcknowledgeRequest { 7058 class OrdersAcknowledgeRequest {
7058 /** 7059 /**
7059 * The ID of the operation. Unique across all operations for a given order. 7060 * The ID of the operation. Unique across all operations for a given order.
7060 */ 7061 */
7061 core.String operationId; 7062 core.String operationId;
7062 7063
7063 OrdersAcknowledgeRequest(); 7064 OrdersAcknowledgeRequest();
7064 7065
7065 OrdersAcknowledgeRequest.fromJson(core.Map _json) { 7066 OrdersAcknowledgeRequest.fromJson(core.Map _json) {
7066 if (_json.containsKey("operationId")) { 7067 if (_json.containsKey("operationId")) {
7067 operationId = _json["operationId"]; 7068 operationId = _json["operationId"];
7068 } 7069 }
7069 } 7070 }
7070 7071
7071 core.Map toJson() { 7072 core.Map<core.String, core.Object> toJson() {
7072 var _json = new core.Map(); 7073 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7073 if (operationId != null) { 7074 if (operationId != null) {
7074 _json["operationId"] = operationId; 7075 _json["operationId"] = operationId;
7075 } 7076 }
7076 return _json; 7077 return _json;
7077 } 7078 }
7078 } 7079 }
7079 7080
7080 class OrdersAcknowledgeResponse { 7081 class OrdersAcknowledgeResponse {
7081 /** The status of the execution. */ 7082 /** The status of the execution. */
7082 core.String executionStatus; 7083 core.String executionStatus;
7083 /** 7084 /**
7084 * Identifies what kind of resource this is. Value: the fixed string 7085 * Identifies what kind of resource this is. Value: the fixed string
7085 * "content#ordersAcknowledgeResponse". 7086 * "content#ordersAcknowledgeResponse".
7086 */ 7087 */
7087 core.String kind; 7088 core.String kind;
7088 7089
7089 OrdersAcknowledgeResponse(); 7090 OrdersAcknowledgeResponse();
7090 7091
7091 OrdersAcknowledgeResponse.fromJson(core.Map _json) { 7092 OrdersAcknowledgeResponse.fromJson(core.Map _json) {
7092 if (_json.containsKey("executionStatus")) { 7093 if (_json.containsKey("executionStatus")) {
7093 executionStatus = _json["executionStatus"]; 7094 executionStatus = _json["executionStatus"];
7094 } 7095 }
7095 if (_json.containsKey("kind")) { 7096 if (_json.containsKey("kind")) {
7096 kind = _json["kind"]; 7097 kind = _json["kind"];
7097 } 7098 }
7098 } 7099 }
7099 7100
7100 core.Map toJson() { 7101 core.Map<core.String, core.Object> toJson() {
7101 var _json = new core.Map(); 7102 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7102 if (executionStatus != null) { 7103 if (executionStatus != null) {
7103 _json["executionStatus"] = executionStatus; 7104 _json["executionStatus"] = executionStatus;
7104 } 7105 }
7105 if (kind != null) { 7106 if (kind != null) {
7106 _json["kind"] = kind; 7107 _json["kind"] = kind;
7107 } 7108 }
7108 return _json; 7109 return _json;
7109 } 7110 }
7110 } 7111 }
7111 7112
7112 class OrdersAdvanceTestOrderResponse { 7113 class OrdersAdvanceTestOrderResponse {
7113 /** 7114 /**
7114 * Identifies what kind of resource this is. Value: the fixed string 7115 * Identifies what kind of resource this is. Value: the fixed string
7115 * "content#ordersAdvanceTestOrderResponse". 7116 * "content#ordersAdvanceTestOrderResponse".
7116 */ 7117 */
7117 core.String kind; 7118 core.String kind;
7118 7119
7119 OrdersAdvanceTestOrderResponse(); 7120 OrdersAdvanceTestOrderResponse();
7120 7121
7121 OrdersAdvanceTestOrderResponse.fromJson(core.Map _json) { 7122 OrdersAdvanceTestOrderResponse.fromJson(core.Map _json) {
7122 if (_json.containsKey("kind")) { 7123 if (_json.containsKey("kind")) {
7123 kind = _json["kind"]; 7124 kind = _json["kind"];
7124 } 7125 }
7125 } 7126 }
7126 7127
7127 core.Map toJson() { 7128 core.Map<core.String, core.Object> toJson() {
7128 var _json = new core.Map(); 7129 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7129 if (kind != null) { 7130 if (kind != null) {
7130 _json["kind"] = kind; 7131 _json["kind"] = kind;
7131 } 7132 }
7132 return _json; 7133 return _json;
7133 } 7134 }
7134 } 7135 }
7135 7136
7136 class OrdersCancelLineItemRequest { 7137 class OrdersCancelLineItemRequest {
7137 /** 7138 /**
7138 * Amount to refund for the cancelation. Optional. If not set, Google will 7139 * Amount to refund for the cancelation. Optional. If not set, Google will
(...skipping 30 matching lines...) Expand all
7169 quantity = _json["quantity"]; 7170 quantity = _json["quantity"];
7170 } 7171 }
7171 if (_json.containsKey("reason")) { 7172 if (_json.containsKey("reason")) {
7172 reason = _json["reason"]; 7173 reason = _json["reason"];
7173 } 7174 }
7174 if (_json.containsKey("reasonText")) { 7175 if (_json.containsKey("reasonText")) {
7175 reasonText = _json["reasonText"]; 7176 reasonText = _json["reasonText"];
7176 } 7177 }
7177 } 7178 }
7178 7179
7179 core.Map toJson() { 7180 core.Map<core.String, core.Object> toJson() {
7180 var _json = new core.Map(); 7181 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7181 if (amount != null) { 7182 if (amount != null) {
7182 _json["amount"] = (amount).toJson(); 7183 _json["amount"] = (amount).toJson();
7183 } 7184 }
7184 if (lineItemId != null) { 7185 if (lineItemId != null) {
7185 _json["lineItemId"] = lineItemId; 7186 _json["lineItemId"] = lineItemId;
7186 } 7187 }
7187 if (operationId != null) { 7188 if (operationId != null) {
7188 _json["operationId"] = operationId; 7189 _json["operationId"] = operationId;
7189 } 7190 }
7190 if (quantity != null) { 7191 if (quantity != null) {
(...skipping 22 matching lines...) Expand all
7213 7214
7214 OrdersCancelLineItemResponse.fromJson(core.Map _json) { 7215 OrdersCancelLineItemResponse.fromJson(core.Map _json) {
7215 if (_json.containsKey("executionStatus")) { 7216 if (_json.containsKey("executionStatus")) {
7216 executionStatus = _json["executionStatus"]; 7217 executionStatus = _json["executionStatus"];
7217 } 7218 }
7218 if (_json.containsKey("kind")) { 7219 if (_json.containsKey("kind")) {
7219 kind = _json["kind"]; 7220 kind = _json["kind"];
7220 } 7221 }
7221 } 7222 }
7222 7223
7223 core.Map toJson() { 7224 core.Map<core.String, core.Object> toJson() {
7224 var _json = new core.Map(); 7225 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7225 if (executionStatus != null) { 7226 if (executionStatus != null) {
7226 _json["executionStatus"] = executionStatus; 7227 _json["executionStatus"] = executionStatus;
7227 } 7228 }
7228 if (kind != null) { 7229 if (kind != null) {
7229 _json["kind"] = kind; 7230 _json["kind"] = kind;
7230 } 7231 }
7231 return _json; 7232 return _json;
7232 } 7233 }
7233 } 7234 }
7234 7235
(...skipping 14 matching lines...) Expand all
7249 operationId = _json["operationId"]; 7250 operationId = _json["operationId"];
7250 } 7251 }
7251 if (_json.containsKey("reason")) { 7252 if (_json.containsKey("reason")) {
7252 reason = _json["reason"]; 7253 reason = _json["reason"];
7253 } 7254 }
7254 if (_json.containsKey("reasonText")) { 7255 if (_json.containsKey("reasonText")) {
7255 reasonText = _json["reasonText"]; 7256 reasonText = _json["reasonText"];
7256 } 7257 }
7257 } 7258 }
7258 7259
7259 core.Map toJson() { 7260 core.Map<core.String, core.Object> toJson() {
7260 var _json = new core.Map(); 7261 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7261 if (operationId != null) { 7262 if (operationId != null) {
7262 _json["operationId"] = operationId; 7263 _json["operationId"] = operationId;
7263 } 7264 }
7264 if (reason != null) { 7265 if (reason != null) {
7265 _json["reason"] = reason; 7266 _json["reason"] = reason;
7266 } 7267 }
7267 if (reasonText != null) { 7268 if (reasonText != null) {
7268 _json["reasonText"] = reasonText; 7269 _json["reasonText"] = reasonText;
7269 } 7270 }
7270 return _json; 7271 return _json;
(...skipping 13 matching lines...) Expand all
7284 7285
7285 OrdersCancelResponse.fromJson(core.Map _json) { 7286 OrdersCancelResponse.fromJson(core.Map _json) {
7286 if (_json.containsKey("executionStatus")) { 7287 if (_json.containsKey("executionStatus")) {
7287 executionStatus = _json["executionStatus"]; 7288 executionStatus = _json["executionStatus"];
7288 } 7289 }
7289 if (_json.containsKey("kind")) { 7290 if (_json.containsKey("kind")) {
7290 kind = _json["kind"]; 7291 kind = _json["kind"];
7291 } 7292 }
7292 } 7293 }
7293 7294
7294 core.Map toJson() { 7295 core.Map<core.String, core.Object> toJson() {
7295 var _json = new core.Map(); 7296 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7296 if (executionStatus != null) { 7297 if (executionStatus != null) {
7297 _json["executionStatus"] = executionStatus; 7298 _json["executionStatus"] = executionStatus;
7298 } 7299 }
7299 if (kind != null) { 7300 if (kind != null) {
7300 _json["kind"] = kind; 7301 _json["kind"] = kind;
7301 } 7302 }
7302 return _json; 7303 return _json;
7303 } 7304 }
7304 } 7305 }
7305 7306
(...skipping 11 matching lines...) Expand all
7317 7318
7318 OrdersCreateTestOrderRequest.fromJson(core.Map _json) { 7319 OrdersCreateTestOrderRequest.fromJson(core.Map _json) {
7319 if (_json.containsKey("templateName")) { 7320 if (_json.containsKey("templateName")) {
7320 templateName = _json["templateName"]; 7321 templateName = _json["templateName"];
7321 } 7322 }
7322 if (_json.containsKey("testOrder")) { 7323 if (_json.containsKey("testOrder")) {
7323 testOrder = new TestOrder.fromJson(_json["testOrder"]); 7324 testOrder = new TestOrder.fromJson(_json["testOrder"]);
7324 } 7325 }
7325 } 7326 }
7326 7327
7327 core.Map toJson() { 7328 core.Map<core.String, core.Object> toJson() {
7328 var _json = new core.Map(); 7329 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7329 if (templateName != null) { 7330 if (templateName != null) {
7330 _json["templateName"] = templateName; 7331 _json["templateName"] = templateName;
7331 } 7332 }
7332 if (testOrder != null) { 7333 if (testOrder != null) {
7333 _json["testOrder"] = (testOrder).toJson(); 7334 _json["testOrder"] = (testOrder).toJson();
7334 } 7335 }
7335 return _json; 7336 return _json;
7336 } 7337 }
7337 } 7338 }
7338 7339
(...skipping 10 matching lines...) Expand all
7349 7350
7350 OrdersCreateTestOrderResponse.fromJson(core.Map _json) { 7351 OrdersCreateTestOrderResponse.fromJson(core.Map _json) {
7351 if (_json.containsKey("kind")) { 7352 if (_json.containsKey("kind")) {
7352 kind = _json["kind"]; 7353 kind = _json["kind"];
7353 } 7354 }
7354 if (_json.containsKey("orderId")) { 7355 if (_json.containsKey("orderId")) {
7355 orderId = _json["orderId"]; 7356 orderId = _json["orderId"];
7356 } 7357 }
7357 } 7358 }
7358 7359
7359 core.Map toJson() { 7360 core.Map<core.String, core.Object> toJson() {
7360 var _json = new core.Map(); 7361 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7361 if (kind != null) { 7362 if (kind != null) {
7362 _json["kind"] = kind; 7363 _json["kind"] = kind;
7363 } 7364 }
7364 if (orderId != null) { 7365 if (orderId != null) {
7365 _json["orderId"] = orderId; 7366 _json["orderId"] = orderId;
7366 } 7367 }
7367 return _json; 7368 return _json;
7368 } 7369 }
7369 } 7370 }
7370 7371
7371 class OrdersCustomBatchRequest { 7372 class OrdersCustomBatchRequest {
7372 /** The request entries to be processed in the batch. */ 7373 /** The request entries to be processed in the batch. */
7373 core.List<OrdersCustomBatchRequestEntry> entries; 7374 core.List<OrdersCustomBatchRequestEntry> entries;
7374 7375
7375 OrdersCustomBatchRequest(); 7376 OrdersCustomBatchRequest();
7376 7377
7377 OrdersCustomBatchRequest.fromJson(core.Map _json) { 7378 OrdersCustomBatchRequest.fromJson(core.Map _json) {
7378 if (_json.containsKey("entries")) { 7379 if (_json.containsKey("entries")) {
7379 entries = _json["entries"].map((value) => new OrdersCustomBatchRequestEntr y.fromJson(value)).toList(); 7380 entries = _json["entries"].map((value) => new OrdersCustomBatchRequestEntr y.fromJson(value)).toList();
7380 } 7381 }
7381 } 7382 }
7382 7383
7383 core.Map toJson() { 7384 core.Map<core.String, core.Object> toJson() {
7384 var _json = new core.Map(); 7385 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7385 if (entries != null) { 7386 if (entries != null) {
7386 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 7387 _json["entries"] = entries.map((value) => (value).toJson()).toList();
7387 } 7388 }
7388 return _json; 7389 return _json;
7389 } 7390 }
7390 } 7391 }
7391 7392
7392 class OrdersCustomBatchRequestEntry { 7393 class OrdersCustomBatchRequestEntry {
7393 /** An entry ID, unique within the batch request. */ 7394 /** An entry ID, unique within the batch request. */
7394 core.int batchId; 7395 core.int batchId;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
7457 returnLineItem = new OrdersCustomBatchRequestEntryReturnLineItem.fromJson( _json["returnLineItem"]); 7458 returnLineItem = new OrdersCustomBatchRequestEntryReturnLineItem.fromJson( _json["returnLineItem"]);
7458 } 7459 }
7459 if (_json.containsKey("shipLineItems")) { 7460 if (_json.containsKey("shipLineItems")) {
7460 shipLineItems = new OrdersCustomBatchRequestEntryShipLineItems.fromJson(_j son["shipLineItems"]); 7461 shipLineItems = new OrdersCustomBatchRequestEntryShipLineItems.fromJson(_j son["shipLineItems"]);
7461 } 7462 }
7462 if (_json.containsKey("updateShipment")) { 7463 if (_json.containsKey("updateShipment")) {
7463 updateShipment = new OrdersCustomBatchRequestEntryUpdateShipment.fromJson( _json["updateShipment"]); 7464 updateShipment = new OrdersCustomBatchRequestEntryUpdateShipment.fromJson( _json["updateShipment"]);
7464 } 7465 }
7465 } 7466 }
7466 7467
7467 core.Map toJson() { 7468 core.Map<core.String, core.Object> toJson() {
7468 var _json = new core.Map(); 7469 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7469 if (batchId != null) { 7470 if (batchId != null) {
7470 _json["batchId"] = batchId; 7471 _json["batchId"] = batchId;
7471 } 7472 }
7472 if (cancel != null) { 7473 if (cancel != null) {
7473 _json["cancel"] = (cancel).toJson(); 7474 _json["cancel"] = (cancel).toJson();
7474 } 7475 }
7475 if (cancelLineItem != null) { 7476 if (cancelLineItem != null) {
7476 _json["cancelLineItem"] = (cancelLineItem).toJson(); 7477 _json["cancelLineItem"] = (cancelLineItem).toJson();
7477 } 7478 }
7478 if (merchantId != null) { 7479 if (merchantId != null) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
7516 7517
7517 OrdersCustomBatchRequestEntryCancel.fromJson(core.Map _json) { 7518 OrdersCustomBatchRequestEntryCancel.fromJson(core.Map _json) {
7518 if (_json.containsKey("reason")) { 7519 if (_json.containsKey("reason")) {
7519 reason = _json["reason"]; 7520 reason = _json["reason"];
7520 } 7521 }
7521 if (_json.containsKey("reasonText")) { 7522 if (_json.containsKey("reasonText")) {
7522 reasonText = _json["reasonText"]; 7523 reasonText = _json["reasonText"];
7523 } 7524 }
7524 } 7525 }
7525 7526
7526 core.Map toJson() { 7527 core.Map<core.String, core.Object> toJson() {
7527 var _json = new core.Map(); 7528 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7528 if (reason != null) { 7529 if (reason != null) {
7529 _json["reason"] = reason; 7530 _json["reason"] = reason;
7530 } 7531 }
7531 if (reasonText != null) { 7532 if (reasonText != null) {
7532 _json["reasonText"] = reasonText; 7533 _json["reasonText"] = reasonText;
7533 } 7534 }
7534 return _json; 7535 return _json;
7535 } 7536 }
7536 } 7537 }
7537 7538
(...skipping 26 matching lines...) Expand all
7564 quantity = _json["quantity"]; 7565 quantity = _json["quantity"];
7565 } 7566 }
7566 if (_json.containsKey("reason")) { 7567 if (_json.containsKey("reason")) {
7567 reason = _json["reason"]; 7568 reason = _json["reason"];
7568 } 7569 }
7569 if (_json.containsKey("reasonText")) { 7570 if (_json.containsKey("reasonText")) {
7570 reasonText = _json["reasonText"]; 7571 reasonText = _json["reasonText"];
7571 } 7572 }
7572 } 7573 }
7573 7574
7574 core.Map toJson() { 7575 core.Map<core.String, core.Object> toJson() {
7575 var _json = new core.Map(); 7576 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7576 if (amount != null) { 7577 if (amount != null) {
7577 _json["amount"] = (amount).toJson(); 7578 _json["amount"] = (amount).toJson();
7578 } 7579 }
7579 if (lineItemId != null) { 7580 if (lineItemId != null) {
7580 _json["lineItemId"] = lineItemId; 7581 _json["lineItemId"] = lineItemId;
7581 } 7582 }
7582 if (quantity != null) { 7583 if (quantity != null) {
7583 _json["quantity"] = quantity; 7584 _json["quantity"] = quantity;
7584 } 7585 }
7585 if (reason != null) { 7586 if (reason != null) {
(...skipping 21 matching lines...) Expand all
7607 amount = new Price.fromJson(_json["amount"]); 7608 amount = new Price.fromJson(_json["amount"]);
7608 } 7609 }
7609 if (_json.containsKey("reason")) { 7610 if (_json.containsKey("reason")) {
7610 reason = _json["reason"]; 7611 reason = _json["reason"];
7611 } 7612 }
7612 if (_json.containsKey("reasonText")) { 7613 if (_json.containsKey("reasonText")) {
7613 reasonText = _json["reasonText"]; 7614 reasonText = _json["reasonText"];
7614 } 7615 }
7615 } 7616 }
7616 7617
7617 core.Map toJson() { 7618 core.Map<core.String, core.Object> toJson() {
7618 var _json = new core.Map(); 7619 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7619 if (amount != null) { 7620 if (amount != null) {
7620 _json["amount"] = (amount).toJson(); 7621 _json["amount"] = (amount).toJson();
7621 } 7622 }
7622 if (reason != null) { 7623 if (reason != null) {
7623 _json["reason"] = reason; 7624 _json["reason"] = reason;
7624 } 7625 }
7625 if (reasonText != null) { 7626 if (reasonText != null) {
7626 _json["reasonText"] = reasonText; 7627 _json["reasonText"] = reasonText;
7627 } 7628 }
7628 return _json; 7629 return _json;
(...skipping 20 matching lines...) Expand all
7649 quantity = _json["quantity"]; 7650 quantity = _json["quantity"];
7650 } 7651 }
7651 if (_json.containsKey("reason")) { 7652 if (_json.containsKey("reason")) {
7652 reason = _json["reason"]; 7653 reason = _json["reason"];
7653 } 7654 }
7654 if (_json.containsKey("reasonText")) { 7655 if (_json.containsKey("reasonText")) {
7655 reasonText = _json["reasonText"]; 7656 reasonText = _json["reasonText"];
7656 } 7657 }
7657 } 7658 }
7658 7659
7659 core.Map toJson() { 7660 core.Map<core.String, core.Object> toJson() {
7660 var _json = new core.Map(); 7661 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7661 if (lineItemId != null) { 7662 if (lineItemId != null) {
7662 _json["lineItemId"] = lineItemId; 7663 _json["lineItemId"] = lineItemId;
7663 } 7664 }
7664 if (quantity != null) { 7665 if (quantity != null) {
7665 _json["quantity"] = quantity; 7666 _json["quantity"] = quantity;
7666 } 7667 }
7667 if (reason != null) { 7668 if (reason != null) {
7668 _json["reason"] = reason; 7669 _json["reason"] = reason;
7669 } 7670 }
7670 if (reasonText != null) { 7671 if (reasonText != null) {
(...skipping 23 matching lines...) Expand all
7694 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi pment.fromJson(value)).toList(); 7695 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi pment.fromJson(value)).toList();
7695 } 7696 }
7696 if (_json.containsKey("shipmentId")) { 7697 if (_json.containsKey("shipmentId")) {
7697 shipmentId = _json["shipmentId"]; 7698 shipmentId = _json["shipmentId"];
7698 } 7699 }
7699 if (_json.containsKey("trackingId")) { 7700 if (_json.containsKey("trackingId")) {
7700 trackingId = _json["trackingId"]; 7701 trackingId = _json["trackingId"];
7701 } 7702 }
7702 } 7703 }
7703 7704
7704 core.Map toJson() { 7705 core.Map<core.String, core.Object> toJson() {
7705 var _json = new core.Map(); 7706 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7706 if (carrier != null) { 7707 if (carrier != null) {
7707 _json["carrier"] = carrier; 7708 _json["carrier"] = carrier;
7708 } 7709 }
7709 if (lineItems != null) { 7710 if (lineItems != null) {
7710 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); 7711 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList();
7711 } 7712 }
7712 if (shipmentId != null) { 7713 if (shipmentId != null) {
7713 _json["shipmentId"] = shipmentId; 7714 _json["shipmentId"] = shipmentId;
7714 } 7715 }
7715 if (trackingId != null) { 7716 if (trackingId != null) {
(...skipping 23 matching lines...) Expand all
7739 shipmentId = _json["shipmentId"]; 7740 shipmentId = _json["shipmentId"];
7740 } 7741 }
7741 if (_json.containsKey("status")) { 7742 if (_json.containsKey("status")) {
7742 status = _json["status"]; 7743 status = _json["status"];
7743 } 7744 }
7744 if (_json.containsKey("trackingId")) { 7745 if (_json.containsKey("trackingId")) {
7745 trackingId = _json["trackingId"]; 7746 trackingId = _json["trackingId"];
7746 } 7747 }
7747 } 7748 }
7748 7749
7749 core.Map toJson() { 7750 core.Map<core.String, core.Object> toJson() {
7750 var _json = new core.Map(); 7751 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7751 if (carrier != null) { 7752 if (carrier != null) {
7752 _json["carrier"] = carrier; 7753 _json["carrier"] = carrier;
7753 } 7754 }
7754 if (shipmentId != null) { 7755 if (shipmentId != null) {
7755 _json["shipmentId"] = shipmentId; 7756 _json["shipmentId"] = shipmentId;
7756 } 7757 }
7757 if (status != null) { 7758 if (status != null) {
7758 _json["status"] = status; 7759 _json["status"] = status;
7759 } 7760 }
7760 if (trackingId != null) { 7761 if (trackingId != null) {
(...skipping 16 matching lines...) Expand all
7777 7778
7778 OrdersCustomBatchResponse.fromJson(core.Map _json) { 7779 OrdersCustomBatchResponse.fromJson(core.Map _json) {
7779 if (_json.containsKey("entries")) { 7780 if (_json.containsKey("entries")) {
7780 entries = _json["entries"].map((value) => new OrdersCustomBatchResponseEnt ry.fromJson(value)).toList(); 7781 entries = _json["entries"].map((value) => new OrdersCustomBatchResponseEnt ry.fromJson(value)).toList();
7781 } 7782 }
7782 if (_json.containsKey("kind")) { 7783 if (_json.containsKey("kind")) {
7783 kind = _json["kind"]; 7784 kind = _json["kind"];
7784 } 7785 }
7785 } 7786 }
7786 7787
7787 core.Map toJson() { 7788 core.Map<core.String, core.Object> toJson() {
7788 var _json = new core.Map(); 7789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7789 if (entries != null) { 7790 if (entries != null) {
7790 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 7791 _json["entries"] = entries.map((value) => (value).toJson()).toList();
7791 } 7792 }
7792 if (kind != null) { 7793 if (kind != null) {
7793 _json["kind"] = kind; 7794 _json["kind"] = kind;
7794 } 7795 }
7795 return _json; 7796 return _json;
7796 } 7797 }
7797 } 7798 }
7798 7799
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
7830 executionStatus = _json["executionStatus"]; 7831 executionStatus = _json["executionStatus"];
7831 } 7832 }
7832 if (_json.containsKey("kind")) { 7833 if (_json.containsKey("kind")) {
7833 kind = _json["kind"]; 7834 kind = _json["kind"];
7834 } 7835 }
7835 if (_json.containsKey("order")) { 7836 if (_json.containsKey("order")) {
7836 order = new Order.fromJson(_json["order"]); 7837 order = new Order.fromJson(_json["order"]);
7837 } 7838 }
7838 } 7839 }
7839 7840
7840 core.Map toJson() { 7841 core.Map<core.String, core.Object> toJson() {
7841 var _json = new core.Map(); 7842 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7842 if (batchId != null) { 7843 if (batchId != null) {
7843 _json["batchId"] = batchId; 7844 _json["batchId"] = batchId;
7844 } 7845 }
7845 if (errors != null) { 7846 if (errors != null) {
7846 _json["errors"] = (errors).toJson(); 7847 _json["errors"] = (errors).toJson();
7847 } 7848 }
7848 if (executionStatus != null) { 7849 if (executionStatus != null) {
7849 _json["executionStatus"] = executionStatus; 7850 _json["executionStatus"] = executionStatus;
7850 } 7851 }
7851 if (kind != null) { 7852 if (kind != null) {
(...skipping 19 matching lines...) Expand all
7871 7872
7872 OrdersGetByMerchantOrderIdResponse.fromJson(core.Map _json) { 7873 OrdersGetByMerchantOrderIdResponse.fromJson(core.Map _json) {
7873 if (_json.containsKey("kind")) { 7874 if (_json.containsKey("kind")) {
7874 kind = _json["kind"]; 7875 kind = _json["kind"];
7875 } 7876 }
7876 if (_json.containsKey("order")) { 7877 if (_json.containsKey("order")) {
7877 order = new Order.fromJson(_json["order"]); 7878 order = new Order.fromJson(_json["order"]);
7878 } 7879 }
7879 } 7880 }
7880 7881
7881 core.Map toJson() { 7882 core.Map<core.String, core.Object> toJson() {
7882 var _json = new core.Map(); 7883 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7883 if (kind != null) { 7884 if (kind != null) {
7884 _json["kind"] = kind; 7885 _json["kind"] = kind;
7885 } 7886 }
7886 if (order != null) { 7887 if (order != null) {
7887 _json["order"] = (order).toJson(); 7888 _json["order"] = (order).toJson();
7888 } 7889 }
7889 return _json; 7890 return _json;
7890 } 7891 }
7891 } 7892 }
7892 7893
(...skipping 10 matching lines...) Expand all
7903 7904
7904 OrdersGetTestOrderTemplateResponse.fromJson(core.Map _json) { 7905 OrdersGetTestOrderTemplateResponse.fromJson(core.Map _json) {
7905 if (_json.containsKey("kind")) { 7906 if (_json.containsKey("kind")) {
7906 kind = _json["kind"]; 7907 kind = _json["kind"];
7907 } 7908 }
7908 if (_json.containsKey("template")) { 7909 if (_json.containsKey("template")) {
7909 template = new TestOrder.fromJson(_json["template"]); 7910 template = new TestOrder.fromJson(_json["template"]);
7910 } 7911 }
7911 } 7912 }
7912 7913
7913 core.Map toJson() { 7914 core.Map<core.String, core.Object> toJson() {
7914 var _json = new core.Map(); 7915 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7915 if (kind != null) { 7916 if (kind != null) {
7916 _json["kind"] = kind; 7917 _json["kind"] = kind;
7917 } 7918 }
7918 if (template != null) { 7919 if (template != null) {
7919 _json["template"] = (template).toJson(); 7920 _json["template"] = (template).toJson();
7920 } 7921 }
7921 return _json; 7922 return _json;
7922 } 7923 }
7923 } 7924 }
7924 7925
(...skipping 14 matching lines...) Expand all
7939 kind = _json["kind"]; 7940 kind = _json["kind"];
7940 } 7941 }
7941 if (_json.containsKey("nextPageToken")) { 7942 if (_json.containsKey("nextPageToken")) {
7942 nextPageToken = _json["nextPageToken"]; 7943 nextPageToken = _json["nextPageToken"];
7943 } 7944 }
7944 if (_json.containsKey("resources")) { 7945 if (_json.containsKey("resources")) {
7945 resources = _json["resources"].map((value) => new Order.fromJson(value)).t oList(); 7946 resources = _json["resources"].map((value) => new Order.fromJson(value)).t oList();
7946 } 7947 }
7947 } 7948 }
7948 7949
7949 core.Map toJson() { 7950 core.Map<core.String, core.Object> toJson() {
7950 var _json = new core.Map(); 7951 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7951 if (kind != null) { 7952 if (kind != null) {
7952 _json["kind"] = kind; 7953 _json["kind"] = kind;
7953 } 7954 }
7954 if (nextPageToken != null) { 7955 if (nextPageToken != null) {
7955 _json["nextPageToken"] = nextPageToken; 7956 _json["nextPageToken"] = nextPageToken;
7956 } 7957 }
7957 if (resources != null) { 7958 if (resources != null) {
7958 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 7959 _json["resources"] = resources.map((value) => (value).toJson()).toList();
7959 } 7960 }
7960 return _json; 7961 return _json;
(...skipping 22 matching lines...) Expand all
7983 operationId = _json["operationId"]; 7984 operationId = _json["operationId"];
7984 } 7985 }
7985 if (_json.containsKey("reason")) { 7986 if (_json.containsKey("reason")) {
7986 reason = _json["reason"]; 7987 reason = _json["reason"];
7987 } 7988 }
7988 if (_json.containsKey("reasonText")) { 7989 if (_json.containsKey("reasonText")) {
7989 reasonText = _json["reasonText"]; 7990 reasonText = _json["reasonText"];
7990 } 7991 }
7991 } 7992 }
7992 7993
7993 core.Map toJson() { 7994 core.Map<core.String, core.Object> toJson() {
7994 var _json = new core.Map(); 7995 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7995 if (amount != null) { 7996 if (amount != null) {
7996 _json["amount"] = (amount).toJson(); 7997 _json["amount"] = (amount).toJson();
7997 } 7998 }
7998 if (operationId != null) { 7999 if (operationId != null) {
7999 _json["operationId"] = operationId; 8000 _json["operationId"] = operationId;
8000 } 8001 }
8001 if (reason != null) { 8002 if (reason != null) {
8002 _json["reason"] = reason; 8003 _json["reason"] = reason;
8003 } 8004 }
8004 if (reasonText != null) { 8005 if (reasonText != null) {
(...skipping 16 matching lines...) Expand all
8021 8022
8022 OrdersRefundResponse.fromJson(core.Map _json) { 8023 OrdersRefundResponse.fromJson(core.Map _json) {
8023 if (_json.containsKey("executionStatus")) { 8024 if (_json.containsKey("executionStatus")) {
8024 executionStatus = _json["executionStatus"]; 8025 executionStatus = _json["executionStatus"];
8025 } 8026 }
8026 if (_json.containsKey("kind")) { 8027 if (_json.containsKey("kind")) {
8027 kind = _json["kind"]; 8028 kind = _json["kind"];
8028 } 8029 }
8029 } 8030 }
8030 8031
8031 core.Map toJson() { 8032 core.Map<core.String, core.Object> toJson() {
8032 var _json = new core.Map(); 8033 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8033 if (executionStatus != null) { 8034 if (executionStatus != null) {
8034 _json["executionStatus"] = executionStatus; 8035 _json["executionStatus"] = executionStatus;
8035 } 8036 }
8036 if (kind != null) { 8037 if (kind != null) {
8037 _json["kind"] = kind; 8038 _json["kind"] = kind;
8038 } 8039 }
8039 return _json; 8040 return _json;
8040 } 8041 }
8041 } 8042 }
8042 8043
(...skipping 24 matching lines...) Expand all
8067 quantity = _json["quantity"]; 8068 quantity = _json["quantity"];
8068 } 8069 }
8069 if (_json.containsKey("reason")) { 8070 if (_json.containsKey("reason")) {
8070 reason = _json["reason"]; 8071 reason = _json["reason"];
8071 } 8072 }
8072 if (_json.containsKey("reasonText")) { 8073 if (_json.containsKey("reasonText")) {
8073 reasonText = _json["reasonText"]; 8074 reasonText = _json["reasonText"];
8074 } 8075 }
8075 } 8076 }
8076 8077
8077 core.Map toJson() { 8078 core.Map<core.String, core.Object> toJson() {
8078 var _json = new core.Map(); 8079 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8079 if (lineItemId != null) { 8080 if (lineItemId != null) {
8080 _json["lineItemId"] = lineItemId; 8081 _json["lineItemId"] = lineItemId;
8081 } 8082 }
8082 if (operationId != null) { 8083 if (operationId != null) {
8083 _json["operationId"] = operationId; 8084 _json["operationId"] = operationId;
8084 } 8085 }
8085 if (quantity != null) { 8086 if (quantity != null) {
8086 _json["quantity"] = quantity; 8087 _json["quantity"] = quantity;
8087 } 8088 }
8088 if (reason != null) { 8089 if (reason != null) {
(...skipping 19 matching lines...) Expand all
8108 8109
8109 OrdersReturnLineItemResponse.fromJson(core.Map _json) { 8110 OrdersReturnLineItemResponse.fromJson(core.Map _json) {
8110 if (_json.containsKey("executionStatus")) { 8111 if (_json.containsKey("executionStatus")) {
8111 executionStatus = _json["executionStatus"]; 8112 executionStatus = _json["executionStatus"];
8112 } 8113 }
8113 if (_json.containsKey("kind")) { 8114 if (_json.containsKey("kind")) {
8114 kind = _json["kind"]; 8115 kind = _json["kind"];
8115 } 8116 }
8116 } 8117 }
8117 8118
8118 core.Map toJson() { 8119 core.Map<core.String, core.Object> toJson() {
8119 var _json = new core.Map(); 8120 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8120 if (executionStatus != null) { 8121 if (executionStatus != null) {
8121 _json["executionStatus"] = executionStatus; 8122 _json["executionStatus"] = executionStatus;
8122 } 8123 }
8123 if (kind != null) { 8124 if (kind != null) {
8124 _json["kind"] = kind; 8125 _json["kind"] = kind;
8125 } 8126 }
8126 return _json; 8127 return _json;
8127 } 8128 }
8128 } 8129 }
8129 8130
(...skipping 24 matching lines...) Expand all
8154 operationId = _json["operationId"]; 8155 operationId = _json["operationId"];
8155 } 8156 }
8156 if (_json.containsKey("shipmentId")) { 8157 if (_json.containsKey("shipmentId")) {
8157 shipmentId = _json["shipmentId"]; 8158 shipmentId = _json["shipmentId"];
8158 } 8159 }
8159 if (_json.containsKey("trackingId")) { 8160 if (_json.containsKey("trackingId")) {
8160 trackingId = _json["trackingId"]; 8161 trackingId = _json["trackingId"];
8161 } 8162 }
8162 } 8163 }
8163 8164
8164 core.Map toJson() { 8165 core.Map<core.String, core.Object> toJson() {
8165 var _json = new core.Map(); 8166 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8166 if (carrier != null) { 8167 if (carrier != null) {
8167 _json["carrier"] = carrier; 8168 _json["carrier"] = carrier;
8168 } 8169 }
8169 if (lineItems != null) { 8170 if (lineItems != null) {
8170 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); 8171 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList();
8171 } 8172 }
8172 if (operationId != null) { 8173 if (operationId != null) {
8173 _json["operationId"] = operationId; 8174 _json["operationId"] = operationId;
8174 } 8175 }
8175 if (shipmentId != null) { 8176 if (shipmentId != null) {
(...skipping 19 matching lines...) Expand all
8195 8196
8196 OrdersShipLineItemsResponse.fromJson(core.Map _json) { 8197 OrdersShipLineItemsResponse.fromJson(core.Map _json) {
8197 if (_json.containsKey("executionStatus")) { 8198 if (_json.containsKey("executionStatus")) {
8198 executionStatus = _json["executionStatus"]; 8199 executionStatus = _json["executionStatus"];
8199 } 8200 }
8200 if (_json.containsKey("kind")) { 8201 if (_json.containsKey("kind")) {
8201 kind = _json["kind"]; 8202 kind = _json["kind"];
8202 } 8203 }
8203 } 8204 }
8204 8205
8205 core.Map toJson() { 8206 core.Map<core.String, core.Object> toJson() {
8206 var _json = new core.Map(); 8207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8207 if (executionStatus != null) { 8208 if (executionStatus != null) {
8208 _json["executionStatus"] = executionStatus; 8209 _json["executionStatus"] = executionStatus;
8209 } 8210 }
8210 if (kind != null) { 8211 if (kind != null) {
8211 _json["kind"] = kind; 8212 _json["kind"] = kind;
8212 } 8213 }
8213 return _json; 8214 return _json;
8214 } 8215 }
8215 } 8216 }
8216 8217
(...skipping 12 matching lines...) Expand all
8229 8230
8230 OrdersUpdateMerchantOrderIdRequest.fromJson(core.Map _json) { 8231 OrdersUpdateMerchantOrderIdRequest.fromJson(core.Map _json) {
8231 if (_json.containsKey("merchantOrderId")) { 8232 if (_json.containsKey("merchantOrderId")) {
8232 merchantOrderId = _json["merchantOrderId"]; 8233 merchantOrderId = _json["merchantOrderId"];
8233 } 8234 }
8234 if (_json.containsKey("operationId")) { 8235 if (_json.containsKey("operationId")) {
8235 operationId = _json["operationId"]; 8236 operationId = _json["operationId"];
8236 } 8237 }
8237 } 8238 }
8238 8239
8239 core.Map toJson() { 8240 core.Map<core.String, core.Object> toJson() {
8240 var _json = new core.Map(); 8241 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8241 if (merchantOrderId != null) { 8242 if (merchantOrderId != null) {
8242 _json["merchantOrderId"] = merchantOrderId; 8243 _json["merchantOrderId"] = merchantOrderId;
8243 } 8244 }
8244 if (operationId != null) { 8245 if (operationId != null) {
8245 _json["operationId"] = operationId; 8246 _json["operationId"] = operationId;
8246 } 8247 }
8247 return _json; 8248 return _json;
8248 } 8249 }
8249 } 8250 }
8250 8251
(...skipping 10 matching lines...) Expand all
8261 8262
8262 OrdersUpdateMerchantOrderIdResponse.fromJson(core.Map _json) { 8263 OrdersUpdateMerchantOrderIdResponse.fromJson(core.Map _json) {
8263 if (_json.containsKey("executionStatus")) { 8264 if (_json.containsKey("executionStatus")) {
8264 executionStatus = _json["executionStatus"]; 8265 executionStatus = _json["executionStatus"];
8265 } 8266 }
8266 if (_json.containsKey("kind")) { 8267 if (_json.containsKey("kind")) {
8267 kind = _json["kind"]; 8268 kind = _json["kind"];
8268 } 8269 }
8269 } 8270 }
8270 8271
8271 core.Map toJson() { 8272 core.Map<core.String, core.Object> toJson() {
8272 var _json = new core.Map(); 8273 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8273 if (executionStatus != null) { 8274 if (executionStatus != null) {
8274 _json["executionStatus"] = executionStatus; 8275 _json["executionStatus"] = executionStatus;
8275 } 8276 }
8276 if (kind != null) { 8277 if (kind != null) {
8277 _json["kind"] = kind; 8278 _json["kind"] = kind;
8278 } 8279 }
8279 return _json; 8280 return _json;
8280 } 8281 }
8281 } 8282 }
8282 8283
(...skipping 24 matching lines...) Expand all
8307 shipmentId = _json["shipmentId"]; 8308 shipmentId = _json["shipmentId"];
8308 } 8309 }
8309 if (_json.containsKey("status")) { 8310 if (_json.containsKey("status")) {
8310 status = _json["status"]; 8311 status = _json["status"];
8311 } 8312 }
8312 if (_json.containsKey("trackingId")) { 8313 if (_json.containsKey("trackingId")) {
8313 trackingId = _json["trackingId"]; 8314 trackingId = _json["trackingId"];
8314 } 8315 }
8315 } 8316 }
8316 8317
8317 core.Map toJson() { 8318 core.Map<core.String, core.Object> toJson() {
8318 var _json = new core.Map(); 8319 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8319 if (carrier != null) { 8320 if (carrier != null) {
8320 _json["carrier"] = carrier; 8321 _json["carrier"] = carrier;
8321 } 8322 }
8322 if (operationId != null) { 8323 if (operationId != null) {
8323 _json["operationId"] = operationId; 8324 _json["operationId"] = operationId;
8324 } 8325 }
8325 if (shipmentId != null) { 8326 if (shipmentId != null) {
8326 _json["shipmentId"] = shipmentId; 8327 _json["shipmentId"] = shipmentId;
8327 } 8328 }
8328 if (status != null) { 8329 if (status != null) {
(...skipping 19 matching lines...) Expand all
8348 8349
8349 OrdersUpdateShipmentResponse.fromJson(core.Map _json) { 8350 OrdersUpdateShipmentResponse.fromJson(core.Map _json) {
8350 if (_json.containsKey("executionStatus")) { 8351 if (_json.containsKey("executionStatus")) {
8351 executionStatus = _json["executionStatus"]; 8352 executionStatus = _json["executionStatus"];
8352 } 8353 }
8353 if (_json.containsKey("kind")) { 8354 if (_json.containsKey("kind")) {
8354 kind = _json["kind"]; 8355 kind = _json["kind"];
8355 } 8356 }
8356 } 8357 }
8357 8358
8358 core.Map toJson() { 8359 core.Map<core.String, core.Object> toJson() {
8359 var _json = new core.Map(); 8360 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8360 if (executionStatus != null) { 8361 if (executionStatus != null) {
8361 _json["executionStatus"] = executionStatus; 8362 _json["executionStatus"] = executionStatus;
8362 } 8363 }
8363 if (kind != null) { 8364 if (kind != null) {
8364 _json["kind"] = kind; 8365 _json["kind"] = kind;
8365 } 8366 }
8366 return _json; 8367 return _json;
8367 } 8368 }
8368 } 8369 }
8369 8370
(...skipping 15 matching lines...) Expand all
8385 country = _json["country"]; 8386 country = _json["country"];
8386 } 8387 }
8387 if (_json.containsKey("name")) { 8388 if (_json.containsKey("name")) {
8388 name = _json["name"]; 8389 name = _json["name"];
8389 } 8390 }
8390 if (_json.containsKey("postalCodeRanges")) { 8391 if (_json.containsKey("postalCodeRanges")) {
8391 postalCodeRanges = _json["postalCodeRanges"].map((value) => new PostalCode Range.fromJson(value)).toList(); 8392 postalCodeRanges = _json["postalCodeRanges"].map((value) => new PostalCode Range.fromJson(value)).toList();
8392 } 8393 }
8393 } 8394 }
8394 8395
8395 core.Map toJson() { 8396 core.Map<core.String, core.Object> toJson() {
8396 var _json = new core.Map(); 8397 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8397 if (country != null) { 8398 if (country != null) {
8398 _json["country"] = country; 8399 _json["country"] = country;
8399 } 8400 }
8400 if (name != null) { 8401 if (name != null) {
8401 _json["name"] = name; 8402 _json["name"] = name;
8402 } 8403 }
8403 if (postalCodeRanges != null) { 8404 if (postalCodeRanges != null) {
8404 _json["postalCodeRanges"] = postalCodeRanges.map((value) => (value).toJson ()).toList(); 8405 _json["postalCodeRanges"] = postalCodeRanges.map((value) => (value).toJson ()).toList();
8405 } 8406 }
8406 return _json; 8407 return _json;
(...skipping 22 matching lines...) Expand all
8429 8430
8430 PostalCodeRange.fromJson(core.Map _json) { 8431 PostalCodeRange.fromJson(core.Map _json) {
8431 if (_json.containsKey("postalCodeRangeBegin")) { 8432 if (_json.containsKey("postalCodeRangeBegin")) {
8432 postalCodeRangeBegin = _json["postalCodeRangeBegin"]; 8433 postalCodeRangeBegin = _json["postalCodeRangeBegin"];
8433 } 8434 }
8434 if (_json.containsKey("postalCodeRangeEnd")) { 8435 if (_json.containsKey("postalCodeRangeEnd")) {
8435 postalCodeRangeEnd = _json["postalCodeRangeEnd"]; 8436 postalCodeRangeEnd = _json["postalCodeRangeEnd"];
8436 } 8437 }
8437 } 8438 }
8438 8439
8439 core.Map toJson() { 8440 core.Map<core.String, core.Object> toJson() {
8440 var _json = new core.Map(); 8441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8441 if (postalCodeRangeBegin != null) { 8442 if (postalCodeRangeBegin != null) {
8442 _json["postalCodeRangeBegin"] = postalCodeRangeBegin; 8443 _json["postalCodeRangeBegin"] = postalCodeRangeBegin;
8443 } 8444 }
8444 if (postalCodeRangeEnd != null) { 8445 if (postalCodeRangeEnd != null) {
8445 _json["postalCodeRangeEnd"] = postalCodeRangeEnd; 8446 _json["postalCodeRangeEnd"] = postalCodeRangeEnd;
8446 } 8447 }
8447 return _json; 8448 return _json;
8448 } 8449 }
8449 } 8450 }
8450 8451
8451 class Price { 8452 class Price {
8452 /** The currency of the price. */ 8453 /** The currency of the price. */
8453 core.String currency; 8454 core.String currency;
8454 /** The price represented as a number. */ 8455 /** The price represented as a number. */
8455 core.String value; 8456 core.String value;
8456 8457
8457 Price(); 8458 Price();
8458 8459
8459 Price.fromJson(core.Map _json) { 8460 Price.fromJson(core.Map _json) {
8460 if (_json.containsKey("currency")) { 8461 if (_json.containsKey("currency")) {
8461 currency = _json["currency"]; 8462 currency = _json["currency"];
8462 } 8463 }
8463 if (_json.containsKey("value")) { 8464 if (_json.containsKey("value")) {
8464 value = _json["value"]; 8465 value = _json["value"];
8465 } 8466 }
8466 } 8467 }
8467 8468
8468 core.Map toJson() { 8469 core.Map<core.String, core.Object> toJson() {
8469 var _json = new core.Map(); 8470 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8470 if (currency != null) { 8471 if (currency != null) {
8471 _json["currency"] = currency; 8472 _json["currency"] = currency;
8472 } 8473 }
8473 if (value != null) { 8474 if (value != null) {
8474 _json["value"] = value; 8475 _json["value"] = value;
8475 } 8476 }
8476 return _json; 8477 return _json;
8477 } 8478 }
8478 } 8479 }
8479 8480
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
8596 */ 8597 */
8597 core.String kind; 8598 core.String kind;
8598 /** URL directly linking to your item's page on your website. */ 8599 /** URL directly linking to your item's page on your website. */
8599 core.String link; 8600 core.String link;
8600 /** 8601 /**
8601 * Loyalty points that users receive after purchasing the item. Japan only. 8602 * Loyalty points that users receive after purchasing the item. Japan only.
8602 */ 8603 */
8603 LoyaltyPoints loyaltyPoints; 8604 LoyaltyPoints loyaltyPoints;
8604 /** The material of which the item is made. */ 8605 /** The material of which the item is made. */
8605 core.String material; 8606 core.String material;
8607 /** Maximal product handling time (in business days). */
8608 core.String maxHandlingTime;
8609 /** Minimal product handling time (in business days). */
8610 core.String minHandlingTime;
8606 /** Link to a mobile-optimized version of the landing page. */ 8611 /** Link to a mobile-optimized version of the landing page. */
8607 core.String mobileLink; 8612 core.String mobileLink;
8608 /** Manufacturer Part Number (MPN) of the item. */ 8613 /** Manufacturer Part Number (MPN) of the item. */
8609 core.String mpn; 8614 core.String mpn;
8610 /** The number of identical products in a merchant-defined multipack. */ 8615 /** The number of identical products in a merchant-defined multipack. */
8611 core.String multipack; 8616 core.String multipack;
8612 /** 8617 /**
8613 * An identifier of the item. Leading and trailing whitespaces are stripped 8618 * An identifier of the item. Leading and trailing whitespaces are stripped
8614 * and multiple whitespaces are replaced by a single whitespace upon 8619 * and multiple whitespaces are replaced by a single whitespace upon
8615 * submission. Only valid unicode characters are accepted. See the products 8620 * submission. Only valid unicode characters are accepted. See the products
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
8801 } 8806 }
8802 if (_json.containsKey("link")) { 8807 if (_json.containsKey("link")) {
8803 link = _json["link"]; 8808 link = _json["link"];
8804 } 8809 }
8805 if (_json.containsKey("loyaltyPoints")) { 8810 if (_json.containsKey("loyaltyPoints")) {
8806 loyaltyPoints = new LoyaltyPoints.fromJson(_json["loyaltyPoints"]); 8811 loyaltyPoints = new LoyaltyPoints.fromJson(_json["loyaltyPoints"]);
8807 } 8812 }
8808 if (_json.containsKey("material")) { 8813 if (_json.containsKey("material")) {
8809 material = _json["material"]; 8814 material = _json["material"];
8810 } 8815 }
8816 if (_json.containsKey("maxHandlingTime")) {
8817 maxHandlingTime = _json["maxHandlingTime"];
8818 }
8819 if (_json.containsKey("minHandlingTime")) {
8820 minHandlingTime = _json["minHandlingTime"];
8821 }
8811 if (_json.containsKey("mobileLink")) { 8822 if (_json.containsKey("mobileLink")) {
8812 mobileLink = _json["mobileLink"]; 8823 mobileLink = _json["mobileLink"];
8813 } 8824 }
8814 if (_json.containsKey("mpn")) { 8825 if (_json.containsKey("mpn")) {
8815 mpn = _json["mpn"]; 8826 mpn = _json["mpn"];
8816 } 8827 }
8817 if (_json.containsKey("multipack")) { 8828 if (_json.containsKey("multipack")) {
8818 multipack = _json["multipack"]; 8829 multipack = _json["multipack"];
8819 } 8830 }
8820 if (_json.containsKey("offerId")) { 8831 if (_json.containsKey("offerId")) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
8887 unitPricingMeasure = new ProductUnitPricingMeasure.fromJson(_json["unitPri cingMeasure"]); 8898 unitPricingMeasure = new ProductUnitPricingMeasure.fromJson(_json["unitPri cingMeasure"]);
8888 } 8899 }
8889 if (_json.containsKey("validatedDestinations")) { 8900 if (_json.containsKey("validatedDestinations")) {
8890 validatedDestinations = _json["validatedDestinations"]; 8901 validatedDestinations = _json["validatedDestinations"];
8891 } 8902 }
8892 if (_json.containsKey("warnings")) { 8903 if (_json.containsKey("warnings")) {
8893 warnings = _json["warnings"].map((value) => new Error.fromJson(value)).toL ist(); 8904 warnings = _json["warnings"].map((value) => new Error.fromJson(value)).toL ist();
8894 } 8905 }
8895 } 8906 }
8896 8907
8897 core.Map toJson() { 8908 core.Map<core.String, core.Object> toJson() {
8898 var _json = new core.Map(); 8909 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
8899 if (additionalImageLinks != null) { 8910 if (additionalImageLinks != null) {
8900 _json["additionalImageLinks"] = additionalImageLinks; 8911 _json["additionalImageLinks"] = additionalImageLinks;
8901 } 8912 }
8902 if (additionalProductTypes != null) { 8913 if (additionalProductTypes != null) {
8903 _json["additionalProductTypes"] = additionalProductTypes; 8914 _json["additionalProductTypes"] = additionalProductTypes;
8904 } 8915 }
8905 if (adult != null) { 8916 if (adult != null) {
8906 _json["adult"] = adult; 8917 _json["adult"] = adult;
8907 } 8918 }
8908 if (adwordsGrouping != null) { 8919 if (adwordsGrouping != null) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
9021 } 9032 }
9022 if (link != null) { 9033 if (link != null) {
9023 _json["link"] = link; 9034 _json["link"] = link;
9024 } 9035 }
9025 if (loyaltyPoints != null) { 9036 if (loyaltyPoints != null) {
9026 _json["loyaltyPoints"] = (loyaltyPoints).toJson(); 9037 _json["loyaltyPoints"] = (loyaltyPoints).toJson();
9027 } 9038 }
9028 if (material != null) { 9039 if (material != null) {
9029 _json["material"] = material; 9040 _json["material"] = material;
9030 } 9041 }
9042 if (maxHandlingTime != null) {
9043 _json["maxHandlingTime"] = maxHandlingTime;
9044 }
9045 if (minHandlingTime != null) {
9046 _json["minHandlingTime"] = minHandlingTime;
9047 }
9031 if (mobileLink != null) { 9048 if (mobileLink != null) {
9032 _json["mobileLink"] = mobileLink; 9049 _json["mobileLink"] = mobileLink;
9033 } 9050 }
9034 if (mpn != null) { 9051 if (mpn != null) {
9035 _json["mpn"] = mpn; 9052 _json["mpn"] = mpn;
9036 } 9053 }
9037 if (multipack != null) { 9054 if (multipack != null) {
9038 _json["multipack"] = multipack; 9055 _json["multipack"] = multipack;
9039 } 9056 }
9040 if (offerId != null) { 9057 if (offerId != null) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
9131 aspectName = _json["aspectName"]; 9148 aspectName = _json["aspectName"];
9132 } 9149 }
9133 if (_json.containsKey("destinationName")) { 9150 if (_json.containsKey("destinationName")) {
9134 destinationName = _json["destinationName"]; 9151 destinationName = _json["destinationName"];
9135 } 9152 }
9136 if (_json.containsKey("intention")) { 9153 if (_json.containsKey("intention")) {
9137 intention = _json["intention"]; 9154 intention = _json["intention"];
9138 } 9155 }
9139 } 9156 }
9140 9157
9141 core.Map toJson() { 9158 core.Map<core.String, core.Object> toJson() {
9142 var _json = new core.Map(); 9159 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9143 if (aspectName != null) { 9160 if (aspectName != null) {
9144 _json["aspectName"] = aspectName; 9161 _json["aspectName"] = aspectName;
9145 } 9162 }
9146 if (destinationName != null) { 9163 if (destinationName != null) {
9147 _json["destinationName"] = destinationName; 9164 _json["destinationName"] = destinationName;
9148 } 9165 }
9149 if (intention != null) { 9166 if (intention != null) {
9150 _json["intention"] = intention; 9167 _json["intention"] = intention;
9151 } 9168 }
9152 return _json; 9169 return _json;
(...skipping 26 matching lines...) Expand all
9179 type = _json["type"]; 9196 type = _json["type"];
9180 } 9197 }
9181 if (_json.containsKey("unit")) { 9198 if (_json.containsKey("unit")) {
9182 unit = _json["unit"]; 9199 unit = _json["unit"];
9183 } 9200 }
9184 if (_json.containsKey("value")) { 9201 if (_json.containsKey("value")) {
9185 value = _json["value"]; 9202 value = _json["value"];
9186 } 9203 }
9187 } 9204 }
9188 9205
9189 core.Map toJson() { 9206 core.Map<core.String, core.Object> toJson() {
9190 var _json = new core.Map(); 9207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9191 if (name != null) { 9208 if (name != null) {
9192 _json["name"] = name; 9209 _json["name"] = name;
9193 } 9210 }
9194 if (type != null) { 9211 if (type != null) {
9195 _json["type"] = type; 9212 _json["type"] = type;
9196 } 9213 }
9197 if (unit != null) { 9214 if (unit != null) {
9198 _json["unit"] = unit; 9215 _json["unit"] = unit;
9199 } 9216 }
9200 if (value != null) { 9217 if (value != null) {
(...skipping 16 matching lines...) Expand all
9217 9234
9218 ProductCustomGroup.fromJson(core.Map _json) { 9235 ProductCustomGroup.fromJson(core.Map _json) {
9219 if (_json.containsKey("attributes")) { 9236 if (_json.containsKey("attributes")) {
9220 attributes = _json["attributes"].map((value) => new ProductCustomAttribute .fromJson(value)).toList(); 9237 attributes = _json["attributes"].map((value) => new ProductCustomAttribute .fromJson(value)).toList();
9221 } 9238 }
9222 if (_json.containsKey("name")) { 9239 if (_json.containsKey("name")) {
9223 name = _json["name"]; 9240 name = _json["name"];
9224 } 9241 }
9225 } 9242 }
9226 9243
9227 core.Map toJson() { 9244 core.Map<core.String, core.Object> toJson() {
9228 var _json = new core.Map(); 9245 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9229 if (attributes != null) { 9246 if (attributes != null) {
9230 _json["attributes"] = attributes.map((value) => (value).toJson()).toList() ; 9247 _json["attributes"] = attributes.map((value) => (value).toJson()).toList() ;
9231 } 9248 }
9232 if (name != null) { 9249 if (name != null) {
9233 _json["name"] = name; 9250 _json["name"] = name;
9234 } 9251 }
9235 return _json; 9252 return _json;
9236 } 9253 }
9237 } 9254 }
9238 9255
9239 class ProductDestination { 9256 class ProductDestination {
9240 /** The name of the destination. */ 9257 /** The name of the destination. */
9241 core.String destinationName; 9258 core.String destinationName;
9242 /** Whether the destination is required, excluded or should be validated. */ 9259 /** Whether the destination is required, excluded or should be validated. */
9243 core.String intention; 9260 core.String intention;
9244 9261
9245 ProductDestination(); 9262 ProductDestination();
9246 9263
9247 ProductDestination.fromJson(core.Map _json) { 9264 ProductDestination.fromJson(core.Map _json) {
9248 if (_json.containsKey("destinationName")) { 9265 if (_json.containsKey("destinationName")) {
9249 destinationName = _json["destinationName"]; 9266 destinationName = _json["destinationName"];
9250 } 9267 }
9251 if (_json.containsKey("intention")) { 9268 if (_json.containsKey("intention")) {
9252 intention = _json["intention"]; 9269 intention = _json["intention"];
9253 } 9270 }
9254 } 9271 }
9255 9272
9256 core.Map toJson() { 9273 core.Map<core.String, core.Object> toJson() {
9257 var _json = new core.Map(); 9274 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9258 if (destinationName != null) { 9275 if (destinationName != null) {
9259 _json["destinationName"] = destinationName; 9276 _json["destinationName"] = destinationName;
9260 } 9277 }
9261 if (intention != null) { 9278 if (intention != null) {
9262 _json["intention"] = intention; 9279 _json["intention"] = intention;
9263 } 9280 }
9264 return _json; 9281 return _json;
9265 } 9282 }
9266 } 9283 }
9267 9284
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
9312 price = new Price.fromJson(_json["price"]); 9329 price = new Price.fromJson(_json["price"]);
9313 } 9330 }
9314 if (_json.containsKey("region")) { 9331 if (_json.containsKey("region")) {
9315 region = _json["region"]; 9332 region = _json["region"];
9316 } 9333 }
9317 if (_json.containsKey("service")) { 9334 if (_json.containsKey("service")) {
9318 service = _json["service"]; 9335 service = _json["service"];
9319 } 9336 }
9320 } 9337 }
9321 9338
9322 core.Map toJson() { 9339 core.Map<core.String, core.Object> toJson() {
9323 var _json = new core.Map(); 9340 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9324 if (country != null) { 9341 if (country != null) {
9325 _json["country"] = country; 9342 _json["country"] = country;
9326 } 9343 }
9327 if (locationGroupName != null) { 9344 if (locationGroupName != null) {
9328 _json["locationGroupName"] = locationGroupName; 9345 _json["locationGroupName"] = locationGroupName;
9329 } 9346 }
9330 if (locationId != null) { 9347 if (locationId != null) {
9331 _json["locationId"] = locationId; 9348 _json["locationId"] = locationId;
9332 } 9349 }
9333 if (postalCode != null) { 9350 if (postalCode != null) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
9365 9382
9366 ProductShippingDimension.fromJson(core.Map _json) { 9383 ProductShippingDimension.fromJson(core.Map _json) {
9367 if (_json.containsKey("unit")) { 9384 if (_json.containsKey("unit")) {
9368 unit = _json["unit"]; 9385 unit = _json["unit"];
9369 } 9386 }
9370 if (_json.containsKey("value")) { 9387 if (_json.containsKey("value")) {
9371 value = _json["value"]; 9388 value = _json["value"];
9372 } 9389 }
9373 } 9390 }
9374 9391
9375 core.Map toJson() { 9392 core.Map<core.String, core.Object> toJson() {
9376 var _json = new core.Map(); 9393 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9377 if (unit != null) { 9394 if (unit != null) {
9378 _json["unit"] = unit; 9395 _json["unit"] = unit;
9379 } 9396 }
9380 if (value != null) { 9397 if (value != null) {
9381 _json["value"] = value; 9398 _json["value"] = value;
9382 } 9399 }
9383 return _json; 9400 return _json;
9384 } 9401 }
9385 } 9402 }
9386 9403
9387 class ProductShippingWeight { 9404 class ProductShippingWeight {
9388 /** The unit of value. */ 9405 /** The unit of value. */
9389 core.String unit; 9406 core.String unit;
9390 /** 9407 /**
9391 * The weight of the product used to calculate the shipping cost of the item. 9408 * The weight of the product used to calculate the shipping cost of the item.
9392 */ 9409 */
9393 core.double value; 9410 core.double value;
9394 9411
9395 ProductShippingWeight(); 9412 ProductShippingWeight();
9396 9413
9397 ProductShippingWeight.fromJson(core.Map _json) { 9414 ProductShippingWeight.fromJson(core.Map _json) {
9398 if (_json.containsKey("unit")) { 9415 if (_json.containsKey("unit")) {
9399 unit = _json["unit"]; 9416 unit = _json["unit"];
9400 } 9417 }
9401 if (_json.containsKey("value")) { 9418 if (_json.containsKey("value")) {
9402 value = _json["value"]; 9419 value = _json["value"];
9403 } 9420 }
9404 } 9421 }
9405 9422
9406 core.Map toJson() { 9423 core.Map<core.String, core.Object> toJson() {
9407 var _json = new core.Map(); 9424 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9408 if (unit != null) { 9425 if (unit != null) {
9409 _json["unit"] = unit; 9426 _json["unit"] = unit;
9410 } 9427 }
9411 if (value != null) { 9428 if (value != null) {
9412 _json["value"] = value; 9429 _json["value"] = value;
9413 } 9430 }
9414 return _json; 9431 return _json;
9415 } 9432 }
9416 } 9433 }
9417 9434
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
9467 link = _json["link"]; 9484 link = _json["link"];
9468 } 9485 }
9469 if (_json.containsKey("productId")) { 9486 if (_json.containsKey("productId")) {
9470 productId = _json["productId"]; 9487 productId = _json["productId"];
9471 } 9488 }
9472 if (_json.containsKey("title")) { 9489 if (_json.containsKey("title")) {
9473 title = _json["title"]; 9490 title = _json["title"];
9474 } 9491 }
9475 } 9492 }
9476 9493
9477 core.Map toJson() { 9494 core.Map<core.String, core.Object> toJson() {
9478 var _json = new core.Map(); 9495 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9479 if (creationDate != null) { 9496 if (creationDate != null) {
9480 _json["creationDate"] = creationDate; 9497 _json["creationDate"] = creationDate;
9481 } 9498 }
9482 if (dataQualityIssues != null) { 9499 if (dataQualityIssues != null) {
9483 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs on()).toList(); 9500 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs on()).toList();
9484 } 9501 }
9485 if (destinationStatuses != null) { 9502 if (destinationStatuses != null) {
9486 _json["destinationStatuses"] = destinationStatuses.map((value) => (value). toJson()).toList(); 9503 _json["destinationStatuses"] = destinationStatuses.map((value) => (value). toJson()).toList();
9487 } 9504 }
9488 if (googleExpirationDate != null) { 9505 if (googleExpirationDate != null) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
9547 timestamp = _json["timestamp"]; 9564 timestamp = _json["timestamp"];
9548 } 9565 }
9549 if (_json.containsKey("valueOnLandingPage")) { 9566 if (_json.containsKey("valueOnLandingPage")) {
9550 valueOnLandingPage = _json["valueOnLandingPage"]; 9567 valueOnLandingPage = _json["valueOnLandingPage"];
9551 } 9568 }
9552 if (_json.containsKey("valueProvided")) { 9569 if (_json.containsKey("valueProvided")) {
9553 valueProvided = _json["valueProvided"]; 9570 valueProvided = _json["valueProvided"];
9554 } 9571 }
9555 } 9572 }
9556 9573
9557 core.Map toJson() { 9574 core.Map<core.String, core.Object> toJson() {
9558 var _json = new core.Map(); 9575 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9559 if (detail != null) { 9576 if (detail != null) {
9560 _json["detail"] = detail; 9577 _json["detail"] = detail;
9561 } 9578 }
9562 if (fetchStatus != null) { 9579 if (fetchStatus != null) {
9563 _json["fetchStatus"] = fetchStatus; 9580 _json["fetchStatus"] = fetchStatus;
9564 } 9581 }
9565 if (id != null) { 9582 if (id != null) {
9566 _json["id"] = id; 9583 _json["id"] = id;
9567 } 9584 }
9568 if (location != null) { 9585 if (location != null) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
9602 approvalStatus = _json["approvalStatus"]; 9619 approvalStatus = _json["approvalStatus"];
9603 } 9620 }
9604 if (_json.containsKey("destination")) { 9621 if (_json.containsKey("destination")) {
9605 destination = _json["destination"]; 9622 destination = _json["destination"];
9606 } 9623 }
9607 if (_json.containsKey("intention")) { 9624 if (_json.containsKey("intention")) {
9608 intention = _json["intention"]; 9625 intention = _json["intention"];
9609 } 9626 }
9610 } 9627 }
9611 9628
9612 core.Map toJson() { 9629 core.Map<core.String, core.Object> toJson() {
9613 var _json = new core.Map(); 9630 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9614 if (approvalStatus != null) { 9631 if (approvalStatus != null) {
9615 _json["approvalStatus"] = approvalStatus; 9632 _json["approvalStatus"] = approvalStatus;
9616 } 9633 }
9617 if (destination != null) { 9634 if (destination != null) {
9618 _json["destination"] = destination; 9635 _json["destination"] = destination;
9619 } 9636 }
9620 if (intention != null) { 9637 if (intention != null) {
9621 _json["intention"] = intention; 9638 _json["intention"] = intention;
9622 } 9639 }
9623 return _json; 9640 return _json;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
9665 rate = _json["rate"]; 9682 rate = _json["rate"];
9666 } 9683 }
9667 if (_json.containsKey("region")) { 9684 if (_json.containsKey("region")) {
9668 region = _json["region"]; 9685 region = _json["region"];
9669 } 9686 }
9670 if (_json.containsKey("taxShip")) { 9687 if (_json.containsKey("taxShip")) {
9671 taxShip = _json["taxShip"]; 9688 taxShip = _json["taxShip"];
9672 } 9689 }
9673 } 9690 }
9674 9691
9675 core.Map toJson() { 9692 core.Map<core.String, core.Object> toJson() {
9676 var _json = new core.Map(); 9693 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9677 if (country != null) { 9694 if (country != null) {
9678 _json["country"] = country; 9695 _json["country"] = country;
9679 } 9696 }
9680 if (locationId != null) { 9697 if (locationId != null) {
9681 _json["locationId"] = locationId; 9698 _json["locationId"] = locationId;
9682 } 9699 }
9683 if (postalCode != null) { 9700 if (postalCode != null) {
9684 _json["postalCode"] = postalCode; 9701 _json["postalCode"] = postalCode;
9685 } 9702 }
9686 if (rate != null) { 9703 if (rate != null) {
(...skipping 19 matching lines...) Expand all
9706 9723
9707 ProductUnitPricingBaseMeasure.fromJson(core.Map _json) { 9724 ProductUnitPricingBaseMeasure.fromJson(core.Map _json) {
9708 if (_json.containsKey("unit")) { 9725 if (_json.containsKey("unit")) {
9709 unit = _json["unit"]; 9726 unit = _json["unit"];
9710 } 9727 }
9711 if (_json.containsKey("value")) { 9728 if (_json.containsKey("value")) {
9712 value = _json["value"]; 9729 value = _json["value"];
9713 } 9730 }
9714 } 9731 }
9715 9732
9716 core.Map toJson() { 9733 core.Map<core.String, core.Object> toJson() {
9717 var _json = new core.Map(); 9734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9718 if (unit != null) { 9735 if (unit != null) {
9719 _json["unit"] = unit; 9736 _json["unit"] = unit;
9720 } 9737 }
9721 if (value != null) { 9738 if (value != null) {
9722 _json["value"] = value; 9739 _json["value"] = value;
9723 } 9740 }
9724 return _json; 9741 return _json;
9725 } 9742 }
9726 } 9743 }
9727 9744
9728 class ProductUnitPricingMeasure { 9745 class ProductUnitPricingMeasure {
9729 /** The unit of the measure. */ 9746 /** The unit of the measure. */
9730 core.String unit; 9747 core.String unit;
9731 /** The measure of an item. */ 9748 /** The measure of an item. */
9732 core.double value; 9749 core.double value;
9733 9750
9734 ProductUnitPricingMeasure(); 9751 ProductUnitPricingMeasure();
9735 9752
9736 ProductUnitPricingMeasure.fromJson(core.Map _json) { 9753 ProductUnitPricingMeasure.fromJson(core.Map _json) {
9737 if (_json.containsKey("unit")) { 9754 if (_json.containsKey("unit")) {
9738 unit = _json["unit"]; 9755 unit = _json["unit"];
9739 } 9756 }
9740 if (_json.containsKey("value")) { 9757 if (_json.containsKey("value")) {
9741 value = _json["value"]; 9758 value = _json["value"];
9742 } 9759 }
9743 } 9760 }
9744 9761
9745 core.Map toJson() { 9762 core.Map<core.String, core.Object> toJson() {
9746 var _json = new core.Map(); 9763 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9747 if (unit != null) { 9764 if (unit != null) {
9748 _json["unit"] = unit; 9765 _json["unit"] = unit;
9749 } 9766 }
9750 if (value != null) { 9767 if (value != null) {
9751 _json["value"] = value; 9768 _json["value"] = value;
9752 } 9769 }
9753 return _json; 9770 return _json;
9754 } 9771 }
9755 } 9772 }
9756 9773
9757 class ProductsCustomBatchRequest { 9774 class ProductsCustomBatchRequest {
9758 /** The request entries to be processed in the batch. */ 9775 /** The request entries to be processed in the batch. */
9759 core.List<ProductsCustomBatchRequestEntry> entries; 9776 core.List<ProductsCustomBatchRequestEntry> entries;
9760 9777
9761 ProductsCustomBatchRequest(); 9778 ProductsCustomBatchRequest();
9762 9779
9763 ProductsCustomBatchRequest.fromJson(core.Map _json) { 9780 ProductsCustomBatchRequest.fromJson(core.Map _json) {
9764 if (_json.containsKey("entries")) { 9781 if (_json.containsKey("entries")) {
9765 entries = _json["entries"].map((value) => new ProductsCustomBatchRequestEn try.fromJson(value)).toList(); 9782 entries = _json["entries"].map((value) => new ProductsCustomBatchRequestEn try.fromJson(value)).toList();
9766 } 9783 }
9767 } 9784 }
9768 9785
9769 core.Map toJson() { 9786 core.Map<core.String, core.Object> toJson() {
9770 var _json = new core.Map(); 9787 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9771 if (entries != null) { 9788 if (entries != null) {
9772 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 9789 _json["entries"] = entries.map((value) => (value).toJson()).toList();
9773 } 9790 }
9774 return _json; 9791 return _json;
9775 } 9792 }
9776 } 9793 }
9777 9794
9778 /** A batch entry encoding a single non-batch products request. */ 9795 /** A batch entry encoding a single non-batch products request. */
9779 class ProductsCustomBatchRequestEntry { 9796 class ProductsCustomBatchRequestEntry {
9780 /** An entry ID, unique within the batch request. */ 9797 /** An entry ID, unique within the batch request. */
(...skipping 22 matching lines...) Expand all
9803 method = _json["method"]; 9820 method = _json["method"];
9804 } 9821 }
9805 if (_json.containsKey("product")) { 9822 if (_json.containsKey("product")) {
9806 product = new Product.fromJson(_json["product"]); 9823 product = new Product.fromJson(_json["product"]);
9807 } 9824 }
9808 if (_json.containsKey("productId")) { 9825 if (_json.containsKey("productId")) {
9809 productId = _json["productId"]; 9826 productId = _json["productId"];
9810 } 9827 }
9811 } 9828 }
9812 9829
9813 core.Map toJson() { 9830 core.Map<core.String, core.Object> toJson() {
9814 var _json = new core.Map(); 9831 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9815 if (batchId != null) { 9832 if (batchId != null) {
9816 _json["batchId"] = batchId; 9833 _json["batchId"] = batchId;
9817 } 9834 }
9818 if (merchantId != null) { 9835 if (merchantId != null) {
9819 _json["merchantId"] = merchantId; 9836 _json["merchantId"] = merchantId;
9820 } 9837 }
9821 if (method != null) { 9838 if (method != null) {
9822 _json["method"] = method; 9839 _json["method"] = method;
9823 } 9840 }
9824 if (product != null) { 9841 if (product != null) {
(...skipping 19 matching lines...) Expand all
9844 9861
9845 ProductsCustomBatchResponse.fromJson(core.Map _json) { 9862 ProductsCustomBatchResponse.fromJson(core.Map _json) {
9846 if (_json.containsKey("entries")) { 9863 if (_json.containsKey("entries")) {
9847 entries = _json["entries"].map((value) => new ProductsCustomBatchResponseE ntry.fromJson(value)).toList(); 9864 entries = _json["entries"].map((value) => new ProductsCustomBatchResponseE ntry.fromJson(value)).toList();
9848 } 9865 }
9849 if (_json.containsKey("kind")) { 9866 if (_json.containsKey("kind")) {
9850 kind = _json["kind"]; 9867 kind = _json["kind"];
9851 } 9868 }
9852 } 9869 }
9853 9870
9854 core.Map toJson() { 9871 core.Map<core.String, core.Object> toJson() {
9855 var _json = new core.Map(); 9872 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9856 if (entries != null) { 9873 if (entries != null) {
9857 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 9874 _json["entries"] = entries.map((value) => (value).toJson()).toList();
9858 } 9875 }
9859 if (kind != null) { 9876 if (kind != null) {
9860 _json["kind"] = kind; 9877 _json["kind"] = kind;
9861 } 9878 }
9862 return _json; 9879 return _json;
9863 } 9880 }
9864 } 9881 }
9865 9882
(...skipping 24 matching lines...) Expand all
9890 errors = new Errors.fromJson(_json["errors"]); 9907 errors = new Errors.fromJson(_json["errors"]);
9891 } 9908 }
9892 if (_json.containsKey("kind")) { 9909 if (_json.containsKey("kind")) {
9893 kind = _json["kind"]; 9910 kind = _json["kind"];
9894 } 9911 }
9895 if (_json.containsKey("product")) { 9912 if (_json.containsKey("product")) {
9896 product = new Product.fromJson(_json["product"]); 9913 product = new Product.fromJson(_json["product"]);
9897 } 9914 }
9898 } 9915 }
9899 9916
9900 core.Map toJson() { 9917 core.Map<core.String, core.Object> toJson() {
9901 var _json = new core.Map(); 9918 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9902 if (batchId != null) { 9919 if (batchId != null) {
9903 _json["batchId"] = batchId; 9920 _json["batchId"] = batchId;
9904 } 9921 }
9905 if (errors != null) { 9922 if (errors != null) {
9906 _json["errors"] = (errors).toJson(); 9923 _json["errors"] = (errors).toJson();
9907 } 9924 }
9908 if (kind != null) { 9925 if (kind != null) {
9909 _json["kind"] = kind; 9926 _json["kind"] = kind;
9910 } 9927 }
9911 if (product != null) { 9928 if (product != null) {
(...skipping 20 matching lines...) Expand all
9932 kind = _json["kind"]; 9949 kind = _json["kind"];
9933 } 9950 }
9934 if (_json.containsKey("nextPageToken")) { 9951 if (_json.containsKey("nextPageToken")) {
9935 nextPageToken = _json["nextPageToken"]; 9952 nextPageToken = _json["nextPageToken"];
9936 } 9953 }
9937 if (_json.containsKey("resources")) { 9954 if (_json.containsKey("resources")) {
9938 resources = _json["resources"].map((value) => new Product.fromJson(value)) .toList(); 9955 resources = _json["resources"].map((value) => new Product.fromJson(value)) .toList();
9939 } 9956 }
9940 } 9957 }
9941 9958
9942 core.Map toJson() { 9959 core.Map<core.String, core.Object> toJson() {
9943 var _json = new core.Map(); 9960 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9944 if (kind != null) { 9961 if (kind != null) {
9945 _json["kind"] = kind; 9962 _json["kind"] = kind;
9946 } 9963 }
9947 if (nextPageToken != null) { 9964 if (nextPageToken != null) {
9948 _json["nextPageToken"] = nextPageToken; 9965 _json["nextPageToken"] = nextPageToken;
9949 } 9966 }
9950 if (resources != null) { 9967 if (resources != null) {
9951 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 9968 _json["resources"] = resources.map((value) => (value).toJson()).toList();
9952 } 9969 }
9953 return _json; 9970 return _json;
9954 } 9971 }
9955 } 9972 }
9956 9973
9957 class ProductstatusesCustomBatchRequest { 9974 class ProductstatusesCustomBatchRequest {
9958 /** The request entries to be processed in the batch. */ 9975 /** The request entries to be processed in the batch. */
9959 core.List<ProductstatusesCustomBatchRequestEntry> entries; 9976 core.List<ProductstatusesCustomBatchRequestEntry> entries;
9960 9977
9961 ProductstatusesCustomBatchRequest(); 9978 ProductstatusesCustomBatchRequest();
9962 9979
9963 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) { 9980 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) {
9964 if (_json.containsKey("entries")) { 9981 if (_json.containsKey("entries")) {
9965 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe questEntry.fromJson(value)).toList(); 9982 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe questEntry.fromJson(value)).toList();
9966 } 9983 }
9967 } 9984 }
9968 9985
9969 core.Map toJson() { 9986 core.Map<core.String, core.Object> toJson() {
9970 var _json = new core.Map(); 9987 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
9971 if (entries != null) { 9988 if (entries != null) {
9972 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 9989 _json["entries"] = entries.map((value) => (value).toJson()).toList();
9973 } 9990 }
9974 return _json; 9991 return _json;
9975 } 9992 }
9976 } 9993 }
9977 9994
9978 /** A batch entry encoding a single non-batch productstatuses request. */ 9995 /** A batch entry encoding a single non-batch productstatuses request. */
9979 class ProductstatusesCustomBatchRequestEntry { 9996 class ProductstatusesCustomBatchRequestEntry {
9980 /** An entry ID, unique within the batch request. */ 9997 /** An entry ID, unique within the batch request. */
(...skipping 14 matching lines...) Expand all
9995 merchantId = _json["merchantId"]; 10012 merchantId = _json["merchantId"];
9996 } 10013 }
9997 if (_json.containsKey("method")) { 10014 if (_json.containsKey("method")) {
9998 method = _json["method"]; 10015 method = _json["method"];
9999 } 10016 }
10000 if (_json.containsKey("productId")) { 10017 if (_json.containsKey("productId")) {
10001 productId = _json["productId"]; 10018 productId = _json["productId"];
10002 } 10019 }
10003 } 10020 }
10004 10021
10005 core.Map toJson() { 10022 core.Map<core.String, core.Object> toJson() {
10006 var _json = new core.Map(); 10023 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10007 if (batchId != null) { 10024 if (batchId != null) {
10008 _json["batchId"] = batchId; 10025 _json["batchId"] = batchId;
10009 } 10026 }
10010 if (merchantId != null) { 10027 if (merchantId != null) {
10011 _json["merchantId"] = merchantId; 10028 _json["merchantId"] = merchantId;
10012 } 10029 }
10013 if (method != null) { 10030 if (method != null) {
10014 _json["method"] = method; 10031 _json["method"] = method;
10015 } 10032 }
10016 if (productId != null) { 10033 if (productId != null) {
(...skipping 16 matching lines...) Expand all
10033 10050
10034 ProductstatusesCustomBatchResponse.fromJson(core.Map _json) { 10051 ProductstatusesCustomBatchResponse.fromJson(core.Map _json) {
10035 if (_json.containsKey("entries")) { 10052 if (_json.containsKey("entries")) {
10036 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe sponseEntry.fromJson(value)).toList(); 10053 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe sponseEntry.fromJson(value)).toList();
10037 } 10054 }
10038 if (_json.containsKey("kind")) { 10055 if (_json.containsKey("kind")) {
10039 kind = _json["kind"]; 10056 kind = _json["kind"];
10040 } 10057 }
10041 } 10058 }
10042 10059
10043 core.Map toJson() { 10060 core.Map<core.String, core.Object> toJson() {
10044 var _json = new core.Map(); 10061 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10045 if (entries != null) { 10062 if (entries != null) {
10046 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 10063 _json["entries"] = entries.map((value) => (value).toJson()).toList();
10047 } 10064 }
10048 if (kind != null) { 10065 if (kind != null) {
10049 _json["kind"] = kind; 10066 _json["kind"] = kind;
10050 } 10067 }
10051 return _json; 10068 return _json;
10052 } 10069 }
10053 } 10070 }
10054 10071
(...skipping 23 matching lines...) Expand all
10078 errors = new Errors.fromJson(_json["errors"]); 10095 errors = new Errors.fromJson(_json["errors"]);
10079 } 10096 }
10080 if (_json.containsKey("kind")) { 10097 if (_json.containsKey("kind")) {
10081 kind = _json["kind"]; 10098 kind = _json["kind"];
10082 } 10099 }
10083 if (_json.containsKey("productStatus")) { 10100 if (_json.containsKey("productStatus")) {
10084 productStatus = new ProductStatus.fromJson(_json["productStatus"]); 10101 productStatus = new ProductStatus.fromJson(_json["productStatus"]);
10085 } 10102 }
10086 } 10103 }
10087 10104
10088 core.Map toJson() { 10105 core.Map<core.String, core.Object> toJson() {
10089 var _json = new core.Map(); 10106 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10090 if (batchId != null) { 10107 if (batchId != null) {
10091 _json["batchId"] = batchId; 10108 _json["batchId"] = batchId;
10092 } 10109 }
10093 if (errors != null) { 10110 if (errors != null) {
10094 _json["errors"] = (errors).toJson(); 10111 _json["errors"] = (errors).toJson();
10095 } 10112 }
10096 if (kind != null) { 10113 if (kind != null) {
10097 _json["kind"] = kind; 10114 _json["kind"] = kind;
10098 } 10115 }
10099 if (productStatus != null) { 10116 if (productStatus != null) {
(...skipping 20 matching lines...) Expand all
10120 kind = _json["kind"]; 10137 kind = _json["kind"];
10121 } 10138 }
10122 if (_json.containsKey("nextPageToken")) { 10139 if (_json.containsKey("nextPageToken")) {
10123 nextPageToken = _json["nextPageToken"]; 10140 nextPageToken = _json["nextPageToken"];
10124 } 10141 }
10125 if (_json.containsKey("resources")) { 10142 if (_json.containsKey("resources")) {
10126 resources = _json["resources"].map((value) => new ProductStatus.fromJson(v alue)).toList(); 10143 resources = _json["resources"].map((value) => new ProductStatus.fromJson(v alue)).toList();
10127 } 10144 }
10128 } 10145 }
10129 10146
10130 core.Map toJson() { 10147 core.Map<core.String, core.Object> toJson() {
10131 var _json = new core.Map(); 10148 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10132 if (kind != null) { 10149 if (kind != null) {
10133 _json["kind"] = kind; 10150 _json["kind"] = kind;
10134 } 10151 }
10135 if (nextPageToken != null) { 10152 if (nextPageToken != null) {
10136 _json["nextPageToken"] = nextPageToken; 10153 _json["nextPageToken"] = nextPageToken;
10137 } 10154 }
10138 if (resources != null) { 10155 if (resources != null) {
10139 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 10156 _json["resources"] = resources.map((value) => (value).toJson()).toList();
10140 } 10157 }
10141 return _json; 10158 return _json;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
10184 mainTable = new Table.fromJson(_json["mainTable"]); 10201 mainTable = new Table.fromJson(_json["mainTable"]);
10185 } 10202 }
10186 if (_json.containsKey("singleValue")) { 10203 if (_json.containsKey("singleValue")) {
10187 singleValue = new Value.fromJson(_json["singleValue"]); 10204 singleValue = new Value.fromJson(_json["singleValue"]);
10188 } 10205 }
10189 if (_json.containsKey("subtables")) { 10206 if (_json.containsKey("subtables")) {
10190 subtables = _json["subtables"].map((value) => new Table.fromJson(value)).t oList(); 10207 subtables = _json["subtables"].map((value) => new Table.fromJson(value)).t oList();
10191 } 10208 }
10192 } 10209 }
10193 10210
10194 core.Map toJson() { 10211 core.Map<core.String, core.Object> toJson() {
10195 var _json = new core.Map(); 10212 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10196 if (applicableShippingLabels != null) { 10213 if (applicableShippingLabels != null) {
10197 _json["applicableShippingLabels"] = applicableShippingLabels; 10214 _json["applicableShippingLabels"] = applicableShippingLabels;
10198 } 10215 }
10199 if (carrierRates != null) { 10216 if (carrierRates != null) {
10200 _json["carrierRates"] = carrierRates.map((value) => (value).toJson()).toLi st(); 10217 _json["carrierRates"] = carrierRates.map((value) => (value).toJson()).toLi st();
10201 } 10218 }
10202 if (mainTable != null) { 10219 if (mainTable != null) {
10203 _json["mainTable"] = (mainTable).toJson(); 10220 _json["mainTable"] = (mainTable).toJson();
10204 } 10221 }
10205 if (singleValue != null) { 10222 if (singleValue != null) {
(...skipping 15 matching lines...) Expand all
10221 core.List<Value> cells; 10238 core.List<Value> cells;
10222 10239
10223 Row(); 10240 Row();
10224 10241
10225 Row.fromJson(core.Map _json) { 10242 Row.fromJson(core.Map _json) {
10226 if (_json.containsKey("cells")) { 10243 if (_json.containsKey("cells")) {
10227 cells = _json["cells"].map((value) => new Value.fromJson(value)).toList(); 10244 cells = _json["cells"].map((value) => new Value.fromJson(value)).toList();
10228 } 10245 }
10229 } 10246 }
10230 10247
10231 core.Map toJson() { 10248 core.Map<core.String, core.Object> toJson() {
10232 var _json = new core.Map(); 10249 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10233 if (cells != null) { 10250 if (cells != null) {
10234 _json["cells"] = cells.map((value) => (value).toJson()).toList(); 10251 _json["cells"] = cells.map((value) => (value).toJson()).toList();
10235 } 10252 }
10236 return _json; 10253 return _json;
10237 } 10254 }
10238 } 10255 }
10239 10256
10240 class Service { 10257 class Service {
10241 /** 10258 /**
10242 * A boolean exposing the active status of the shipping service. Required. 10259 * A boolean exposing the active status of the shipping service. Required.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
10285 deliveryTime = new DeliveryTime.fromJson(_json["deliveryTime"]); 10302 deliveryTime = new DeliveryTime.fromJson(_json["deliveryTime"]);
10286 } 10303 }
10287 if (_json.containsKey("name")) { 10304 if (_json.containsKey("name")) {
10288 name = _json["name"]; 10305 name = _json["name"];
10289 } 10306 }
10290 if (_json.containsKey("rateGroups")) { 10307 if (_json.containsKey("rateGroups")) {
10291 rateGroups = _json["rateGroups"].map((value) => new RateGroup.fromJson(val ue)).toList(); 10308 rateGroups = _json["rateGroups"].map((value) => new RateGroup.fromJson(val ue)).toList();
10292 } 10309 }
10293 } 10310 }
10294 10311
10295 core.Map toJson() { 10312 core.Map<core.String, core.Object> toJson() {
10296 var _json = new core.Map(); 10313 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10297 if (active != null) { 10314 if (active != null) {
10298 _json["active"] = active; 10315 _json["active"] = active;
10299 } 10316 }
10300 if (currency != null) { 10317 if (currency != null) {
10301 _json["currency"] = currency; 10318 _json["currency"] = currency;
10302 } 10319 }
10303 if (deliveryCountry != null) { 10320 if (deliveryCountry != null) {
10304 _json["deliveryCountry"] = deliveryCountry; 10321 _json["deliveryCountry"] = deliveryCountry;
10305 } 10322 }
10306 if (deliveryTime != null) { 10323 if (deliveryTime != null) {
(...skipping 30 matching lines...) Expand all
10337 accountId = _json["accountId"]; 10354 accountId = _json["accountId"];
10338 } 10355 }
10339 if (_json.containsKey("postalCodeGroups")) { 10356 if (_json.containsKey("postalCodeGroups")) {
10340 postalCodeGroups = _json["postalCodeGroups"].map((value) => new PostalCode Group.fromJson(value)).toList(); 10357 postalCodeGroups = _json["postalCodeGroups"].map((value) => new PostalCode Group.fromJson(value)).toList();
10341 } 10358 }
10342 if (_json.containsKey("services")) { 10359 if (_json.containsKey("services")) {
10343 services = _json["services"].map((value) => new Service.fromJson(value)).t oList(); 10360 services = _json["services"].map((value) => new Service.fromJson(value)).t oList();
10344 } 10361 }
10345 } 10362 }
10346 10363
10347 core.Map toJson() { 10364 core.Map<core.String, core.Object> toJson() {
10348 var _json = new core.Map(); 10365 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10349 if (accountId != null) { 10366 if (accountId != null) {
10350 _json["accountId"] = accountId; 10367 _json["accountId"] = accountId;
10351 } 10368 }
10352 if (postalCodeGroups != null) { 10369 if (postalCodeGroups != null) {
10353 _json["postalCodeGroups"] = postalCodeGroups.map((value) => (value).toJson ()).toList(); 10370 _json["postalCodeGroups"] = postalCodeGroups.map((value) => (value).toJson ()).toList();
10354 } 10371 }
10355 if (services != null) { 10372 if (services != null) {
10356 _json["services"] = services.map((value) => (value).toJson()).toList(); 10373 _json["services"] = services.map((value) => (value).toJson()).toList();
10357 } 10374 }
10358 return _json; 10375 return _json;
10359 } 10376 }
10360 } 10377 }
10361 10378
10362 class ShippingsettingsCustomBatchRequest { 10379 class ShippingsettingsCustomBatchRequest {
10363 /** The request entries to be processed in the batch. */ 10380 /** The request entries to be processed in the batch. */
10364 core.List<ShippingsettingsCustomBatchRequestEntry> entries; 10381 core.List<ShippingsettingsCustomBatchRequestEntry> entries;
10365 10382
10366 ShippingsettingsCustomBatchRequest(); 10383 ShippingsettingsCustomBatchRequest();
10367 10384
10368 ShippingsettingsCustomBatchRequest.fromJson(core.Map _json) { 10385 ShippingsettingsCustomBatchRequest.fromJson(core.Map _json) {
10369 if (_json.containsKey("entries")) { 10386 if (_json.containsKey("entries")) {
10370 entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchR equestEntry.fromJson(value)).toList(); 10387 entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchR equestEntry.fromJson(value)).toList();
10371 } 10388 }
10372 } 10389 }
10373 10390
10374 core.Map toJson() { 10391 core.Map<core.String, core.Object> toJson() {
10375 var _json = new core.Map(); 10392 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10376 if (entries != null) { 10393 if (entries != null) {
10377 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 10394 _json["entries"] = entries.map((value) => (value).toJson()).toList();
10378 } 10395 }
10379 return _json; 10396 return _json;
10380 } 10397 }
10381 } 10398 }
10382 10399
10383 /** A batch entry encoding a single non-batch shippingsettings request. */ 10400 /** A batch entry encoding a single non-batch shippingsettings request. */
10384 class ShippingsettingsCustomBatchRequestEntry { 10401 class ShippingsettingsCustomBatchRequestEntry {
10385 /** 10402 /**
(...skipping 24 matching lines...) Expand all
10410 merchantId = _json["merchantId"]; 10427 merchantId = _json["merchantId"];
10411 } 10428 }
10412 if (_json.containsKey("method")) { 10429 if (_json.containsKey("method")) {
10413 method = _json["method"]; 10430 method = _json["method"];
10414 } 10431 }
10415 if (_json.containsKey("shippingSettings")) { 10432 if (_json.containsKey("shippingSettings")) {
10416 shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"] ); 10433 shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"] );
10417 } 10434 }
10418 } 10435 }
10419 10436
10420 core.Map toJson() { 10437 core.Map<core.String, core.Object> toJson() {
10421 var _json = new core.Map(); 10438 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10422 if (accountId != null) { 10439 if (accountId != null) {
10423 _json["accountId"] = accountId; 10440 _json["accountId"] = accountId;
10424 } 10441 }
10425 if (batchId != null) { 10442 if (batchId != null) {
10426 _json["batchId"] = batchId; 10443 _json["batchId"] = batchId;
10427 } 10444 }
10428 if (merchantId != null) { 10445 if (merchantId != null) {
10429 _json["merchantId"] = merchantId; 10446 _json["merchantId"] = merchantId;
10430 } 10447 }
10431 if (method != null) { 10448 if (method != null) {
(...skipping 19 matching lines...) Expand all
10451 10468
10452 ShippingsettingsCustomBatchResponse.fromJson(core.Map _json) { 10469 ShippingsettingsCustomBatchResponse.fromJson(core.Map _json) {
10453 if (_json.containsKey("entries")) { 10470 if (_json.containsKey("entries")) {
10454 entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchR esponseEntry.fromJson(value)).toList(); 10471 entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchR esponseEntry.fromJson(value)).toList();
10455 } 10472 }
10456 if (_json.containsKey("kind")) { 10473 if (_json.containsKey("kind")) {
10457 kind = _json["kind"]; 10474 kind = _json["kind"];
10458 } 10475 }
10459 } 10476 }
10460 10477
10461 core.Map toJson() { 10478 core.Map<core.String, core.Object> toJson() {
10462 var _json = new core.Map(); 10479 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10463 if (entries != null) { 10480 if (entries != null) {
10464 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 10481 _json["entries"] = entries.map((value) => (value).toJson()).toList();
10465 } 10482 }
10466 if (kind != null) { 10483 if (kind != null) {
10467 _json["kind"] = kind; 10484 _json["kind"] = kind;
10468 } 10485 }
10469 return _json; 10486 return _json;
10470 } 10487 }
10471 } 10488 }
10472 10489
(...skipping 21 matching lines...) Expand all
10494 errors = new Errors.fromJson(_json["errors"]); 10511 errors = new Errors.fromJson(_json["errors"]);
10495 } 10512 }
10496 if (_json.containsKey("kind")) { 10513 if (_json.containsKey("kind")) {
10497 kind = _json["kind"]; 10514 kind = _json["kind"];
10498 } 10515 }
10499 if (_json.containsKey("shippingSettings")) { 10516 if (_json.containsKey("shippingSettings")) {
10500 shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"] ); 10517 shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"] );
10501 } 10518 }
10502 } 10519 }
10503 10520
10504 core.Map toJson() { 10521 core.Map<core.String, core.Object> toJson() {
10505 var _json = new core.Map(); 10522 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10506 if (batchId != null) { 10523 if (batchId != null) {
10507 _json["batchId"] = batchId; 10524 _json["batchId"] = batchId;
10508 } 10525 }
10509 if (errors != null) { 10526 if (errors != null) {
10510 _json["errors"] = (errors).toJson(); 10527 _json["errors"] = (errors).toJson();
10511 } 10528 }
10512 if (kind != null) { 10529 if (kind != null) {
10513 _json["kind"] = kind; 10530 _json["kind"] = kind;
10514 } 10531 }
10515 if (shippingSettings != null) { 10532 if (shippingSettings != null) {
(...skipping 16 matching lines...) Expand all
10532 10549
10533 ShippingsettingsGetSupportedCarriersResponse.fromJson(core.Map _json) { 10550 ShippingsettingsGetSupportedCarriersResponse.fromJson(core.Map _json) {
10534 if (_json.containsKey("carriers")) { 10551 if (_json.containsKey("carriers")) {
10535 carriers = _json["carriers"].map((value) => new CarriersCarrier.fromJson(v alue)).toList(); 10552 carriers = _json["carriers"].map((value) => new CarriersCarrier.fromJson(v alue)).toList();
10536 } 10553 }
10537 if (_json.containsKey("kind")) { 10554 if (_json.containsKey("kind")) {
10538 kind = _json["kind"]; 10555 kind = _json["kind"];
10539 } 10556 }
10540 } 10557 }
10541 10558
10542 core.Map toJson() { 10559 core.Map<core.String, core.Object> toJson() {
10543 var _json = new core.Map(); 10560 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10544 if (carriers != null) { 10561 if (carriers != null) {
10545 _json["carriers"] = carriers.map((value) => (value).toJson()).toList(); 10562 _json["carriers"] = carriers.map((value) => (value).toJson()).toList();
10546 } 10563 }
10547 if (kind != null) { 10564 if (kind != null) {
10548 _json["kind"] = kind; 10565 _json["kind"] = kind;
10549 } 10566 }
10550 return _json; 10567 return _json;
10551 } 10568 }
10552 } 10569 }
10553 10570
(...skipping 14 matching lines...) Expand all
10568 kind = _json["kind"]; 10585 kind = _json["kind"];
10569 } 10586 }
10570 if (_json.containsKey("nextPageToken")) { 10587 if (_json.containsKey("nextPageToken")) {
10571 nextPageToken = _json["nextPageToken"]; 10588 nextPageToken = _json["nextPageToken"];
10572 } 10589 }
10573 if (_json.containsKey("resources")) { 10590 if (_json.containsKey("resources")) {
10574 resources = _json["resources"].map((value) => new ShippingSettings.fromJso n(value)).toList(); 10591 resources = _json["resources"].map((value) => new ShippingSettings.fromJso n(value)).toList();
10575 } 10592 }
10576 } 10593 }
10577 10594
10578 core.Map toJson() { 10595 core.Map<core.String, core.Object> toJson() {
10579 var _json = new core.Map(); 10596 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10580 if (kind != null) { 10597 if (kind != null) {
10581 _json["kind"] = kind; 10598 _json["kind"] = kind;
10582 } 10599 }
10583 if (nextPageToken != null) { 10600 if (nextPageToken != null) {
10584 _json["nextPageToken"] = nextPageToken; 10601 _json["nextPageToken"] = nextPageToken;
10585 } 10602 }
10586 if (resources != null) { 10603 if (resources != null) {
10587 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 10604 _json["resources"] = resources.map((value) => (value).toJson()).toList();
10588 } 10605 }
10589 return _json; 10606 return _json;
(...skipping 26 matching lines...) Expand all
10616 name = _json["name"]; 10633 name = _json["name"];
10617 } 10634 }
10618 if (_json.containsKey("rowHeaders")) { 10635 if (_json.containsKey("rowHeaders")) {
10619 rowHeaders = new Headers.fromJson(_json["rowHeaders"]); 10636 rowHeaders = new Headers.fromJson(_json["rowHeaders"]);
10620 } 10637 }
10621 if (_json.containsKey("rows")) { 10638 if (_json.containsKey("rows")) {
10622 rows = _json["rows"].map((value) => new Row.fromJson(value)).toList(); 10639 rows = _json["rows"].map((value) => new Row.fromJson(value)).toList();
10623 } 10640 }
10624 } 10641 }
10625 10642
10626 core.Map toJson() { 10643 core.Map<core.String, core.Object> toJson() {
10627 var _json = new core.Map(); 10644 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10628 if (columnHeaders != null) { 10645 if (columnHeaders != null) {
10629 _json["columnHeaders"] = (columnHeaders).toJson(); 10646 _json["columnHeaders"] = (columnHeaders).toJson();
10630 } 10647 }
10631 if (name != null) { 10648 if (name != null) {
10632 _json["name"] = name; 10649 _json["name"] = name;
10633 } 10650 }
10634 if (rowHeaders != null) { 10651 if (rowHeaders != null) {
10635 _json["rowHeaders"] = (rowHeaders).toJson(); 10652 _json["rowHeaders"] = (rowHeaders).toJson();
10636 } 10653 }
10637 if (rows != null) { 10654 if (rows != null) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
10694 shippingCost = new Price.fromJson(_json["shippingCost"]); 10711 shippingCost = new Price.fromJson(_json["shippingCost"]);
10695 } 10712 }
10696 if (_json.containsKey("shippingCostTax")) { 10713 if (_json.containsKey("shippingCostTax")) {
10697 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]); 10714 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]);
10698 } 10715 }
10699 if (_json.containsKey("shippingOption")) { 10716 if (_json.containsKey("shippingOption")) {
10700 shippingOption = _json["shippingOption"]; 10717 shippingOption = _json["shippingOption"];
10701 } 10718 }
10702 } 10719 }
10703 10720
10704 core.Map toJson() { 10721 core.Map<core.String, core.Object> toJson() {
10705 var _json = new core.Map(); 10722 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10706 if (customer != null) { 10723 if (customer != null) {
10707 _json["customer"] = (customer).toJson(); 10724 _json["customer"] = (customer).toJson();
10708 } 10725 }
10709 if (kind != null) { 10726 if (kind != null) {
10710 _json["kind"] = kind; 10727 _json["kind"] = kind;
10711 } 10728 }
10712 if (lineItems != null) { 10729 if (lineItems != null) {
10713 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); 10730 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList();
10714 } 10731 }
10715 if (paymentMethod != null) { 10732 if (paymentMethod != null) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
10755 email = _json["email"]; 10772 email = _json["email"];
10756 } 10773 }
10757 if (_json.containsKey("explicitMarketingPreference")) { 10774 if (_json.containsKey("explicitMarketingPreference")) {
10758 explicitMarketingPreference = _json["explicitMarketingPreference"]; 10775 explicitMarketingPreference = _json["explicitMarketingPreference"];
10759 } 10776 }
10760 if (_json.containsKey("fullName")) { 10777 if (_json.containsKey("fullName")) {
10761 fullName = _json["fullName"]; 10778 fullName = _json["fullName"];
10762 } 10779 }
10763 } 10780 }
10764 10781
10765 core.Map toJson() { 10782 core.Map<core.String, core.Object> toJson() {
10766 var _json = new core.Map(); 10783 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10767 if (email != null) { 10784 if (email != null) {
10768 _json["email"] = email; 10785 _json["email"] = email;
10769 } 10786 }
10770 if (explicitMarketingPreference != null) { 10787 if (explicitMarketingPreference != null) {
10771 _json["explicitMarketingPreference"] = explicitMarketingPreference; 10788 _json["explicitMarketingPreference"] = explicitMarketingPreference;
10772 } 10789 }
10773 if (fullName != null) { 10790 if (fullName != null) {
10774 _json["fullName"] = fullName; 10791 _json["fullName"] = fullName;
10775 } 10792 }
10776 return _json; 10793 return _json;
(...skipping 25 matching lines...) Expand all
10802 returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]); 10819 returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]);
10803 } 10820 }
10804 if (_json.containsKey("shippingDetails")) { 10821 if (_json.containsKey("shippingDetails")) {
10805 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin gDetails"]); 10822 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin gDetails"]);
10806 } 10823 }
10807 if (_json.containsKey("unitTax")) { 10824 if (_json.containsKey("unitTax")) {
10808 unitTax = new Price.fromJson(_json["unitTax"]); 10825 unitTax = new Price.fromJson(_json["unitTax"]);
10809 } 10826 }
10810 } 10827 }
10811 10828
10812 core.Map toJson() { 10829 core.Map<core.String, core.Object> toJson() {
10813 var _json = new core.Map(); 10830 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10814 if (product != null) { 10831 if (product != null) {
10815 _json["product"] = (product).toJson(); 10832 _json["product"] = (product).toJson();
10816 } 10833 }
10817 if (quantityOrdered != null) { 10834 if (quantityOrdered != null) {
10818 _json["quantityOrdered"] = quantityOrdered; 10835 _json["quantityOrdered"] = quantityOrdered;
10819 } 10836 }
10820 if (returnInfo != null) { 10837 if (returnInfo != null) {
10821 _json["returnInfo"] = (returnInfo).toJson(); 10838 _json["returnInfo"] = (returnInfo).toJson();
10822 } 10839 }
10823 if (shippingDetails != null) { 10840 if (shippingDetails != null) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
10895 targetCountry = _json["targetCountry"]; 10912 targetCountry = _json["targetCountry"];
10896 } 10913 }
10897 if (_json.containsKey("title")) { 10914 if (_json.containsKey("title")) {
10898 title = _json["title"]; 10915 title = _json["title"];
10899 } 10916 }
10900 if (_json.containsKey("variantAttributes")) { 10917 if (_json.containsKey("variantAttributes")) {
10901 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin eItemProductVariantAttribute.fromJson(value)).toList(); 10918 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin eItemProductVariantAttribute.fromJson(value)).toList();
10902 } 10919 }
10903 } 10920 }
10904 10921
10905 core.Map toJson() { 10922 core.Map<core.String, core.Object> toJson() {
10906 var _json = new core.Map(); 10923 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10907 if (brand != null) { 10924 if (brand != null) {
10908 _json["brand"] = brand; 10925 _json["brand"] = brand;
10909 } 10926 }
10910 if (channel != null) { 10927 if (channel != null) {
10911 _json["channel"] = channel; 10928 _json["channel"] = channel;
10912 } 10929 }
10913 if (condition != null) { 10930 if (condition != null) {
10914 _json["condition"] = condition; 10931 _json["condition"] = condition;
10915 } 10932 }
10916 if (contentLanguage != null) { 10933 if (contentLanguage != null) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
10975 lastFourDigits = _json["lastFourDigits"]; 10992 lastFourDigits = _json["lastFourDigits"];
10976 } 10993 }
10977 if (_json.containsKey("predefinedBillingAddress")) { 10994 if (_json.containsKey("predefinedBillingAddress")) {
10978 predefinedBillingAddress = _json["predefinedBillingAddress"]; 10995 predefinedBillingAddress = _json["predefinedBillingAddress"];
10979 } 10996 }
10980 if (_json.containsKey("type")) { 10997 if (_json.containsKey("type")) {
10981 type = _json["type"]; 10998 type = _json["type"];
10982 } 10999 }
10983 } 11000 }
10984 11001
10985 core.Map toJson() { 11002 core.Map<core.String, core.Object> toJson() {
10986 var _json = new core.Map(); 11003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
10987 if (expirationMonth != null) { 11004 if (expirationMonth != null) {
10988 _json["expirationMonth"] = expirationMonth; 11005 _json["expirationMonth"] = expirationMonth;
10989 } 11006 }
10990 if (expirationYear != null) { 11007 if (expirationYear != null) {
10991 _json["expirationYear"] = expirationYear; 11008 _json["expirationYear"] = expirationYear;
10992 } 11009 }
10993 if (lastFourDigits != null) { 11010 if (lastFourDigits != null) {
10994 _json["lastFourDigits"] = lastFourDigits; 11011 _json["lastFourDigits"] = lastFourDigits;
10995 } 11012 }
10996 if (predefinedBillingAddress != null) { 11013 if (predefinedBillingAddress != null) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
11045 noShipping = _json["noShipping"]; 11062 noShipping = _json["noShipping"];
11046 } 11063 }
11047 if (_json.containsKey("pricePercentage")) { 11064 if (_json.containsKey("pricePercentage")) {
11048 pricePercentage = _json["pricePercentage"]; 11065 pricePercentage = _json["pricePercentage"];
11049 } 11066 }
11050 if (_json.containsKey("subtableName")) { 11067 if (_json.containsKey("subtableName")) {
11051 subtableName = _json["subtableName"]; 11068 subtableName = _json["subtableName"];
11052 } 11069 }
11053 } 11070 }
11054 11071
11055 core.Map toJson() { 11072 core.Map<core.String, core.Object> toJson() {
11056 var _json = new core.Map(); 11073 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
11057 if (carrierRateName != null) { 11074 if (carrierRateName != null) {
11058 _json["carrierRateName"] = carrierRateName; 11075 _json["carrierRateName"] = carrierRateName;
11059 } 11076 }
11060 if (flatRate != null) { 11077 if (flatRate != null) {
11061 _json["flatRate"] = (flatRate).toJson(); 11078 _json["flatRate"] = (flatRate).toJson();
11062 } 11079 }
11063 if (noShipping != null) { 11080 if (noShipping != null) {
11064 _json["noShipping"] = noShipping; 11081 _json["noShipping"] = noShipping;
11065 } 11082 }
11066 if (pricePercentage != null) { 11083 if (pricePercentage != null) {
(...skipping 16 matching lines...) Expand all
11083 11100
11084 Weight.fromJson(core.Map _json) { 11101 Weight.fromJson(core.Map _json) {
11085 if (_json.containsKey("unit")) { 11102 if (_json.containsKey("unit")) {
11086 unit = _json["unit"]; 11103 unit = _json["unit"];
11087 } 11104 }
11088 if (_json.containsKey("value")) { 11105 if (_json.containsKey("value")) {
11089 value = _json["value"]; 11106 value = _json["value"];
11090 } 11107 }
11091 } 11108 }
11092 11109
11093 core.Map toJson() { 11110 core.Map<core.String, core.Object> toJson() {
11094 var _json = new core.Map(); 11111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
11095 if (unit != null) { 11112 if (unit != null) {
11096 _json["unit"] = unit; 11113 _json["unit"] = unit;
11097 } 11114 }
11098 if (value != null) { 11115 if (value != null) {
11099 _json["value"] = value; 11116 _json["value"] = value;
11100 } 11117 }
11101 return _json; 11118 return _json;
11102 } 11119 }
11103 } 11120 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/container/v1.dart ('k') | generated/googleapis/lib/content/v2sandbox.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698