OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.qpxExpress.v1; | 3 library googleapis.qpxExpress.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 code = _json["code"]; | 96 code = _json["code"]; |
97 } | 97 } |
98 if (_json.containsKey("kind")) { | 98 if (_json.containsKey("kind")) { |
99 kind = _json["kind"]; | 99 kind = _json["kind"]; |
100 } | 100 } |
101 if (_json.containsKey("name")) { | 101 if (_json.containsKey("name")) { |
102 name = _json["name"]; | 102 name = _json["name"]; |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 core.Map toJson() { | 106 core.Map<core.String, core.Object> toJson() { |
107 var _json = new core.Map(); | 107 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
108 if (code != null) { | 108 if (code != null) { |
109 _json["code"] = code; | 109 _json["code"] = code; |
110 } | 110 } |
111 if (kind != null) { | 111 if (kind != null) { |
112 _json["kind"] = kind; | 112 _json["kind"] = kind; |
113 } | 113 } |
114 if (name != null) { | 114 if (name != null) { |
115 _json["name"] = name; | 115 _json["name"] = name; |
116 } | 116 } |
117 return _json; | 117 return _json; |
(...skipping 30 matching lines...) Expand all Loading... |
148 code = _json["code"]; | 148 code = _json["code"]; |
149 } | 149 } |
150 if (_json.containsKey("kind")) { | 150 if (_json.containsKey("kind")) { |
151 kind = _json["kind"]; | 151 kind = _json["kind"]; |
152 } | 152 } |
153 if (_json.containsKey("name")) { | 153 if (_json.containsKey("name")) { |
154 name = _json["name"]; | 154 name = _json["name"]; |
155 } | 155 } |
156 } | 156 } |
157 | 157 |
158 core.Map toJson() { | 158 core.Map<core.String, core.Object> toJson() { |
159 var _json = new core.Map(); | 159 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
160 if (city != null) { | 160 if (city != null) { |
161 _json["city"] = city; | 161 _json["city"] = city; |
162 } | 162 } |
163 if (code != null) { | 163 if (code != null) { |
164 _json["code"] = code; | 164 _json["code"] = code; |
165 } | 165 } |
166 if (kind != null) { | 166 if (kind != null) { |
167 _json["kind"] = kind; | 167 _json["kind"] = kind; |
168 } | 168 } |
169 if (name != null) { | 169 if (name != null) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 description = _json["description"]; | 202 description = _json["description"]; |
203 } | 203 } |
204 if (_json.containsKey("kind")) { | 204 if (_json.containsKey("kind")) { |
205 kind = _json["kind"]; | 205 kind = _json["kind"]; |
206 } | 206 } |
207 if (_json.containsKey("subcode")) { | 207 if (_json.containsKey("subcode")) { |
208 subcode = _json["subcode"]; | 208 subcode = _json["subcode"]; |
209 } | 209 } |
210 } | 210 } |
211 | 211 |
212 core.Map toJson() { | 212 core.Map<core.String, core.Object> toJson() { |
213 var _json = new core.Map(); | 213 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
214 if (commercialName != null) { | 214 if (commercialName != null) { |
215 _json["commercialName"] = commercialName; | 215 _json["commercialName"] = commercialName; |
216 } | 216 } |
217 if (count != null) { | 217 if (count != null) { |
218 _json["count"] = count; | 218 _json["count"] = count; |
219 } | 219 } |
220 if (description != null) { | 220 if (description != null) { |
221 _json["description"] = description; | 221 _json["description"] = description; |
222 } | 222 } |
223 if (kind != null) { | 223 if (kind != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 code = _json["code"]; | 255 code = _json["code"]; |
256 } | 256 } |
257 if (_json.containsKey("kind")) { | 257 if (_json.containsKey("kind")) { |
258 kind = _json["kind"]; | 258 kind = _json["kind"]; |
259 } | 259 } |
260 if (_json.containsKey("name")) { | 260 if (_json.containsKey("name")) { |
261 name = _json["name"]; | 261 name = _json["name"]; |
262 } | 262 } |
263 } | 263 } |
264 | 264 |
265 core.Map toJson() { | 265 core.Map<core.String, core.Object> toJson() { |
266 var _json = new core.Map(); | 266 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
267 if (code != null) { | 267 if (code != null) { |
268 _json["code"] = code; | 268 _json["code"] = code; |
269 } | 269 } |
270 if (kind != null) { | 270 if (kind != null) { |
271 _json["kind"] = kind; | 271 _json["kind"] = kind; |
272 } | 272 } |
273 if (name != null) { | 273 if (name != null) { |
274 _json["name"] = name; | 274 _json["name"] = name; |
275 } | 275 } |
276 return _json; | 276 return _json; |
(...skipping 30 matching lines...) Expand all Loading... |
307 country = _json["country"]; | 307 country = _json["country"]; |
308 } | 308 } |
309 if (_json.containsKey("kind")) { | 309 if (_json.containsKey("kind")) { |
310 kind = _json["kind"]; | 310 kind = _json["kind"]; |
311 } | 311 } |
312 if (_json.containsKey("name")) { | 312 if (_json.containsKey("name")) { |
313 name = _json["name"]; | 313 name = _json["name"]; |
314 } | 314 } |
315 } | 315 } |
316 | 316 |
317 core.Map toJson() { | 317 core.Map<core.String, core.Object> toJson() { |
318 var _json = new core.Map(); | 318 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
319 if (code != null) { | 319 if (code != null) { |
320 _json["code"] = code; | 320 _json["code"] = code; |
321 } | 321 } |
322 if (country != null) { | 322 if (country != null) { |
323 _json["country"] = country; | 323 _json["country"] = country; |
324 } | 324 } |
325 if (kind != null) { | 325 if (kind != null) { |
326 _json["kind"] = kind; | 326 _json["kind"] = kind; |
327 } | 327 } |
328 if (name != null) { | 328 if (name != null) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 city = _json["city"].map((value) => new CityData.fromJson(value)).toList()
; | 373 city = _json["city"].map((value) => new CityData.fromJson(value)).toList()
; |
374 } | 374 } |
375 if (_json.containsKey("kind")) { | 375 if (_json.containsKey("kind")) { |
376 kind = _json["kind"]; | 376 kind = _json["kind"]; |
377 } | 377 } |
378 if (_json.containsKey("tax")) { | 378 if (_json.containsKey("tax")) { |
379 tax = _json["tax"].map((value) => new TaxData.fromJson(value)).toList(); | 379 tax = _json["tax"].map((value) => new TaxData.fromJson(value)).toList(); |
380 } | 380 } |
381 } | 381 } |
382 | 382 |
383 core.Map toJson() { | 383 core.Map<core.String, core.Object> toJson() { |
384 var _json = new core.Map(); | 384 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
385 if (aircraft != null) { | 385 if (aircraft != null) { |
386 _json["aircraft"] = aircraft.map((value) => (value).toJson()).toList(); | 386 _json["aircraft"] = aircraft.map((value) => (value).toJson()).toList(); |
387 } | 387 } |
388 if (airport != null) { | 388 if (airport != null) { |
389 _json["airport"] = airport.map((value) => (value).toJson()).toList(); | 389 _json["airport"] = airport.map((value) => (value).toJson()).toList(); |
390 } | 390 } |
391 if (carrier != null) { | 391 if (carrier != null) { |
392 _json["carrier"] = carrier.map((value) => (value).toJson()).toList(); | 392 _json["carrier"] = carrier.map((value) => (value).toJson()).toList(); |
393 } | 393 } |
394 if (city != null) { | 394 if (city != null) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 kind = _json["kind"]; | 453 kind = _json["kind"]; |
454 } | 454 } |
455 if (_json.containsKey("origin")) { | 455 if (_json.containsKey("origin")) { |
456 origin = _json["origin"]; | 456 origin = _json["origin"]; |
457 } | 457 } |
458 if (_json.containsKey("private")) { | 458 if (_json.containsKey("private")) { |
459 private = _json["private"]; | 459 private = _json["private"]; |
460 } | 460 } |
461 } | 461 } |
462 | 462 |
463 core.Map toJson() { | 463 core.Map<core.String, core.Object> toJson() { |
464 var _json = new core.Map(); | 464 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
465 if (basisCode != null) { | 465 if (basisCode != null) { |
466 _json["basisCode"] = basisCode; | 466 _json["basisCode"] = basisCode; |
467 } | 467 } |
468 if (carrier != null) { | 468 if (carrier != null) { |
469 _json["carrier"] = carrier; | 469 _json["carrier"] = carrier; |
470 } | 470 } |
471 if (destination != null) { | 471 if (destination != null) { |
472 _json["destination"] = destination; | 472 _json["destination"] = destination; |
473 } | 473 } |
474 if (id != null) { | 474 if (id != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
505 | 505 |
506 FlightInfo.fromJson(core.Map _json) { | 506 FlightInfo.fromJson(core.Map _json) { |
507 if (_json.containsKey("carrier")) { | 507 if (_json.containsKey("carrier")) { |
508 carrier = _json["carrier"]; | 508 carrier = _json["carrier"]; |
509 } | 509 } |
510 if (_json.containsKey("number")) { | 510 if (_json.containsKey("number")) { |
511 number = _json["number"]; | 511 number = _json["number"]; |
512 } | 512 } |
513 } | 513 } |
514 | 514 |
515 core.Map toJson() { | 515 core.Map<core.String, core.Object> toJson() { |
516 var _json = new core.Map(); | 516 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
517 if (carrier != null) { | 517 if (carrier != null) { |
518 _json["carrier"] = carrier; | 518 _json["carrier"] = carrier; |
519 } | 519 } |
520 if (number != null) { | 520 if (number != null) { |
521 _json["number"] = number; | 521 _json["number"] = number; |
522 } | 522 } |
523 return _json; | 523 return _json; |
524 } | 524 } |
525 } | 525 } |
526 | 526 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 kind = _json["kind"]; | 561 kind = _json["kind"]; |
562 } | 562 } |
563 if (_json.containsKey("pieces")) { | 563 if (_json.containsKey("pieces")) { |
564 pieces = _json["pieces"]; | 564 pieces = _json["pieces"]; |
565 } | 565 } |
566 if (_json.containsKey("pounds")) { | 566 if (_json.containsKey("pounds")) { |
567 pounds = _json["pounds"]; | 567 pounds = _json["pounds"]; |
568 } | 568 } |
569 } | 569 } |
570 | 570 |
571 core.Map toJson() { | 571 core.Map<core.String, core.Object> toJson() { |
572 var _json = new core.Map(); | 572 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
573 if (bagDescriptor != null) { | 573 if (bagDescriptor != null) { |
574 _json["bagDescriptor"] = bagDescriptor.map((value) => (value).toJson()).to
List(); | 574 _json["bagDescriptor"] = bagDescriptor.map((value) => (value).toJson()).to
List(); |
575 } | 575 } |
576 if (kilos != null) { | 576 if (kilos != null) { |
577 _json["kilos"] = kilos; | 577 _json["kilos"] = kilos; |
578 } | 578 } |
579 if (kilosPerPiece != null) { | 579 if (kilosPerPiece != null) { |
580 _json["kilosPerPiece"] = kilosPerPiece; | 580 _json["kilosPerPiece"] = kilosPerPiece; |
581 } | 581 } |
582 if (kind != null) { | 582 if (kind != null) { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 origin = _json["origin"]; | 709 origin = _json["origin"]; |
710 } | 710 } |
711 if (_json.containsKey("originTerminal")) { | 711 if (_json.containsKey("originTerminal")) { |
712 originTerminal = _json["originTerminal"]; | 712 originTerminal = _json["originTerminal"]; |
713 } | 713 } |
714 if (_json.containsKey("secure")) { | 714 if (_json.containsKey("secure")) { |
715 secure = _json["secure"]; | 715 secure = _json["secure"]; |
716 } | 716 } |
717 } | 717 } |
718 | 718 |
719 core.Map toJson() { | 719 core.Map<core.String, core.Object> toJson() { |
720 var _json = new core.Map(); | 720 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
721 if (aircraft != null) { | 721 if (aircraft != null) { |
722 _json["aircraft"] = aircraft; | 722 _json["aircraft"] = aircraft; |
723 } | 723 } |
724 if (arrivalTime != null) { | 724 if (arrivalTime != null) { |
725 _json["arrivalTime"] = arrivalTime; | 725 _json["arrivalTime"] = arrivalTime; |
726 } | 726 } |
727 if (changePlane != null) { | 727 if (changePlane != null) { |
728 _json["changePlane"] = changePlane; | 728 _json["changePlane"] = changePlane; |
729 } | 729 } |
730 if (connectionDuration != null) { | 730 if (connectionDuration != null) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 infantInSeatCount = _json["infantInSeatCount"]; | 814 infantInSeatCount = _json["infantInSeatCount"]; |
815 } | 815 } |
816 if (_json.containsKey("kind")) { | 816 if (_json.containsKey("kind")) { |
817 kind = _json["kind"]; | 817 kind = _json["kind"]; |
818 } | 818 } |
819 if (_json.containsKey("seniorCount")) { | 819 if (_json.containsKey("seniorCount")) { |
820 seniorCount = _json["seniorCount"]; | 820 seniorCount = _json["seniorCount"]; |
821 } | 821 } |
822 } | 822 } |
823 | 823 |
824 core.Map toJson() { | 824 core.Map<core.String, core.Object> toJson() { |
825 var _json = new core.Map(); | 825 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
826 if (adultCount != null) { | 826 if (adultCount != null) { |
827 _json["adultCount"] = adultCount; | 827 _json["adultCount"] = adultCount; |
828 } | 828 } |
829 if (childCount != null) { | 829 if (childCount != null) { |
830 _json["childCount"] = childCount; | 830 _json["childCount"] = childCount; |
831 } | 831 } |
832 if (infantInLapCount != null) { | 832 if (infantInLapCount != null) { |
833 _json["infantInLapCount"] = infantInLapCount; | 833 _json["infantInLapCount"] = infantInLapCount; |
834 } | 834 } |
835 if (infantInSeatCount != null) { | 835 if (infantInSeatCount != null) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 saleTotal = _json["saleTotal"]; | 937 saleTotal = _json["saleTotal"]; |
938 } | 938 } |
939 if (_json.containsKey("segmentPricing")) { | 939 if (_json.containsKey("segmentPricing")) { |
940 segmentPricing = _json["segmentPricing"].map((value) => new SegmentPricing
.fromJson(value)).toList(); | 940 segmentPricing = _json["segmentPricing"].map((value) => new SegmentPricing
.fromJson(value)).toList(); |
941 } | 941 } |
942 if (_json.containsKey("tax")) { | 942 if (_json.containsKey("tax")) { |
943 tax = _json["tax"].map((value) => new TaxInfo.fromJson(value)).toList(); | 943 tax = _json["tax"].map((value) => new TaxInfo.fromJson(value)).toList(); |
944 } | 944 } |
945 } | 945 } |
946 | 946 |
947 core.Map toJson() { | 947 core.Map<core.String, core.Object> toJson() { |
948 var _json = new core.Map(); | 948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
949 if (baseFareTotal != null) { | 949 if (baseFareTotal != null) { |
950 _json["baseFareTotal"] = baseFareTotal; | 950 _json["baseFareTotal"] = baseFareTotal; |
951 } | 951 } |
952 if (fare != null) { | 952 if (fare != null) { |
953 _json["fare"] = fare.map((value) => (value).toJson()).toList(); | 953 _json["fare"] = fare.map((value) => (value).toJson()).toList(); |
954 } | 954 } |
955 if (fareCalculation != null) { | 955 if (fareCalculation != null) { |
956 _json["fareCalculation"] = fareCalculation; | 956 _json["fareCalculation"] = fareCalculation; |
957 } | 957 } |
958 if (kind != null) { | 958 if (kind != null) { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 leg = _json["leg"].map((value) => new LegInfo.fromJson(value)).toList(); | 1068 leg = _json["leg"].map((value) => new LegInfo.fromJson(value)).toList(); |
1069 } | 1069 } |
1070 if (_json.containsKey("marriedSegmentGroup")) { | 1070 if (_json.containsKey("marriedSegmentGroup")) { |
1071 marriedSegmentGroup = _json["marriedSegmentGroup"]; | 1071 marriedSegmentGroup = _json["marriedSegmentGroup"]; |
1072 } | 1072 } |
1073 if (_json.containsKey("subjectToGovernmentApproval")) { | 1073 if (_json.containsKey("subjectToGovernmentApproval")) { |
1074 subjectToGovernmentApproval = _json["subjectToGovernmentApproval"]; | 1074 subjectToGovernmentApproval = _json["subjectToGovernmentApproval"]; |
1075 } | 1075 } |
1076 } | 1076 } |
1077 | 1077 |
1078 core.Map toJson() { | 1078 core.Map<core.String, core.Object> toJson() { |
1079 var _json = new core.Map(); | 1079 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1080 if (bookingCode != null) { | 1080 if (bookingCode != null) { |
1081 _json["bookingCode"] = bookingCode; | 1081 _json["bookingCode"] = bookingCode; |
1082 } | 1082 } |
1083 if (bookingCodeCount != null) { | 1083 if (bookingCodeCount != null) { |
1084 _json["bookingCodeCount"] = bookingCodeCount; | 1084 _json["bookingCodeCount"] = bookingCodeCount; |
1085 } | 1085 } |
1086 if (cabin != null) { | 1086 if (cabin != null) { |
1087 _json["cabin"] = cabin; | 1087 _json["cabin"] = cabin; |
1088 } | 1088 } |
1089 if (connectionDuration != null) { | 1089 if (connectionDuration != null) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 freeBaggageOption = _json["freeBaggageOption"].map((value) => new FreeBagg
ageAllowance.fromJson(value)).toList(); | 1141 freeBaggageOption = _json["freeBaggageOption"].map((value) => new FreeBagg
ageAllowance.fromJson(value)).toList(); |
1142 } | 1142 } |
1143 if (_json.containsKey("kind")) { | 1143 if (_json.containsKey("kind")) { |
1144 kind = _json["kind"]; | 1144 kind = _json["kind"]; |
1145 } | 1145 } |
1146 if (_json.containsKey("segmentId")) { | 1146 if (_json.containsKey("segmentId")) { |
1147 segmentId = _json["segmentId"]; | 1147 segmentId = _json["segmentId"]; |
1148 } | 1148 } |
1149 } | 1149 } |
1150 | 1150 |
1151 core.Map toJson() { | 1151 core.Map<core.String, core.Object> toJson() { |
1152 var _json = new core.Map(); | 1152 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1153 if (fareId != null) { | 1153 if (fareId != null) { |
1154 _json["fareId"] = fareId; | 1154 _json["fareId"] = fareId; |
1155 } | 1155 } |
1156 if (freeBaggageOption != null) { | 1156 if (freeBaggageOption != null) { |
1157 _json["freeBaggageOption"] = freeBaggageOption.map((value) => (value).toJs
on()).toList(); | 1157 _json["freeBaggageOption"] = freeBaggageOption.map((value) => (value).toJs
on()).toList(); |
1158 } | 1158 } |
1159 if (kind != null) { | 1159 if (kind != null) { |
1160 _json["kind"] = kind; | 1160 _json["kind"] = kind; |
1161 } | 1161 } |
1162 if (segmentId != null) { | 1162 if (segmentId != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 duration = _json["duration"]; | 1196 duration = _json["duration"]; |
1197 } | 1197 } |
1198 if (_json.containsKey("kind")) { | 1198 if (_json.containsKey("kind")) { |
1199 kind = _json["kind"]; | 1199 kind = _json["kind"]; |
1200 } | 1200 } |
1201 if (_json.containsKey("segment")) { | 1201 if (_json.containsKey("segment")) { |
1202 segment = _json["segment"].map((value) => new SegmentInfo.fromJson(value))
.toList(); | 1202 segment = _json["segment"].map((value) => new SegmentInfo.fromJson(value))
.toList(); |
1203 } | 1203 } |
1204 } | 1204 } |
1205 | 1205 |
1206 core.Map toJson() { | 1206 core.Map<core.String, core.Object> toJson() { |
1207 var _json = new core.Map(); | 1207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1208 if (duration != null) { | 1208 if (duration != null) { |
1209 _json["duration"] = duration; | 1209 _json["duration"] = duration; |
1210 } | 1210 } |
1211 if (kind != null) { | 1211 if (kind != null) { |
1212 _json["kind"] = kind; | 1212 _json["kind"] = kind; |
1213 } | 1213 } |
1214 if (segment != null) { | 1214 if (segment != null) { |
1215 _json["segment"] = segment.map((value) => (value).toJson()).toList(); | 1215 _json["segment"] = segment.map((value) => (value).toJson()).toList(); |
1216 } | 1216 } |
1217 return _json; | 1217 return _json; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1296 permittedDepartureTime = new TimeOfDayRange.fromJson(_json["permittedDepar
tureTime"]); | 1296 permittedDepartureTime = new TimeOfDayRange.fromJson(_json["permittedDepar
tureTime"]); |
1297 } | 1297 } |
1298 if (_json.containsKey("preferredCabin")) { | 1298 if (_json.containsKey("preferredCabin")) { |
1299 preferredCabin = _json["preferredCabin"]; | 1299 preferredCabin = _json["preferredCabin"]; |
1300 } | 1300 } |
1301 if (_json.containsKey("prohibitedCarrier")) { | 1301 if (_json.containsKey("prohibitedCarrier")) { |
1302 prohibitedCarrier = _json["prohibitedCarrier"]; | 1302 prohibitedCarrier = _json["prohibitedCarrier"]; |
1303 } | 1303 } |
1304 } | 1304 } |
1305 | 1305 |
1306 core.Map toJson() { | 1306 core.Map<core.String, core.Object> toJson() { |
1307 var _json = new core.Map(); | 1307 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1308 if (alliance != null) { | 1308 if (alliance != null) { |
1309 _json["alliance"] = alliance; | 1309 _json["alliance"] = alliance; |
1310 } | 1310 } |
1311 if (date != null) { | 1311 if (date != null) { |
1312 _json["date"] = date; | 1312 _json["date"] = date; |
1313 } | 1313 } |
1314 if (destination != null) { | 1314 if (destination != null) { |
1315 _json["destination"] = destination; | 1315 _json["destination"] = destination; |
1316 } | 1316 } |
1317 if (kind != null) { | 1317 if (kind != null) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 id = _json["id"]; | 1361 id = _json["id"]; |
1362 } | 1362 } |
1363 if (_json.containsKey("kind")) { | 1363 if (_json.containsKey("kind")) { |
1364 kind = _json["kind"]; | 1364 kind = _json["kind"]; |
1365 } | 1365 } |
1366 if (_json.containsKey("name")) { | 1366 if (_json.containsKey("name")) { |
1367 name = _json["name"]; | 1367 name = _json["name"]; |
1368 } | 1368 } |
1369 } | 1369 } |
1370 | 1370 |
1371 core.Map toJson() { | 1371 core.Map<core.String, core.Object> toJson() { |
1372 var _json = new core.Map(); | 1372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1373 if (id != null) { | 1373 if (id != null) { |
1374 _json["id"] = id; | 1374 _json["id"] = id; |
1375 } | 1375 } |
1376 if (kind != null) { | 1376 if (kind != null) { |
1377 _json["kind"] = kind; | 1377 _json["kind"] = kind; |
1378 } | 1378 } |
1379 if (name != null) { | 1379 if (name != null) { |
1380 _json["name"] = name; | 1380 _json["name"] = name; |
1381 } | 1381 } |
1382 return _json; | 1382 return _json; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1420 id = _json["id"]; | 1420 id = _json["id"]; |
1421 } | 1421 } |
1422 if (_json.containsKey("kind")) { | 1422 if (_json.containsKey("kind")) { |
1423 kind = _json["kind"]; | 1423 kind = _json["kind"]; |
1424 } | 1424 } |
1425 if (_json.containsKey("salePrice")) { | 1425 if (_json.containsKey("salePrice")) { |
1426 salePrice = _json["salePrice"]; | 1426 salePrice = _json["salePrice"]; |
1427 } | 1427 } |
1428 } | 1428 } |
1429 | 1429 |
1430 core.Map toJson() { | 1430 core.Map<core.String, core.Object> toJson() { |
1431 var _json = new core.Map(); | 1431 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1432 if (chargeType != null) { | 1432 if (chargeType != null) { |
1433 _json["chargeType"] = chargeType; | 1433 _json["chargeType"] = chargeType; |
1434 } | 1434 } |
1435 if (code != null) { | 1435 if (code != null) { |
1436 _json["code"] = code; | 1436 _json["code"] = code; |
1437 } | 1437 } |
1438 if (country != null) { | 1438 if (country != null) { |
1439 _json["country"] = country; | 1439 _json["country"] = country; |
1440 } | 1440 } |
1441 if (id != null) { | 1441 if (id != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
1471 earliestTime = _json["earliestTime"]; | 1471 earliestTime = _json["earliestTime"]; |
1472 } | 1472 } |
1473 if (_json.containsKey("kind")) { | 1473 if (_json.containsKey("kind")) { |
1474 kind = _json["kind"]; | 1474 kind = _json["kind"]; |
1475 } | 1475 } |
1476 if (_json.containsKey("latestTime")) { | 1476 if (_json.containsKey("latestTime")) { |
1477 latestTime = _json["latestTime"]; | 1477 latestTime = _json["latestTime"]; |
1478 } | 1478 } |
1479 } | 1479 } |
1480 | 1480 |
1481 core.Map toJson() { | 1481 core.Map<core.String, core.Object> toJson() { |
1482 var _json = new core.Map(); | 1482 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1483 if (earliestTime != null) { | 1483 if (earliestTime != null) { |
1484 _json["earliestTime"] = earliestTime; | 1484 _json["earliestTime"] = earliestTime; |
1485 } | 1485 } |
1486 if (kind != null) { | 1486 if (kind != null) { |
1487 _json["kind"] = kind; | 1487 _json["kind"] = kind; |
1488 } | 1488 } |
1489 if (latestTime != null) { | 1489 if (latestTime != null) { |
1490 _json["latestTime"] = latestTime; | 1490 _json["latestTime"] = latestTime; |
1491 } | 1491 } |
1492 return _json; | 1492 return _json; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1525 pricing = _json["pricing"].map((value) => new PricingInfo.fromJson(value))
.toList(); | 1525 pricing = _json["pricing"].map((value) => new PricingInfo.fromJson(value))
.toList(); |
1526 } | 1526 } |
1527 if (_json.containsKey("saleTotal")) { | 1527 if (_json.containsKey("saleTotal")) { |
1528 saleTotal = _json["saleTotal"]; | 1528 saleTotal = _json["saleTotal"]; |
1529 } | 1529 } |
1530 if (_json.containsKey("slice")) { | 1530 if (_json.containsKey("slice")) { |
1531 slice = _json["slice"].map((value) => new SliceInfo.fromJson(value)).toLis
t(); | 1531 slice = _json["slice"].map((value) => new SliceInfo.fromJson(value)).toLis
t(); |
1532 } | 1532 } |
1533 } | 1533 } |
1534 | 1534 |
1535 core.Map toJson() { | 1535 core.Map<core.String, core.Object> toJson() { |
1536 var _json = new core.Map(); | 1536 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1537 if (id != null) { | 1537 if (id != null) { |
1538 _json["id"] = id; | 1538 _json["id"] = id; |
1539 } | 1539 } |
1540 if (kind != null) { | 1540 if (kind != null) { |
1541 _json["kind"] = kind; | 1541 _json["kind"] = kind; |
1542 } | 1542 } |
1543 if (pricing != null) { | 1543 if (pricing != null) { |
1544 _json["pricing"] = pricing.map((value) => (value).toJson()).toList(); | 1544 _json["pricing"] = pricing.map((value) => (value).toJson()).toList(); |
1545 } | 1545 } |
1546 if (saleTotal != null) { | 1546 if (saleTotal != null) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 slice = _json["slice"].map((value) => new SliceInput.fromJson(value)).toLi
st(); | 1603 slice = _json["slice"].map((value) => new SliceInput.fromJson(value)).toLi
st(); |
1604 } | 1604 } |
1605 if (_json.containsKey("solutions")) { | 1605 if (_json.containsKey("solutions")) { |
1606 solutions = _json["solutions"]; | 1606 solutions = _json["solutions"]; |
1607 } | 1607 } |
1608 if (_json.containsKey("ticketingCountry")) { | 1608 if (_json.containsKey("ticketingCountry")) { |
1609 ticketingCountry = _json["ticketingCountry"]; | 1609 ticketingCountry = _json["ticketingCountry"]; |
1610 } | 1610 } |
1611 } | 1611 } |
1612 | 1612 |
1613 core.Map toJson() { | 1613 core.Map<core.String, core.Object> toJson() { |
1614 var _json = new core.Map(); | 1614 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1615 if (maxPrice != null) { | 1615 if (maxPrice != null) { |
1616 _json["maxPrice"] = maxPrice; | 1616 _json["maxPrice"] = maxPrice; |
1617 } | 1617 } |
1618 if (passengers != null) { | 1618 if (passengers != null) { |
1619 _json["passengers"] = (passengers).toJson(); | 1619 _json["passengers"] = (passengers).toJson(); |
1620 } | 1620 } |
1621 if (refundable != null) { | 1621 if (refundable != null) { |
1622 _json["refundable"] = refundable; | 1622 _json["refundable"] = refundable; |
1623 } | 1623 } |
1624 if (saleCountry != null) { | 1624 if (saleCountry != null) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 kind = _json["kind"]; | 1661 kind = _json["kind"]; |
1662 } | 1662 } |
1663 if (_json.containsKey("requestId")) { | 1663 if (_json.containsKey("requestId")) { |
1664 requestId = _json["requestId"]; | 1664 requestId = _json["requestId"]; |
1665 } | 1665 } |
1666 if (_json.containsKey("tripOption")) { | 1666 if (_json.containsKey("tripOption")) { |
1667 tripOption = _json["tripOption"].map((value) => new TripOption.fromJson(va
lue)).toList(); | 1667 tripOption = _json["tripOption"].map((value) => new TripOption.fromJson(va
lue)).toList(); |
1668 } | 1668 } |
1669 } | 1669 } |
1670 | 1670 |
1671 core.Map toJson() { | 1671 core.Map<core.String, core.Object> toJson() { |
1672 var _json = new core.Map(); | 1672 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1673 if (data != null) { | 1673 if (data != null) { |
1674 _json["data"] = (data).toJson(); | 1674 _json["data"] = (data).toJson(); |
1675 } | 1675 } |
1676 if (kind != null) { | 1676 if (kind != null) { |
1677 _json["kind"] = kind; | 1677 _json["kind"] = kind; |
1678 } | 1678 } |
1679 if (requestId != null) { | 1679 if (requestId != null) { |
1680 _json["requestId"] = requestId; | 1680 _json["requestId"] = requestId; |
1681 } | 1681 } |
1682 if (tripOption != null) { | 1682 if (tripOption != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
1695 TripOptionsRequest request; | 1695 TripOptionsRequest request; |
1696 | 1696 |
1697 TripsSearchRequest(); | 1697 TripsSearchRequest(); |
1698 | 1698 |
1699 TripsSearchRequest.fromJson(core.Map _json) { | 1699 TripsSearchRequest.fromJson(core.Map _json) { |
1700 if (_json.containsKey("request")) { | 1700 if (_json.containsKey("request")) { |
1701 request = new TripOptionsRequest.fromJson(_json["request"]); | 1701 request = new TripOptionsRequest.fromJson(_json["request"]); |
1702 } | 1702 } |
1703 } | 1703 } |
1704 | 1704 |
1705 core.Map toJson() { | 1705 core.Map<core.String, core.Object> toJson() { |
1706 var _json = new core.Map(); | 1706 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1707 if (request != null) { | 1707 if (request != null) { |
1708 _json["request"] = (request).toJson(); | 1708 _json["request"] = (request).toJson(); |
1709 } | 1709 } |
1710 return _json; | 1710 return _json; |
1711 } | 1711 } |
1712 } | 1712 } |
1713 | 1713 |
1714 /** A QPX Express search response. */ | 1714 /** A QPX Express search response. */ |
1715 class TripsSearchResponse { | 1715 class TripsSearchResponse { |
1716 /** | 1716 /** |
1717 * Identifies this as a QPX Express API search response resource. Value: the | 1717 * Identifies this as a QPX Express API search response resource. Value: the |
1718 * fixed string qpxExpress#tripsSearch. | 1718 * fixed string qpxExpress#tripsSearch. |
1719 */ | 1719 */ |
1720 core.String kind; | 1720 core.String kind; |
1721 /** All possible solutions to the QPX Express search request. */ | 1721 /** All possible solutions to the QPX Express search request. */ |
1722 TripOptionsResponse trips; | 1722 TripOptionsResponse trips; |
1723 | 1723 |
1724 TripsSearchResponse(); | 1724 TripsSearchResponse(); |
1725 | 1725 |
1726 TripsSearchResponse.fromJson(core.Map _json) { | 1726 TripsSearchResponse.fromJson(core.Map _json) { |
1727 if (_json.containsKey("kind")) { | 1727 if (_json.containsKey("kind")) { |
1728 kind = _json["kind"]; | 1728 kind = _json["kind"]; |
1729 } | 1729 } |
1730 if (_json.containsKey("trips")) { | 1730 if (_json.containsKey("trips")) { |
1731 trips = new TripOptionsResponse.fromJson(_json["trips"]); | 1731 trips = new TripOptionsResponse.fromJson(_json["trips"]); |
1732 } | 1732 } |
1733 } | 1733 } |
1734 | 1734 |
1735 core.Map toJson() { | 1735 core.Map<core.String, core.Object> toJson() { |
1736 var _json = new core.Map(); | 1736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1737 if (kind != null) { | 1737 if (kind != null) { |
1738 _json["kind"] = kind; | 1738 _json["kind"] = kind; |
1739 } | 1739 } |
1740 if (trips != null) { | 1740 if (trips != null) { |
1741 _json["trips"] = (trips).toJson(); | 1741 _json["trips"] = (trips).toJson(); |
1742 } | 1742 } |
1743 return _json; | 1743 return _json; |
1744 } | 1744 } |
1745 } | 1745 } |
OLD | NEW |