| 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.mirror.v1; | 3 library googleapis.mirror.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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 features = _json["features"]; | 1197 features = _json["features"]; |
| 1198 } | 1198 } |
| 1199 if (_json.containsKey("password")) { | 1199 if (_json.containsKey("password")) { |
| 1200 password = _json["password"]; | 1200 password = _json["password"]; |
| 1201 } | 1201 } |
| 1202 if (_json.containsKey("userData")) { | 1202 if (_json.containsKey("userData")) { |
| 1203 userData = _json["userData"].map((value) => new UserData.fromJson(value)).
toList(); | 1203 userData = _json["userData"].map((value) => new UserData.fromJson(value)).
toList(); |
| 1204 } | 1204 } |
| 1205 } | 1205 } |
| 1206 | 1206 |
| 1207 core.Map toJson() { | 1207 core.Map<core.String, core.Object> toJson() { |
| 1208 var _json = new core.Map(); | 1208 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1209 if (authTokens != null) { | 1209 if (authTokens != null) { |
| 1210 _json["authTokens"] = authTokens.map((value) => (value).toJson()).toList()
; | 1210 _json["authTokens"] = authTokens.map((value) => (value).toJson()).toList()
; |
| 1211 } | 1211 } |
| 1212 if (features != null) { | 1212 if (features != null) { |
| 1213 _json["features"] = features; | 1213 _json["features"] = features; |
| 1214 } | 1214 } |
| 1215 if (password != null) { | 1215 if (password != null) { |
| 1216 _json["password"] = password; | 1216 _json["password"] = password; |
| 1217 } | 1217 } |
| 1218 if (userData != null) { | 1218 if (userData != null) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1250 contentUrl = _json["contentUrl"]; | 1250 contentUrl = _json["contentUrl"]; |
| 1251 } | 1251 } |
| 1252 if (_json.containsKey("id")) { | 1252 if (_json.containsKey("id")) { |
| 1253 id = _json["id"]; | 1253 id = _json["id"]; |
| 1254 } | 1254 } |
| 1255 if (_json.containsKey("isProcessingContent")) { | 1255 if (_json.containsKey("isProcessingContent")) { |
| 1256 isProcessingContent = _json["isProcessingContent"]; | 1256 isProcessingContent = _json["isProcessingContent"]; |
| 1257 } | 1257 } |
| 1258 } | 1258 } |
| 1259 | 1259 |
| 1260 core.Map toJson() { | 1260 core.Map<core.String, core.Object> toJson() { |
| 1261 var _json = new core.Map(); | 1261 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1262 if (contentType != null) { | 1262 if (contentType != null) { |
| 1263 _json["contentType"] = contentType; | 1263 _json["contentType"] = contentType; |
| 1264 } | 1264 } |
| 1265 if (contentUrl != null) { | 1265 if (contentUrl != null) { |
| 1266 _json["contentUrl"] = contentUrl; | 1266 _json["contentUrl"] = contentUrl; |
| 1267 } | 1267 } |
| 1268 if (id != null) { | 1268 if (id != null) { |
| 1269 _json["id"] = id; | 1269 _json["id"] = id; |
| 1270 } | 1270 } |
| 1271 if (isProcessingContent != null) { | 1271 if (isProcessingContent != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1289 | 1289 |
| 1290 AttachmentsListResponse.fromJson(core.Map _json) { | 1290 AttachmentsListResponse.fromJson(core.Map _json) { |
| 1291 if (_json.containsKey("items")) { | 1291 if (_json.containsKey("items")) { |
| 1292 items = _json["items"].map((value) => new Attachment.fromJson(value)).toLi
st(); | 1292 items = _json["items"].map((value) => new Attachment.fromJson(value)).toLi
st(); |
| 1293 } | 1293 } |
| 1294 if (_json.containsKey("kind")) { | 1294 if (_json.containsKey("kind")) { |
| 1295 kind = _json["kind"]; | 1295 kind = _json["kind"]; |
| 1296 } | 1296 } |
| 1297 } | 1297 } |
| 1298 | 1298 |
| 1299 core.Map toJson() { | 1299 core.Map<core.String, core.Object> toJson() { |
| 1300 var _json = new core.Map(); | 1300 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1301 if (items != null) { | 1301 if (items != null) { |
| 1302 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1302 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1303 } | 1303 } |
| 1304 if (kind != null) { | 1304 if (kind != null) { |
| 1305 _json["kind"] = kind; | 1305 _json["kind"] = kind; |
| 1306 } | 1306 } |
| 1307 return _json; | 1307 return _json; |
| 1308 } | 1308 } |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 class AuthToken { | 1311 class AuthToken { |
| 1312 core.String authToken; | 1312 core.String authToken; |
| 1313 core.String type; | 1313 core.String type; |
| 1314 | 1314 |
| 1315 AuthToken(); | 1315 AuthToken(); |
| 1316 | 1316 |
| 1317 AuthToken.fromJson(core.Map _json) { | 1317 AuthToken.fromJson(core.Map _json) { |
| 1318 if (_json.containsKey("authToken")) { | 1318 if (_json.containsKey("authToken")) { |
| 1319 authToken = _json["authToken"]; | 1319 authToken = _json["authToken"]; |
| 1320 } | 1320 } |
| 1321 if (_json.containsKey("type")) { | 1321 if (_json.containsKey("type")) { |
| 1322 type = _json["type"]; | 1322 type = _json["type"]; |
| 1323 } | 1323 } |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 core.Map toJson() { | 1326 core.Map<core.String, core.Object> toJson() { |
| 1327 var _json = new core.Map(); | 1327 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1328 if (authToken != null) { | 1328 if (authToken != null) { |
| 1329 _json["authToken"] = authToken; | 1329 _json["authToken"] = authToken; |
| 1330 } | 1330 } |
| 1331 if (type != null) { | 1331 if (type != null) { |
| 1332 _json["type"] = type; | 1332 _json["type"] = type; |
| 1333 } | 1333 } |
| 1334 return _json; | 1334 return _json; |
| 1335 } | 1335 } |
| 1336 } | 1336 } |
| 1337 | 1337 |
| 1338 /** A single menu command that is part of a Contact. */ | 1338 /** A single menu command that is part of a Contact. */ |
| 1339 class Command { | 1339 class Command { |
| 1340 /** | 1340 /** |
| 1341 * The type of operation this command corresponds to. Allowed values are: | 1341 * The type of operation this command corresponds to. Allowed values are: |
| 1342 * - TAKE_A_NOTE - Shares a timeline item with the transcription of user | 1342 * - TAKE_A_NOTE - Shares a timeline item with the transcription of user |
| 1343 * speech from the "Take a note" voice menu command. | 1343 * speech from the "Take a note" voice menu command. |
| 1344 * - POST_AN_UPDATE - Shares a timeline item with the transcription of user | 1344 * - POST_AN_UPDATE - Shares a timeline item with the transcription of user |
| 1345 * speech from the "Post an update" voice menu command. | 1345 * speech from the "Post an update" voice menu command. |
| 1346 */ | 1346 */ |
| 1347 core.String type; | 1347 core.String type; |
| 1348 | 1348 |
| 1349 Command(); | 1349 Command(); |
| 1350 | 1350 |
| 1351 Command.fromJson(core.Map _json) { | 1351 Command.fromJson(core.Map _json) { |
| 1352 if (_json.containsKey("type")) { | 1352 if (_json.containsKey("type")) { |
| 1353 type = _json["type"]; | 1353 type = _json["type"]; |
| 1354 } | 1354 } |
| 1355 } | 1355 } |
| 1356 | 1356 |
| 1357 core.Map toJson() { | 1357 core.Map<core.String, core.Object> toJson() { |
| 1358 var _json = new core.Map(); | 1358 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1359 if (type != null) { | 1359 if (type != null) { |
| 1360 _json["type"] = type; | 1360 _json["type"] = type; |
| 1361 } | 1361 } |
| 1362 return _json; | 1362 return _json; |
| 1363 } | 1363 } |
| 1364 } | 1364 } |
| 1365 | 1365 |
| 1366 /** A person or group that can be used as a creator or a contact. */ | 1366 /** A person or group that can be used as a creator or a contact. */ |
| 1367 class Contact { | 1367 class Contact { |
| 1368 /** | 1368 /** |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 source = _json["source"]; | 1465 source = _json["source"]; |
| 1466 } | 1466 } |
| 1467 if (_json.containsKey("speakableName")) { | 1467 if (_json.containsKey("speakableName")) { |
| 1468 speakableName = _json["speakableName"]; | 1468 speakableName = _json["speakableName"]; |
| 1469 } | 1469 } |
| 1470 if (_json.containsKey("type")) { | 1470 if (_json.containsKey("type")) { |
| 1471 type = _json["type"]; | 1471 type = _json["type"]; |
| 1472 } | 1472 } |
| 1473 } | 1473 } |
| 1474 | 1474 |
| 1475 core.Map toJson() { | 1475 core.Map<core.String, core.Object> toJson() { |
| 1476 var _json = new core.Map(); | 1476 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1477 if (acceptCommands != null) { | 1477 if (acceptCommands != null) { |
| 1478 _json["acceptCommands"] = acceptCommands.map((value) => (value).toJson()).
toList(); | 1478 _json["acceptCommands"] = acceptCommands.map((value) => (value).toJson()).
toList(); |
| 1479 } | 1479 } |
| 1480 if (acceptTypes != null) { | 1480 if (acceptTypes != null) { |
| 1481 _json["acceptTypes"] = acceptTypes; | 1481 _json["acceptTypes"] = acceptTypes; |
| 1482 } | 1482 } |
| 1483 if (displayName != null) { | 1483 if (displayName != null) { |
| 1484 _json["displayName"] = displayName; | 1484 _json["displayName"] = displayName; |
| 1485 } | 1485 } |
| 1486 if (id != null) { | 1486 if (id != null) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1528 | 1528 |
| 1529 ContactsListResponse.fromJson(core.Map _json) { | 1529 ContactsListResponse.fromJson(core.Map _json) { |
| 1530 if (_json.containsKey("items")) { | 1530 if (_json.containsKey("items")) { |
| 1531 items = _json["items"].map((value) => new Contact.fromJson(value)).toList(
); | 1531 items = _json["items"].map((value) => new Contact.fromJson(value)).toList(
); |
| 1532 } | 1532 } |
| 1533 if (_json.containsKey("kind")) { | 1533 if (_json.containsKey("kind")) { |
| 1534 kind = _json["kind"]; | 1534 kind = _json["kind"]; |
| 1535 } | 1535 } |
| 1536 } | 1536 } |
| 1537 | 1537 |
| 1538 core.Map toJson() { | 1538 core.Map<core.String, core.Object> toJson() { |
| 1539 var _json = new core.Map(); | 1539 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1540 if (items != null) { | 1540 if (items != null) { |
| 1541 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1541 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1542 } | 1542 } |
| 1543 if (kind != null) { | 1543 if (kind != null) { |
| 1544 _json["kind"] = kind; | 1544 _json["kind"] = kind; |
| 1545 } | 1545 } |
| 1546 return _json; | 1546 return _json; |
| 1547 } | 1547 } |
| 1548 } | 1548 } |
| 1549 | 1549 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1594 latitude = _json["latitude"]; | 1594 latitude = _json["latitude"]; |
| 1595 } | 1595 } |
| 1596 if (_json.containsKey("longitude")) { | 1596 if (_json.containsKey("longitude")) { |
| 1597 longitude = _json["longitude"]; | 1597 longitude = _json["longitude"]; |
| 1598 } | 1598 } |
| 1599 if (_json.containsKey("timestamp")) { | 1599 if (_json.containsKey("timestamp")) { |
| 1600 timestamp = core.DateTime.parse(_json["timestamp"]); | 1600 timestamp = core.DateTime.parse(_json["timestamp"]); |
| 1601 } | 1601 } |
| 1602 } | 1602 } |
| 1603 | 1603 |
| 1604 core.Map toJson() { | 1604 core.Map<core.String, core.Object> toJson() { |
| 1605 var _json = new core.Map(); | 1605 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1606 if (accuracy != null) { | 1606 if (accuracy != null) { |
| 1607 _json["accuracy"] = accuracy; | 1607 _json["accuracy"] = accuracy; |
| 1608 } | 1608 } |
| 1609 if (address != null) { | 1609 if (address != null) { |
| 1610 _json["address"] = address; | 1610 _json["address"] = address; |
| 1611 } | 1611 } |
| 1612 if (displayName != null) { | 1612 if (displayName != null) { |
| 1613 _json["displayName"] = displayName; | 1613 _json["displayName"] = displayName; |
| 1614 } | 1614 } |
| 1615 if (id != null) { | 1615 if (id != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1645 | 1645 |
| 1646 LocationsListResponse.fromJson(core.Map _json) { | 1646 LocationsListResponse.fromJson(core.Map _json) { |
| 1647 if (_json.containsKey("items")) { | 1647 if (_json.containsKey("items")) { |
| 1648 items = _json["items"].map((value) => new Location.fromJson(value)).toList
(); | 1648 items = _json["items"].map((value) => new Location.fromJson(value)).toList
(); |
| 1649 } | 1649 } |
| 1650 if (_json.containsKey("kind")) { | 1650 if (_json.containsKey("kind")) { |
| 1651 kind = _json["kind"]; | 1651 kind = _json["kind"]; |
| 1652 } | 1652 } |
| 1653 } | 1653 } |
| 1654 | 1654 |
| 1655 core.Map toJson() { | 1655 core.Map<core.String, core.Object> toJson() { |
| 1656 var _json = new core.Map(); | 1656 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1657 if (items != null) { | 1657 if (items != null) { |
| 1658 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1658 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1659 } | 1659 } |
| 1660 if (kind != null) { | 1660 if (kind != null) { |
| 1661 _json["kind"] = kind; | 1661 _json["kind"] = kind; |
| 1662 } | 1662 } |
| 1663 return _json; | 1663 return _json; |
| 1664 } | 1664 } |
| 1665 } | 1665 } |
| 1666 | 1666 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1754 payload = _json["payload"]; | 1754 payload = _json["payload"]; |
| 1755 } | 1755 } |
| 1756 if (_json.containsKey("removeWhenSelected")) { | 1756 if (_json.containsKey("removeWhenSelected")) { |
| 1757 removeWhenSelected = _json["removeWhenSelected"]; | 1757 removeWhenSelected = _json["removeWhenSelected"]; |
| 1758 } | 1758 } |
| 1759 if (_json.containsKey("values")) { | 1759 if (_json.containsKey("values")) { |
| 1760 values = _json["values"].map((value) => new MenuValue.fromJson(value)).toL
ist(); | 1760 values = _json["values"].map((value) => new MenuValue.fromJson(value)).toL
ist(); |
| 1761 } | 1761 } |
| 1762 } | 1762 } |
| 1763 | 1763 |
| 1764 core.Map toJson() { | 1764 core.Map<core.String, core.Object> toJson() { |
| 1765 var _json = new core.Map(); | 1765 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1766 if (action != null) { | 1766 if (action != null) { |
| 1767 _json["action"] = action; | 1767 _json["action"] = action; |
| 1768 } | 1768 } |
| 1769 if (contextualCommand != null) { | 1769 if (contextualCommand != null) { |
| 1770 _json["contextual_command"] = contextualCommand; | 1770 _json["contextual_command"] = contextualCommand; |
| 1771 } | 1771 } |
| 1772 if (id != null) { | 1772 if (id != null) { |
| 1773 _json["id"] = id; | 1773 _json["id"] = id; |
| 1774 } | 1774 } |
| 1775 if (payload != null) { | 1775 if (payload != null) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 displayName = _json["displayName"]; | 1812 displayName = _json["displayName"]; |
| 1813 } | 1813 } |
| 1814 if (_json.containsKey("iconUrl")) { | 1814 if (_json.containsKey("iconUrl")) { |
| 1815 iconUrl = _json["iconUrl"]; | 1815 iconUrl = _json["iconUrl"]; |
| 1816 } | 1816 } |
| 1817 if (_json.containsKey("state")) { | 1817 if (_json.containsKey("state")) { |
| 1818 state = _json["state"]; | 1818 state = _json["state"]; |
| 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 (displayName != null) { | 1824 if (displayName != null) { |
| 1825 _json["displayName"] = displayName; | 1825 _json["displayName"] = displayName; |
| 1826 } | 1826 } |
| 1827 if (iconUrl != null) { | 1827 if (iconUrl != null) { |
| 1828 _json["iconUrl"] = iconUrl; | 1828 _json["iconUrl"] = iconUrl; |
| 1829 } | 1829 } |
| 1830 if (state != null) { | 1830 if (state != null) { |
| 1831 _json["state"] = state; | 1831 _json["state"] = state; |
| 1832 } | 1832 } |
| 1833 return _json; | 1833 return _json; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1871 userActions = _json["userActions"].map((value) => new UserAction.fromJson(
value)).toList(); | 1871 userActions = _json["userActions"].map((value) => new UserAction.fromJson(
value)).toList(); |
| 1872 } | 1872 } |
| 1873 if (_json.containsKey("userToken")) { | 1873 if (_json.containsKey("userToken")) { |
| 1874 userToken = _json["userToken"]; | 1874 userToken = _json["userToken"]; |
| 1875 } | 1875 } |
| 1876 if (_json.containsKey("verifyToken")) { | 1876 if (_json.containsKey("verifyToken")) { |
| 1877 verifyToken = _json["verifyToken"]; | 1877 verifyToken = _json["verifyToken"]; |
| 1878 } | 1878 } |
| 1879 } | 1879 } |
| 1880 | 1880 |
| 1881 core.Map toJson() { | 1881 core.Map<core.String, core.Object> toJson() { |
| 1882 var _json = new core.Map(); | 1882 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1883 if (collection != null) { | 1883 if (collection != null) { |
| 1884 _json["collection"] = collection; | 1884 _json["collection"] = collection; |
| 1885 } | 1885 } |
| 1886 if (itemId != null) { | 1886 if (itemId != null) { |
| 1887 _json["itemId"] = itemId; | 1887 _json["itemId"] = itemId; |
| 1888 } | 1888 } |
| 1889 if (operation != null) { | 1889 if (operation != null) { |
| 1890 _json["operation"] = operation; | 1890 _json["operation"] = operation; |
| 1891 } | 1891 } |
| 1892 if (userActions != null) { | 1892 if (userActions != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1919 | 1919 |
| 1920 NotificationConfig.fromJson(core.Map _json) { | 1920 NotificationConfig.fromJson(core.Map _json) { |
| 1921 if (_json.containsKey("deliveryTime")) { | 1921 if (_json.containsKey("deliveryTime")) { |
| 1922 deliveryTime = core.DateTime.parse(_json["deliveryTime"]); | 1922 deliveryTime = core.DateTime.parse(_json["deliveryTime"]); |
| 1923 } | 1923 } |
| 1924 if (_json.containsKey("level")) { | 1924 if (_json.containsKey("level")) { |
| 1925 level = _json["level"]; | 1925 level = _json["level"]; |
| 1926 } | 1926 } |
| 1927 } | 1927 } |
| 1928 | 1928 |
| 1929 core.Map toJson() { | 1929 core.Map<core.String, core.Object> toJson() { |
| 1930 var _json = new core.Map(); | 1930 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1931 if (deliveryTime != null) { | 1931 if (deliveryTime != null) { |
| 1932 _json["deliveryTime"] = (deliveryTime).toIso8601String(); | 1932 _json["deliveryTime"] = (deliveryTime).toIso8601String(); |
| 1933 } | 1933 } |
| 1934 if (level != null) { | 1934 if (level != null) { |
| 1935 _json["level"] = level; | 1935 _json["level"] = level; |
| 1936 } | 1936 } |
| 1937 return _json; | 1937 return _json; |
| 1938 } | 1938 } |
| 1939 } | 1939 } |
| 1940 | 1940 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1960 id = _json["id"]; | 1960 id = _json["id"]; |
| 1961 } | 1961 } |
| 1962 if (_json.containsKey("kind")) { | 1962 if (_json.containsKey("kind")) { |
| 1963 kind = _json["kind"]; | 1963 kind = _json["kind"]; |
| 1964 } | 1964 } |
| 1965 if (_json.containsKey("value")) { | 1965 if (_json.containsKey("value")) { |
| 1966 value = _json["value"]; | 1966 value = _json["value"]; |
| 1967 } | 1967 } |
| 1968 } | 1968 } |
| 1969 | 1969 |
| 1970 core.Map toJson() { | 1970 core.Map<core.String, core.Object> toJson() { |
| 1971 var _json = new core.Map(); | 1971 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1972 if (id != null) { | 1972 if (id != null) { |
| 1973 _json["id"] = id; | 1973 _json["id"] = id; |
| 1974 } | 1974 } |
| 1975 if (kind != null) { | 1975 if (kind != null) { |
| 1976 _json["kind"] = kind; | 1976 _json["kind"] = kind; |
| 1977 } | 1977 } |
| 1978 if (value != null) { | 1978 if (value != null) { |
| 1979 _json["value"] = value; | 1979 _json["value"] = value; |
| 1980 } | 1980 } |
| 1981 return _json; | 1981 return _json; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2056 updated = core.DateTime.parse(_json["updated"]); | 2056 updated = core.DateTime.parse(_json["updated"]); |
| 2057 } | 2057 } |
| 2058 if (_json.containsKey("userToken")) { | 2058 if (_json.containsKey("userToken")) { |
| 2059 userToken = _json["userToken"]; | 2059 userToken = _json["userToken"]; |
| 2060 } | 2060 } |
| 2061 if (_json.containsKey("verifyToken")) { | 2061 if (_json.containsKey("verifyToken")) { |
| 2062 verifyToken = _json["verifyToken"]; | 2062 verifyToken = _json["verifyToken"]; |
| 2063 } | 2063 } |
| 2064 } | 2064 } |
| 2065 | 2065 |
| 2066 core.Map toJson() { | 2066 core.Map<core.String, core.Object> toJson() { |
| 2067 var _json = new core.Map(); | 2067 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2068 if (callbackUrl != null) { | 2068 if (callbackUrl != null) { |
| 2069 _json["callbackUrl"] = callbackUrl; | 2069 _json["callbackUrl"] = callbackUrl; |
| 2070 } | 2070 } |
| 2071 if (collection != null) { | 2071 if (collection != null) { |
| 2072 _json["collection"] = collection; | 2072 _json["collection"] = collection; |
| 2073 } | 2073 } |
| 2074 if (id != null) { | 2074 if (id != null) { |
| 2075 _json["id"] = id; | 2075 _json["id"] = id; |
| 2076 } | 2076 } |
| 2077 if (kind != null) { | 2077 if (kind != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2110 | 2110 |
| 2111 SubscriptionsListResponse.fromJson(core.Map _json) { | 2111 SubscriptionsListResponse.fromJson(core.Map _json) { |
| 2112 if (_json.containsKey("items")) { | 2112 if (_json.containsKey("items")) { |
| 2113 items = _json["items"].map((value) => new Subscription.fromJson(value)).to
List(); | 2113 items = _json["items"].map((value) => new Subscription.fromJson(value)).to
List(); |
| 2114 } | 2114 } |
| 2115 if (_json.containsKey("kind")) { | 2115 if (_json.containsKey("kind")) { |
| 2116 kind = _json["kind"]; | 2116 kind = _json["kind"]; |
| 2117 } | 2117 } |
| 2118 } | 2118 } |
| 2119 | 2119 |
| 2120 core.Map toJson() { | 2120 core.Map<core.String, core.Object> toJson() { |
| 2121 var _json = new core.Map(); | 2121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2122 if (items != null) { | 2122 if (items != null) { |
| 2123 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2123 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2124 } | 2124 } |
| 2125 if (kind != null) { | 2125 if (kind != null) { |
| 2126 _json["kind"] = kind; | 2126 _json["kind"] = kind; |
| 2127 } | 2127 } |
| 2128 return _json; | 2128 return _json; |
| 2129 } | 2129 } |
| 2130 } | 2130 } |
| 2131 | 2131 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2370 text = _json["text"]; | 2370 text = _json["text"]; |
| 2371 } | 2371 } |
| 2372 if (_json.containsKey("title")) { | 2372 if (_json.containsKey("title")) { |
| 2373 title = _json["title"]; | 2373 title = _json["title"]; |
| 2374 } | 2374 } |
| 2375 if (_json.containsKey("updated")) { | 2375 if (_json.containsKey("updated")) { |
| 2376 updated = core.DateTime.parse(_json["updated"]); | 2376 updated = core.DateTime.parse(_json["updated"]); |
| 2377 } | 2377 } |
| 2378 } | 2378 } |
| 2379 | 2379 |
| 2380 core.Map toJson() { | 2380 core.Map<core.String, core.Object> toJson() { |
| 2381 var _json = new core.Map(); | 2381 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2382 if (attachments != null) { | 2382 if (attachments != null) { |
| 2383 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); | 2383 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); |
| 2384 } | 2384 } |
| 2385 if (bundleId != null) { | 2385 if (bundleId != null) { |
| 2386 _json["bundleId"] = bundleId; | 2386 _json["bundleId"] = bundleId; |
| 2387 } | 2387 } |
| 2388 if (canonicalUrl != null) { | 2388 if (canonicalUrl != null) { |
| 2389 _json["canonicalUrl"] = canonicalUrl; | 2389 _json["canonicalUrl"] = canonicalUrl; |
| 2390 } | 2390 } |
| 2391 if (created != null) { | 2391 if (created != null) { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2483 items = _json["items"].map((value) => new TimelineItem.fromJson(value)).to
List(); | 2483 items = _json["items"].map((value) => new TimelineItem.fromJson(value)).to
List(); |
| 2484 } | 2484 } |
| 2485 if (_json.containsKey("kind")) { | 2485 if (_json.containsKey("kind")) { |
| 2486 kind = _json["kind"]; | 2486 kind = _json["kind"]; |
| 2487 } | 2487 } |
| 2488 if (_json.containsKey("nextPageToken")) { | 2488 if (_json.containsKey("nextPageToken")) { |
| 2489 nextPageToken = _json["nextPageToken"]; | 2489 nextPageToken = _json["nextPageToken"]; |
| 2490 } | 2490 } |
| 2491 } | 2491 } |
| 2492 | 2492 |
| 2493 core.Map toJson() { | 2493 core.Map<core.String, core.Object> toJson() { |
| 2494 var _json = new core.Map(); | 2494 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2495 if (items != null) { | 2495 if (items != null) { |
| 2496 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2496 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2497 } | 2497 } |
| 2498 if (kind != null) { | 2498 if (kind != null) { |
| 2499 _json["kind"] = kind; | 2499 _json["kind"] = kind; |
| 2500 } | 2500 } |
| 2501 if (nextPageToken != null) { | 2501 if (nextPageToken != null) { |
| 2502 _json["nextPageToken"] = nextPageToken; | 2502 _json["nextPageToken"] = nextPageToken; |
| 2503 } | 2503 } |
| 2504 return _json; | 2504 return _json; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2532 | 2532 |
| 2533 UserAction.fromJson(core.Map _json) { | 2533 UserAction.fromJson(core.Map _json) { |
| 2534 if (_json.containsKey("payload")) { | 2534 if (_json.containsKey("payload")) { |
| 2535 payload = _json["payload"]; | 2535 payload = _json["payload"]; |
| 2536 } | 2536 } |
| 2537 if (_json.containsKey("type")) { | 2537 if (_json.containsKey("type")) { |
| 2538 type = _json["type"]; | 2538 type = _json["type"]; |
| 2539 } | 2539 } |
| 2540 } | 2540 } |
| 2541 | 2541 |
| 2542 core.Map toJson() { | 2542 core.Map<core.String, core.Object> toJson() { |
| 2543 var _json = new core.Map(); | 2543 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2544 if (payload != null) { | 2544 if (payload != null) { |
| 2545 _json["payload"] = payload; | 2545 _json["payload"] = payload; |
| 2546 } | 2546 } |
| 2547 if (type != null) { | 2547 if (type != null) { |
| 2548 _json["type"] = type; | 2548 _json["type"] = type; |
| 2549 } | 2549 } |
| 2550 return _json; | 2550 return _json; |
| 2551 } | 2551 } |
| 2552 } | 2552 } |
| 2553 | 2553 |
| 2554 class UserData { | 2554 class UserData { |
| 2555 core.String key; | 2555 core.String key; |
| 2556 core.String value; | 2556 core.String value; |
| 2557 | 2557 |
| 2558 UserData(); | 2558 UserData(); |
| 2559 | 2559 |
| 2560 UserData.fromJson(core.Map _json) { | 2560 UserData.fromJson(core.Map _json) { |
| 2561 if (_json.containsKey("key")) { | 2561 if (_json.containsKey("key")) { |
| 2562 key = _json["key"]; | 2562 key = _json["key"]; |
| 2563 } | 2563 } |
| 2564 if (_json.containsKey("value")) { | 2564 if (_json.containsKey("value")) { |
| 2565 value = _json["value"]; | 2565 value = _json["value"]; |
| 2566 } | 2566 } |
| 2567 } | 2567 } |
| 2568 | 2568 |
| 2569 core.Map toJson() { | 2569 core.Map<core.String, core.Object> toJson() { |
| 2570 var _json = new core.Map(); | 2570 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2571 if (key != null) { | 2571 if (key != null) { |
| 2572 _json["key"] = key; | 2572 _json["key"] = key; |
| 2573 } | 2573 } |
| 2574 if (value != null) { | 2574 if (value != null) { |
| 2575 _json["value"] = value; | 2575 _json["value"] = value; |
| 2576 } | 2576 } |
| 2577 return _json; | 2577 return _json; |
| 2578 } | 2578 } |
| 2579 } | 2579 } |
| OLD | NEW |