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.adsensehost.v4_1; | 3 library googleapis.adsensehost.v4_1; |
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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 kind = _json["kind"]; | 1499 kind = _json["kind"]; |
1500 } | 1500 } |
1501 if (_json.containsKey("name")) { | 1501 if (_json.containsKey("name")) { |
1502 name = _json["name"]; | 1502 name = _json["name"]; |
1503 } | 1503 } |
1504 if (_json.containsKey("status")) { | 1504 if (_json.containsKey("status")) { |
1505 status = _json["status"]; | 1505 status = _json["status"]; |
1506 } | 1506 } |
1507 } | 1507 } |
1508 | 1508 |
1509 core.Map toJson() { | 1509 core.Map<core.String, core.Object> toJson() { |
1510 var _json = new core.Map(); | 1510 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1511 if (id != null) { | 1511 if (id != null) { |
1512 _json["id"] = id; | 1512 _json["id"] = id; |
1513 } | 1513 } |
1514 if (kind != null) { | 1514 if (kind != null) { |
1515 _json["kind"] = kind; | 1515 _json["kind"] = kind; |
1516 } | 1516 } |
1517 if (name != null) { | 1517 if (name != null) { |
1518 _json["name"] = name; | 1518 _json["name"] = name; |
1519 } | 1519 } |
1520 if (status != null) { | 1520 if (status != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
1539 etag = _json["etag"]; | 1539 etag = _json["etag"]; |
1540 } | 1540 } |
1541 if (_json.containsKey("items")) { | 1541 if (_json.containsKey("items")) { |
1542 items = _json["items"].map((value) => new Account.fromJson(value)).toList(
); | 1542 items = _json["items"].map((value) => new Account.fromJson(value)).toList(
); |
1543 } | 1543 } |
1544 if (_json.containsKey("kind")) { | 1544 if (_json.containsKey("kind")) { |
1545 kind = _json["kind"]; | 1545 kind = _json["kind"]; |
1546 } | 1546 } |
1547 } | 1547 } |
1548 | 1548 |
1549 core.Map toJson() { | 1549 core.Map<core.String, core.Object> toJson() { |
1550 var _json = new core.Map(); | 1550 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1551 if (etag != null) { | 1551 if (etag != null) { |
1552 _json["etag"] = etag; | 1552 _json["etag"] = etag; |
1553 } | 1553 } |
1554 if (items != null) { | 1554 if (items != null) { |
1555 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1555 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1556 } | 1556 } |
1557 if (kind != null) { | 1557 if (kind != null) { |
1558 _json["kind"] = kind; | 1558 _json["kind"] = kind; |
1559 } | 1559 } |
1560 return _json; | 1560 return _json; |
(...skipping 28 matching lines...) Expand all Loading... |
1589 kind = _json["kind"]; | 1589 kind = _json["kind"]; |
1590 } | 1590 } |
1591 if (_json.containsKey("productCode")) { | 1591 if (_json.containsKey("productCode")) { |
1592 productCode = _json["productCode"]; | 1592 productCode = _json["productCode"]; |
1593 } | 1593 } |
1594 if (_json.containsKey("supportsReporting")) { | 1594 if (_json.containsKey("supportsReporting")) { |
1595 supportsReporting = _json["supportsReporting"]; | 1595 supportsReporting = _json["supportsReporting"]; |
1596 } | 1596 } |
1597 } | 1597 } |
1598 | 1598 |
1599 core.Map toJson() { | 1599 core.Map<core.String, core.Object> toJson() { |
1600 var _json = new core.Map(); | 1600 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1601 if (arcOptIn != null) { | 1601 if (arcOptIn != null) { |
1602 _json["arcOptIn"] = arcOptIn; | 1602 _json["arcOptIn"] = arcOptIn; |
1603 } | 1603 } |
1604 if (id != null) { | 1604 if (id != null) { |
1605 _json["id"] = id; | 1605 _json["id"] = id; |
1606 } | 1606 } |
1607 if (kind != null) { | 1607 if (kind != null) { |
1608 _json["kind"] = kind; | 1608 _json["kind"] = kind; |
1609 } | 1609 } |
1610 if (productCode != null) { | 1610 if (productCode != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
1640 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList
(); | 1640 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList
(); |
1641 } | 1641 } |
1642 if (_json.containsKey("kind")) { | 1642 if (_json.containsKey("kind")) { |
1643 kind = _json["kind"]; | 1643 kind = _json["kind"]; |
1644 } | 1644 } |
1645 if (_json.containsKey("nextPageToken")) { | 1645 if (_json.containsKey("nextPageToken")) { |
1646 nextPageToken = _json["nextPageToken"]; | 1646 nextPageToken = _json["nextPageToken"]; |
1647 } | 1647 } |
1648 } | 1648 } |
1649 | 1649 |
1650 core.Map toJson() { | 1650 core.Map<core.String, core.Object> toJson() { |
1651 var _json = new core.Map(); | 1651 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1652 if (etag != null) { | 1652 if (etag != null) { |
1653 _json["etag"] = etag; | 1653 _json["etag"] = etag; |
1654 } | 1654 } |
1655 if (items != null) { | 1655 if (items != null) { |
1656 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1656 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1657 } | 1657 } |
1658 if (kind != null) { | 1658 if (kind != null) { |
1659 _json["kind"] = kind; | 1659 _json["kind"] = kind; |
1660 } | 1660 } |
1661 if (nextPageToken != null) { | 1661 if (nextPageToken != null) { |
(...skipping 13 matching lines...) Expand all Loading... |
1675 | 1675 |
1676 AdCode.fromJson(core.Map _json) { | 1676 AdCode.fromJson(core.Map _json) { |
1677 if (_json.containsKey("adCode")) { | 1677 if (_json.containsKey("adCode")) { |
1678 adCode = _json["adCode"]; | 1678 adCode = _json["adCode"]; |
1679 } | 1679 } |
1680 if (_json.containsKey("kind")) { | 1680 if (_json.containsKey("kind")) { |
1681 kind = _json["kind"]; | 1681 kind = _json["kind"]; |
1682 } | 1682 } |
1683 } | 1683 } |
1684 | 1684 |
1685 core.Map toJson() { | 1685 core.Map<core.String, core.Object> toJson() { |
1686 var _json = new core.Map(); | 1686 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1687 if (adCode != null) { | 1687 if (adCode != null) { |
1688 _json["adCode"] = adCode; | 1688 _json["adCode"] = adCode; |
1689 } | 1689 } |
1690 if (kind != null) { | 1690 if (kind != null) { |
1691 _json["kind"] = kind; | 1691 _json["kind"] = kind; |
1692 } | 1692 } |
1693 return _json; | 1693 return _json; |
1694 } | 1694 } |
1695 } | 1695 } |
1696 | 1696 |
(...skipping 26 matching lines...) Expand all Loading... |
1723 text = _json["text"]; | 1723 text = _json["text"]; |
1724 } | 1724 } |
1725 if (_json.containsKey("title")) { | 1725 if (_json.containsKey("title")) { |
1726 title = _json["title"]; | 1726 title = _json["title"]; |
1727 } | 1727 } |
1728 if (_json.containsKey("url")) { | 1728 if (_json.containsKey("url")) { |
1729 url = _json["url"]; | 1729 url = _json["url"]; |
1730 } | 1730 } |
1731 } | 1731 } |
1732 | 1732 |
1733 core.Map toJson() { | 1733 core.Map<core.String, core.Object> toJson() { |
1734 var _json = new core.Map(); | 1734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1735 if (background != null) { | 1735 if (background != null) { |
1736 _json["background"] = background; | 1736 _json["background"] = background; |
1737 } | 1737 } |
1738 if (border != null) { | 1738 if (border != null) { |
1739 _json["border"] = border; | 1739 _json["border"] = border; |
1740 } | 1740 } |
1741 if (text != null) { | 1741 if (text != null) { |
1742 _json["text"] = text; | 1742 _json["text"] = text; |
1743 } | 1743 } |
1744 if (title != null) { | 1744 if (title != null) { |
(...skipping 23 matching lines...) Expand all Loading... |
1768 | 1768 |
1769 AdStyleFont.fromJson(core.Map _json) { | 1769 AdStyleFont.fromJson(core.Map _json) { |
1770 if (_json.containsKey("family")) { | 1770 if (_json.containsKey("family")) { |
1771 family = _json["family"]; | 1771 family = _json["family"]; |
1772 } | 1772 } |
1773 if (_json.containsKey("size")) { | 1773 if (_json.containsKey("size")) { |
1774 size = _json["size"]; | 1774 size = _json["size"]; |
1775 } | 1775 } |
1776 } | 1776 } |
1777 | 1777 |
1778 core.Map toJson() { | 1778 core.Map<core.String, core.Object> toJson() { |
1779 var _json = new core.Map(); | 1779 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1780 if (family != null) { | 1780 if (family != null) { |
1781 _json["family"] = family; | 1781 _json["family"] = family; |
1782 } | 1782 } |
1783 if (size != null) { | 1783 if (size != null) { |
1784 _json["size"] = size; | 1784 _json["size"] = size; |
1785 } | 1785 } |
1786 return _json; | 1786 return _json; |
1787 } | 1787 } |
1788 } | 1788 } |
1789 | 1789 |
(...skipping 22 matching lines...) Expand all Loading... |
1812 corners = _json["corners"]; | 1812 corners = _json["corners"]; |
1813 } | 1813 } |
1814 if (_json.containsKey("font")) { | 1814 if (_json.containsKey("font")) { |
1815 font = new AdStyleFont.fromJson(_json["font"]); | 1815 font = new AdStyleFont.fromJson(_json["font"]); |
1816 } | 1816 } |
1817 if (_json.containsKey("kind")) { | 1817 if (_json.containsKey("kind")) { |
1818 kind = _json["kind"]; | 1818 kind = _json["kind"]; |
1819 } | 1819 } |
1820 } | 1820 } |
1821 | 1821 |
1822 core.Map toJson() { | 1822 core.Map<core.String, core.Object> toJson() { |
1823 var _json = new core.Map(); | 1823 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1824 if (colors != null) { | 1824 if (colors != null) { |
1825 _json["colors"] = (colors).toJson(); | 1825 _json["colors"] = (colors).toJson(); |
1826 } | 1826 } |
1827 if (corners != null) { | 1827 if (corners != null) { |
1828 _json["corners"] = corners; | 1828 _json["corners"] = corners; |
1829 } | 1829 } |
1830 if (font != null) { | 1830 if (font != null) { |
1831 _json["font"] = (font).toJson(); | 1831 _json["font"] = (font).toJson(); |
1832 } | 1832 } |
1833 if (kind != null) { | 1833 if (kind != null) { |
(...skipping 23 matching lines...) Expand all Loading... |
1857 color = _json["color"]; | 1857 color = _json["color"]; |
1858 } | 1858 } |
1859 if (_json.containsKey("type")) { | 1859 if (_json.containsKey("type")) { |
1860 type = _json["type"]; | 1860 type = _json["type"]; |
1861 } | 1861 } |
1862 if (_json.containsKey("url")) { | 1862 if (_json.containsKey("url")) { |
1863 url = _json["url"]; | 1863 url = _json["url"]; |
1864 } | 1864 } |
1865 } | 1865 } |
1866 | 1866 |
1867 core.Map toJson() { | 1867 core.Map<core.String, core.Object> toJson() { |
1868 var _json = new core.Map(); | 1868 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1869 if (color != null) { | 1869 if (color != null) { |
1870 _json["color"] = color; | 1870 _json["color"] = color; |
1871 } | 1871 } |
1872 if (type != null) { | 1872 if (type != null) { |
1873 _json["type"] = type; | 1873 _json["type"] = type; |
1874 } | 1874 } |
1875 if (url != null) { | 1875 if (url != null) { |
1876 _json["url"] = url; | 1876 _json["url"] = url; |
1877 } | 1877 } |
1878 return _json; | 1878 return _json; |
(...skipping 23 matching lines...) Expand all Loading... |
1902 backupOption = new AdUnitContentAdsSettingsBackupOption.fromJson(_json["ba
ckupOption"]); | 1902 backupOption = new AdUnitContentAdsSettingsBackupOption.fromJson(_json["ba
ckupOption"]); |
1903 } | 1903 } |
1904 if (_json.containsKey("size")) { | 1904 if (_json.containsKey("size")) { |
1905 size = _json["size"]; | 1905 size = _json["size"]; |
1906 } | 1906 } |
1907 if (_json.containsKey("type")) { | 1907 if (_json.containsKey("type")) { |
1908 type = _json["type"]; | 1908 type = _json["type"]; |
1909 } | 1909 } |
1910 } | 1910 } |
1911 | 1911 |
1912 core.Map toJson() { | 1912 core.Map<core.String, core.Object> toJson() { |
1913 var _json = new core.Map(); | 1913 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1914 if (backupOption != null) { | 1914 if (backupOption != null) { |
1915 _json["backupOption"] = (backupOption).toJson(); | 1915 _json["backupOption"] = (backupOption).toJson(); |
1916 } | 1916 } |
1917 if (size != null) { | 1917 if (size != null) { |
1918 _json["size"] = size; | 1918 _json["size"] = size; |
1919 } | 1919 } |
1920 if (type != null) { | 1920 if (type != null) { |
1921 _json["type"] = type; | 1921 _json["type"] = type; |
1922 } | 1922 } |
1923 return _json; | 1923 return _json; |
(...skipping 21 matching lines...) Expand all Loading... |
1945 scriptingLanguage = _json["scriptingLanguage"]; | 1945 scriptingLanguage = _json["scriptingLanguage"]; |
1946 } | 1946 } |
1947 if (_json.containsKey("size")) { | 1947 if (_json.containsKey("size")) { |
1948 size = _json["size"]; | 1948 size = _json["size"]; |
1949 } | 1949 } |
1950 if (_json.containsKey("type")) { | 1950 if (_json.containsKey("type")) { |
1951 type = _json["type"]; | 1951 type = _json["type"]; |
1952 } | 1952 } |
1953 } | 1953 } |
1954 | 1954 |
1955 core.Map toJson() { | 1955 core.Map<core.String, core.Object> toJson() { |
1956 var _json = new core.Map(); | 1956 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1957 if (markupLanguage != null) { | 1957 if (markupLanguage != null) { |
1958 _json["markupLanguage"] = markupLanguage; | 1958 _json["markupLanguage"] = markupLanguage; |
1959 } | 1959 } |
1960 if (scriptingLanguage != null) { | 1960 if (scriptingLanguage != null) { |
1961 _json["scriptingLanguage"] = scriptingLanguage; | 1961 _json["scriptingLanguage"] = scriptingLanguage; |
1962 } | 1962 } |
1963 if (size != null) { | 1963 if (size != null) { |
1964 _json["size"] = size; | 1964 _json["size"] = size; |
1965 } | 1965 } |
1966 if (type != null) { | 1966 if (type != null) { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2028 mobileContentAdsSettings = new AdUnitMobileContentAdsSettings.fromJson(_js
on["mobileContentAdsSettings"]); | 2028 mobileContentAdsSettings = new AdUnitMobileContentAdsSettings.fromJson(_js
on["mobileContentAdsSettings"]); |
2029 } | 2029 } |
2030 if (_json.containsKey("name")) { | 2030 if (_json.containsKey("name")) { |
2031 name = _json["name"]; | 2031 name = _json["name"]; |
2032 } | 2032 } |
2033 if (_json.containsKey("status")) { | 2033 if (_json.containsKey("status")) { |
2034 status = _json["status"]; | 2034 status = _json["status"]; |
2035 } | 2035 } |
2036 } | 2036 } |
2037 | 2037 |
2038 core.Map toJson() { | 2038 core.Map<core.String, core.Object> toJson() { |
2039 var _json = new core.Map(); | 2039 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2040 if (code != null) { | 2040 if (code != null) { |
2041 _json["code"] = code; | 2041 _json["code"] = code; |
2042 } | 2042 } |
2043 if (contentAdsSettings != null) { | 2043 if (contentAdsSettings != null) { |
2044 _json["contentAdsSettings"] = (contentAdsSettings).toJson(); | 2044 _json["contentAdsSettings"] = (contentAdsSettings).toJson(); |
2045 } | 2045 } |
2046 if (customStyle != null) { | 2046 if (customStyle != null) { |
2047 _json["customStyle"] = (customStyle).toJson(); | 2047 _json["customStyle"] = (customStyle).toJson(); |
2048 } | 2048 } |
2049 if (id != null) { | 2049 if (id != null) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2088 items = _json["items"].map((value) => new AdUnit.fromJson(value)).toList()
; | 2088 items = _json["items"].map((value) => new AdUnit.fromJson(value)).toList()
; |
2089 } | 2089 } |
2090 if (_json.containsKey("kind")) { | 2090 if (_json.containsKey("kind")) { |
2091 kind = _json["kind"]; | 2091 kind = _json["kind"]; |
2092 } | 2092 } |
2093 if (_json.containsKey("nextPageToken")) { | 2093 if (_json.containsKey("nextPageToken")) { |
2094 nextPageToken = _json["nextPageToken"]; | 2094 nextPageToken = _json["nextPageToken"]; |
2095 } | 2095 } |
2096 } | 2096 } |
2097 | 2097 |
2098 core.Map toJson() { | 2098 core.Map<core.String, core.Object> toJson() { |
2099 var _json = new core.Map(); | 2099 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2100 if (etag != null) { | 2100 if (etag != null) { |
2101 _json["etag"] = etag; | 2101 _json["etag"] = etag; |
2102 } | 2102 } |
2103 if (items != null) { | 2103 if (items != null) { |
2104 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2104 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2105 } | 2105 } |
2106 if (kind != null) { | 2106 if (kind != null) { |
2107 _json["kind"] = kind; | 2107 _json["kind"] = kind; |
2108 } | 2108 } |
2109 if (nextPageToken != null) { | 2109 if (nextPageToken != null) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 userLocale = _json["userLocale"]; | 2173 userLocale = _json["userLocale"]; |
2174 } | 2174 } |
2175 if (_json.containsKey("websiteLocale")) { | 2175 if (_json.containsKey("websiteLocale")) { |
2176 websiteLocale = _json["websiteLocale"]; | 2176 websiteLocale = _json["websiteLocale"]; |
2177 } | 2177 } |
2178 if (_json.containsKey("websiteUrl")) { | 2178 if (_json.containsKey("websiteUrl")) { |
2179 websiteUrl = _json["websiteUrl"]; | 2179 websiteUrl = _json["websiteUrl"]; |
2180 } | 2180 } |
2181 } | 2181 } |
2182 | 2182 |
2183 core.Map toJson() { | 2183 core.Map<core.String, core.Object> toJson() { |
2184 var _json = new core.Map(); | 2184 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2185 if (accountId != null) { | 2185 if (accountId != null) { |
2186 _json["accountId"] = accountId; | 2186 _json["accountId"] = accountId; |
2187 } | 2187 } |
2188 if (id != null) { | 2188 if (id != null) { |
2189 _json["id"] = id; | 2189 _json["id"] = id; |
2190 } | 2190 } |
2191 if (kind != null) { | 2191 if (kind != null) { |
2192 _json["kind"] = kind; | 2192 _json["kind"] = kind; |
2193 } | 2193 } |
2194 if (productCodes != null) { | 2194 if (productCodes != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2237 id = _json["id"]; | 2237 id = _json["id"]; |
2238 } | 2238 } |
2239 if (_json.containsKey("kind")) { | 2239 if (_json.containsKey("kind")) { |
2240 kind = _json["kind"]; | 2240 kind = _json["kind"]; |
2241 } | 2241 } |
2242 if (_json.containsKey("name")) { | 2242 if (_json.containsKey("name")) { |
2243 name = _json["name"]; | 2243 name = _json["name"]; |
2244 } | 2244 } |
2245 } | 2245 } |
2246 | 2246 |
2247 core.Map toJson() { | 2247 core.Map<core.String, core.Object> toJson() { |
2248 var _json = new core.Map(); | 2248 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2249 if (code != null) { | 2249 if (code != null) { |
2250 _json["code"] = code; | 2250 _json["code"] = code; |
2251 } | 2251 } |
2252 if (id != null) { | 2252 if (id != null) { |
2253 _json["id"] = id; | 2253 _json["id"] = id; |
2254 } | 2254 } |
2255 if (kind != null) { | 2255 if (kind != null) { |
2256 _json["kind"] = kind; | 2256 _json["kind"] = kind; |
2257 } | 2257 } |
2258 if (name != null) { | 2258 if (name != null) { |
(...skipping 26 matching lines...) Expand all Loading... |
2285 items = _json["items"].map((value) => new CustomChannel.fromJson(value)).t
oList(); | 2285 items = _json["items"].map((value) => new CustomChannel.fromJson(value)).t
oList(); |
2286 } | 2286 } |
2287 if (_json.containsKey("kind")) { | 2287 if (_json.containsKey("kind")) { |
2288 kind = _json["kind"]; | 2288 kind = _json["kind"]; |
2289 } | 2289 } |
2290 if (_json.containsKey("nextPageToken")) { | 2290 if (_json.containsKey("nextPageToken")) { |
2291 nextPageToken = _json["nextPageToken"]; | 2291 nextPageToken = _json["nextPageToken"]; |
2292 } | 2292 } |
2293 } | 2293 } |
2294 | 2294 |
2295 core.Map toJson() { | 2295 core.Map<core.String, core.Object> toJson() { |
2296 var _json = new core.Map(); | 2296 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2297 if (etag != null) { | 2297 if (etag != null) { |
2298 _json["etag"] = etag; | 2298 _json["etag"] = etag; |
2299 } | 2299 } |
2300 if (items != null) { | 2300 if (items != null) { |
2301 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2301 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2302 } | 2302 } |
2303 if (kind != null) { | 2303 if (kind != null) { |
2304 _json["kind"] = kind; | 2304 _json["kind"] = kind; |
2305 } | 2305 } |
2306 if (nextPageToken != null) { | 2306 if (nextPageToken != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
2331 currency = _json["currency"]; | 2331 currency = _json["currency"]; |
2332 } | 2332 } |
2333 if (_json.containsKey("name")) { | 2333 if (_json.containsKey("name")) { |
2334 name = _json["name"]; | 2334 name = _json["name"]; |
2335 } | 2335 } |
2336 if (_json.containsKey("type")) { | 2336 if (_json.containsKey("type")) { |
2337 type = _json["type"]; | 2337 type = _json["type"]; |
2338 } | 2338 } |
2339 } | 2339 } |
2340 | 2340 |
2341 core.Map toJson() { | 2341 core.Map<core.String, core.Object> toJson() { |
2342 var _json = new core.Map(); | 2342 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2343 if (currency != null) { | 2343 if (currency != null) { |
2344 _json["currency"] = currency; | 2344 _json["currency"] = currency; |
2345 } | 2345 } |
2346 if (name != null) { | 2346 if (name != null) { |
2347 _json["name"] = name; | 2347 _json["name"] = name; |
2348 } | 2348 } |
2349 if (type != null) { | 2349 if (type != null) { |
2350 _json["type"] = type; | 2350 _json["type"] = type; |
2351 } | 2351 } |
2352 return _json; | 2352 return _json; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2406 totalMatchedRows = _json["totalMatchedRows"]; | 2406 totalMatchedRows = _json["totalMatchedRows"]; |
2407 } | 2407 } |
2408 if (_json.containsKey("totals")) { | 2408 if (_json.containsKey("totals")) { |
2409 totals = _json["totals"]; | 2409 totals = _json["totals"]; |
2410 } | 2410 } |
2411 if (_json.containsKey("warnings")) { | 2411 if (_json.containsKey("warnings")) { |
2412 warnings = _json["warnings"]; | 2412 warnings = _json["warnings"]; |
2413 } | 2413 } |
2414 } | 2414 } |
2415 | 2415 |
2416 core.Map toJson() { | 2416 core.Map<core.String, core.Object> toJson() { |
2417 var _json = new core.Map(); | 2417 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2418 if (averages != null) { | 2418 if (averages != null) { |
2419 _json["averages"] = averages; | 2419 _json["averages"] = averages; |
2420 } | 2420 } |
2421 if (headers != null) { | 2421 if (headers != null) { |
2422 _json["headers"] = headers.map((value) => (value).toJson()).toList(); | 2422 _json["headers"] = headers.map((value) => (value).toJson()).toList(); |
2423 } | 2423 } |
2424 if (kind != null) { | 2424 if (kind != null) { |
2425 _json["kind"] = kind; | 2425 _json["kind"] = kind; |
2426 } | 2426 } |
2427 if (rows != null) { | 2427 if (rows != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2461 id = _json["id"]; | 2461 id = _json["id"]; |
2462 } | 2462 } |
2463 if (_json.containsKey("kind")) { | 2463 if (_json.containsKey("kind")) { |
2464 kind = _json["kind"]; | 2464 kind = _json["kind"]; |
2465 } | 2465 } |
2466 if (_json.containsKey("urlPattern")) { | 2466 if (_json.containsKey("urlPattern")) { |
2467 urlPattern = _json["urlPattern"]; | 2467 urlPattern = _json["urlPattern"]; |
2468 } | 2468 } |
2469 } | 2469 } |
2470 | 2470 |
2471 core.Map toJson() { | 2471 core.Map<core.String, core.Object> toJson() { |
2472 var _json = new core.Map(); | 2472 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2473 if (id != null) { | 2473 if (id != null) { |
2474 _json["id"] = id; | 2474 _json["id"] = id; |
2475 } | 2475 } |
2476 if (kind != null) { | 2476 if (kind != null) { |
2477 _json["kind"] = kind; | 2477 _json["kind"] = kind; |
2478 } | 2478 } |
2479 if (urlPattern != null) { | 2479 if (urlPattern != null) { |
2480 _json["urlPattern"] = urlPattern; | 2480 _json["urlPattern"] = urlPattern; |
2481 } | 2481 } |
2482 return _json; | 2482 return _json; |
(...skipping 23 matching lines...) Expand all Loading... |
2506 items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toLi
st(); | 2506 items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toLi
st(); |
2507 } | 2507 } |
2508 if (_json.containsKey("kind")) { | 2508 if (_json.containsKey("kind")) { |
2509 kind = _json["kind"]; | 2509 kind = _json["kind"]; |
2510 } | 2510 } |
2511 if (_json.containsKey("nextPageToken")) { | 2511 if (_json.containsKey("nextPageToken")) { |
2512 nextPageToken = _json["nextPageToken"]; | 2512 nextPageToken = _json["nextPageToken"]; |
2513 } | 2513 } |
2514 } | 2514 } |
2515 | 2515 |
2516 core.Map toJson() { | 2516 core.Map<core.String, core.Object> toJson() { |
2517 var _json = new core.Map(); | 2517 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2518 if (etag != null) { | 2518 if (etag != null) { |
2519 _json["etag"] = etag; | 2519 _json["etag"] = etag; |
2520 } | 2520 } |
2521 if (items != null) { | 2521 if (items != null) { |
2522 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2522 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2523 } | 2523 } |
2524 if (kind != null) { | 2524 if (kind != null) { |
2525 _json["kind"] = kind; | 2525 _json["kind"] = kind; |
2526 } | 2526 } |
2527 if (nextPageToken != null) { | 2527 if (nextPageToken != null) { |
2528 _json["nextPageToken"] = nextPageToken; | 2528 _json["nextPageToken"] = nextPageToken; |
2529 } | 2529 } |
2530 return _json; | 2530 return _json; |
2531 } | 2531 } |
2532 } | 2532 } |
OLD | NEW |