| 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 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 * The slices that make up the itinerary of this trip. A slice represents a | 1574 * The slices that make up the itinerary of this trip. A slice represents a |
| 1575 * traveler's intent, the portion of a low-fare search corresponding to a | 1575 * traveler's intent, the portion of a low-fare search corresponding to a |
| 1576 * traveler's request to get between two points. One-way journeys are | 1576 * traveler's request to get between two points. One-way journeys are |
| 1577 * generally expressed using one slice, round-trips using two. An example of a | 1577 * generally expressed using one slice, round-trips using two. An example of a |
| 1578 * one slice trip with three segments might be BOS-SYD, SYD-LAX, LAX-BOS if | 1578 * one slice trip with three segments might be BOS-SYD, SYD-LAX, LAX-BOS if |
| 1579 * the traveler only stopped in SYD and LAX just long enough to change planes. | 1579 * the traveler only stopped in SYD and LAX just long enough to change planes. |
| 1580 */ | 1580 */ |
| 1581 core.List<SliceInput> slice; | 1581 core.List<SliceInput> slice; |
| 1582 /** The number of solutions to return, maximum 500. */ | 1582 /** The number of solutions to return, maximum 500. */ |
| 1583 core.int solutions; | 1583 core.int solutions; |
| 1584 /** IATA country code representing the point of ticketing. */ |
| 1585 core.String ticketingCountry; |
| 1584 | 1586 |
| 1585 TripOptionsRequest(); | 1587 TripOptionsRequest(); |
| 1586 | 1588 |
| 1587 TripOptionsRequest.fromJson(core.Map _json) { | 1589 TripOptionsRequest.fromJson(core.Map _json) { |
| 1588 if (_json.containsKey("maxPrice")) { | 1590 if (_json.containsKey("maxPrice")) { |
| 1589 maxPrice = _json["maxPrice"]; | 1591 maxPrice = _json["maxPrice"]; |
| 1590 } | 1592 } |
| 1591 if (_json.containsKey("passengers")) { | 1593 if (_json.containsKey("passengers")) { |
| 1592 passengers = new PassengerCounts.fromJson(_json["passengers"]); | 1594 passengers = new PassengerCounts.fromJson(_json["passengers"]); |
| 1593 } | 1595 } |
| 1594 if (_json.containsKey("refundable")) { | 1596 if (_json.containsKey("refundable")) { |
| 1595 refundable = _json["refundable"]; | 1597 refundable = _json["refundable"]; |
| 1596 } | 1598 } |
| 1597 if (_json.containsKey("saleCountry")) { | 1599 if (_json.containsKey("saleCountry")) { |
| 1598 saleCountry = _json["saleCountry"]; | 1600 saleCountry = _json["saleCountry"]; |
| 1599 } | 1601 } |
| 1600 if (_json.containsKey("slice")) { | 1602 if (_json.containsKey("slice")) { |
| 1601 slice = _json["slice"].map((value) => new SliceInput.fromJson(value)).toLi
st(); | 1603 slice = _json["slice"].map((value) => new SliceInput.fromJson(value)).toLi
st(); |
| 1602 } | 1604 } |
| 1603 if (_json.containsKey("solutions")) { | 1605 if (_json.containsKey("solutions")) { |
| 1604 solutions = _json["solutions"]; | 1606 solutions = _json["solutions"]; |
| 1605 } | 1607 } |
| 1608 if (_json.containsKey("ticketingCountry")) { |
| 1609 ticketingCountry = _json["ticketingCountry"]; |
| 1610 } |
| 1606 } | 1611 } |
| 1607 | 1612 |
| 1608 core.Map toJson() { | 1613 core.Map toJson() { |
| 1609 var _json = new core.Map(); | 1614 var _json = new core.Map(); |
| 1610 if (maxPrice != null) { | 1615 if (maxPrice != null) { |
| 1611 _json["maxPrice"] = maxPrice; | 1616 _json["maxPrice"] = maxPrice; |
| 1612 } | 1617 } |
| 1613 if (passengers != null) { | 1618 if (passengers != null) { |
| 1614 _json["passengers"] = (passengers).toJson(); | 1619 _json["passengers"] = (passengers).toJson(); |
| 1615 } | 1620 } |
| 1616 if (refundable != null) { | 1621 if (refundable != null) { |
| 1617 _json["refundable"] = refundable; | 1622 _json["refundable"] = refundable; |
| 1618 } | 1623 } |
| 1619 if (saleCountry != null) { | 1624 if (saleCountry != null) { |
| 1620 _json["saleCountry"] = saleCountry; | 1625 _json["saleCountry"] = saleCountry; |
| 1621 } | 1626 } |
| 1622 if (slice != null) { | 1627 if (slice != null) { |
| 1623 _json["slice"] = slice.map((value) => (value).toJson()).toList(); | 1628 _json["slice"] = slice.map((value) => (value).toJson()).toList(); |
| 1624 } | 1629 } |
| 1625 if (solutions != null) { | 1630 if (solutions != null) { |
| 1626 _json["solutions"] = solutions; | 1631 _json["solutions"] = solutions; |
| 1627 } | 1632 } |
| 1633 if (ticketingCountry != null) { |
| 1634 _json["ticketingCountry"] = ticketingCountry; |
| 1635 } |
| 1628 return _json; | 1636 return _json; |
| 1629 } | 1637 } |
| 1630 } | 1638 } |
| 1631 | 1639 |
| 1632 /** A QPX Express search response. */ | 1640 /** A QPX Express search response. */ |
| 1633 class TripOptionsResponse { | 1641 class TripOptionsResponse { |
| 1634 /** Informational data global to list of solutions. */ | 1642 /** Informational data global to list of solutions. */ |
| 1635 Data data; | 1643 Data data; |
| 1636 /** | 1644 /** |
| 1637 * Identifies this as a QPX Express trip response object, which consists of | 1645 * Identifies this as a QPX Express trip response object, which consists of |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1728 var _json = new core.Map(); | 1736 var _json = new core.Map(); |
| 1729 if (kind != null) { | 1737 if (kind != null) { |
| 1730 _json["kind"] = kind; | 1738 _json["kind"] = kind; |
| 1731 } | 1739 } |
| 1732 if (trips != null) { | 1740 if (trips != null) { |
| 1733 _json["trips"] = (trips).toJson(); | 1741 _json["trips"] = (trips).toJson(); |
| 1734 } | 1742 } |
| 1735 return _json; | 1743 return _json; |
| 1736 } | 1744 } |
| 1737 } | 1745 } |
| OLD | NEW |