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.adexchangeseller.v2_0; | 3 library googleapis.adexchangeseller.v2_0; |
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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 id = _json["id"]; | 914 id = _json["id"]; |
915 } | 915 } |
916 if (_json.containsKey("kind")) { | 916 if (_json.containsKey("kind")) { |
917 kind = _json["kind"]; | 917 kind = _json["kind"]; |
918 } | 918 } |
919 if (_json.containsKey("name")) { | 919 if (_json.containsKey("name")) { |
920 name = _json["name"]; | 920 name = _json["name"]; |
921 } | 921 } |
922 } | 922 } |
923 | 923 |
924 core.Map toJson() { | 924 core.Map<core.String, core.Object> toJson() { |
925 var _json = new core.Map(); | 925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
926 if (id != null) { | 926 if (id != null) { |
927 _json["id"] = id; | 927 _json["id"] = id; |
928 } | 928 } |
929 if (kind != null) { | 929 if (kind != null) { |
930 _json["kind"] = kind; | 930 _json["kind"] = kind; |
931 } | 931 } |
932 if (name != null) { | 932 if (name != null) { |
933 _json["name"] = name; | 933 _json["name"] = name; |
934 } | 934 } |
935 return _json; | 935 return _json; |
(...skipping 23 matching lines...) Expand all Loading... |
959 items = _json["items"].map((value) => new Account.fromJson(value)).toList(
); | 959 items = _json["items"].map((value) => new Account.fromJson(value)).toList(
); |
960 } | 960 } |
961 if (_json.containsKey("kind")) { | 961 if (_json.containsKey("kind")) { |
962 kind = _json["kind"]; | 962 kind = _json["kind"]; |
963 } | 963 } |
964 if (_json.containsKey("nextPageToken")) { | 964 if (_json.containsKey("nextPageToken")) { |
965 nextPageToken = _json["nextPageToken"]; | 965 nextPageToken = _json["nextPageToken"]; |
966 } | 966 } |
967 } | 967 } |
968 | 968 |
969 core.Map toJson() { | 969 core.Map<core.String, core.Object> toJson() { |
970 var _json = new core.Map(); | 970 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
971 if (etag != null) { | 971 if (etag != null) { |
972 _json["etag"] = etag; | 972 _json["etag"] = etag; |
973 } | 973 } |
974 if (items != null) { | 974 if (items != null) { |
975 _json["items"] = items.map((value) => (value).toJson()).toList(); | 975 _json["items"] = items.map((value) => (value).toJson()).toList(); |
976 } | 976 } |
977 if (kind != null) { | 977 if (kind != null) { |
978 _json["kind"] = kind; | 978 _json["kind"] = kind; |
979 } | 979 } |
980 if (nextPageToken != null) { | 980 if (nextPageToken != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 kind = _json["kind"]; | 1012 kind = _json["kind"]; |
1013 } | 1013 } |
1014 if (_json.containsKey("productCode")) { | 1014 if (_json.containsKey("productCode")) { |
1015 productCode = _json["productCode"]; | 1015 productCode = _json["productCode"]; |
1016 } | 1016 } |
1017 if (_json.containsKey("supportsReporting")) { | 1017 if (_json.containsKey("supportsReporting")) { |
1018 supportsReporting = _json["supportsReporting"]; | 1018 supportsReporting = _json["supportsReporting"]; |
1019 } | 1019 } |
1020 } | 1020 } |
1021 | 1021 |
1022 core.Map toJson() { | 1022 core.Map<core.String, core.Object> toJson() { |
1023 var _json = new core.Map(); | 1023 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1024 if (arcOptIn != null) { | 1024 if (arcOptIn != null) { |
1025 _json["arcOptIn"] = arcOptIn; | 1025 _json["arcOptIn"] = arcOptIn; |
1026 } | 1026 } |
1027 if (id != null) { | 1027 if (id != null) { |
1028 _json["id"] = id; | 1028 _json["id"] = id; |
1029 } | 1029 } |
1030 if (kind != null) { | 1030 if (kind != null) { |
1031 _json["kind"] = kind; | 1031 _json["kind"] = kind; |
1032 } | 1032 } |
1033 if (productCode != null) { | 1033 if (productCode != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
1063 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList
(); | 1063 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList
(); |
1064 } | 1064 } |
1065 if (_json.containsKey("kind")) { | 1065 if (_json.containsKey("kind")) { |
1066 kind = _json["kind"]; | 1066 kind = _json["kind"]; |
1067 } | 1067 } |
1068 if (_json.containsKey("nextPageToken")) { | 1068 if (_json.containsKey("nextPageToken")) { |
1069 nextPageToken = _json["nextPageToken"]; | 1069 nextPageToken = _json["nextPageToken"]; |
1070 } | 1070 } |
1071 } | 1071 } |
1072 | 1072 |
1073 core.Map toJson() { | 1073 core.Map<core.String, core.Object> toJson() { |
1074 var _json = new core.Map(); | 1074 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1075 if (etag != null) { | 1075 if (etag != null) { |
1076 _json["etag"] = etag; | 1076 _json["etag"] = etag; |
1077 } | 1077 } |
1078 if (items != null) { | 1078 if (items != null) { |
1079 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1079 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1080 } | 1080 } |
1081 if (kind != null) { | 1081 if (kind != null) { |
1082 _json["kind"] = kind; | 1082 _json["kind"] = kind; |
1083 } | 1083 } |
1084 if (nextPageToken != null) { | 1084 if (nextPageToken != null) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 message = _json["message"]; | 1120 message = _json["message"]; |
1121 } | 1121 } |
1122 if (_json.containsKey("severity")) { | 1122 if (_json.containsKey("severity")) { |
1123 severity = _json["severity"]; | 1123 severity = _json["severity"]; |
1124 } | 1124 } |
1125 if (_json.containsKey("type")) { | 1125 if (_json.containsKey("type")) { |
1126 type = _json["type"]; | 1126 type = _json["type"]; |
1127 } | 1127 } |
1128 } | 1128 } |
1129 | 1129 |
1130 core.Map toJson() { | 1130 core.Map<core.String, core.Object> toJson() { |
1131 var _json = new core.Map(); | 1131 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1132 if (id != null) { | 1132 if (id != null) { |
1133 _json["id"] = id; | 1133 _json["id"] = id; |
1134 } | 1134 } |
1135 if (kind != null) { | 1135 if (kind != null) { |
1136 _json["kind"] = kind; | 1136 _json["kind"] = kind; |
1137 } | 1137 } |
1138 if (message != null) { | 1138 if (message != null) { |
1139 _json["message"] = message; | 1139 _json["message"] = message; |
1140 } | 1140 } |
1141 if (severity != null) { | 1141 if (severity != null) { |
(...skipping 16 matching lines...) Expand all Loading... |
1158 | 1158 |
1159 Alerts.fromJson(core.Map _json) { | 1159 Alerts.fromJson(core.Map _json) { |
1160 if (_json.containsKey("items")) { | 1160 if (_json.containsKey("items")) { |
1161 items = _json["items"].map((value) => new Alert.fromJson(value)).toList(); | 1161 items = _json["items"].map((value) => new Alert.fromJson(value)).toList(); |
1162 } | 1162 } |
1163 if (_json.containsKey("kind")) { | 1163 if (_json.containsKey("kind")) { |
1164 kind = _json["kind"]; | 1164 kind = _json["kind"]; |
1165 } | 1165 } |
1166 } | 1166 } |
1167 | 1167 |
1168 core.Map toJson() { | 1168 core.Map<core.String, core.Object> toJson() { |
1169 var _json = new core.Map(); | 1169 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1170 if (items != null) { | 1170 if (items != null) { |
1171 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1171 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1172 } | 1172 } |
1173 if (kind != null) { | 1173 if (kind != null) { |
1174 _json["kind"] = kind; | 1174 _json["kind"] = kind; |
1175 } | 1175 } |
1176 return _json; | 1176 return _json; |
1177 } | 1177 } |
1178 } | 1178 } |
1179 | 1179 |
(...skipping 24 matching lines...) Expand all Loading... |
1204 description = _json["description"]; | 1204 description = _json["description"]; |
1205 } | 1205 } |
1206 if (_json.containsKey("location")) { | 1206 if (_json.containsKey("location")) { |
1207 location = _json["location"]; | 1207 location = _json["location"]; |
1208 } | 1208 } |
1209 if (_json.containsKey("siteLanguage")) { | 1209 if (_json.containsKey("siteLanguage")) { |
1210 siteLanguage = _json["siteLanguage"]; | 1210 siteLanguage = _json["siteLanguage"]; |
1211 } | 1211 } |
1212 } | 1212 } |
1213 | 1213 |
1214 core.Map toJson() { | 1214 core.Map<core.String, core.Object> toJson() { |
1215 var _json = new core.Map(); | 1215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1216 if (adsAppearOn != null) { | 1216 if (adsAppearOn != null) { |
1217 _json["adsAppearOn"] = adsAppearOn; | 1217 _json["adsAppearOn"] = adsAppearOn; |
1218 } | 1218 } |
1219 if (description != null) { | 1219 if (description != null) { |
1220 _json["description"] = description; | 1220 _json["description"] = description; |
1221 } | 1221 } |
1222 if (location != null) { | 1222 if (location != null) { |
1223 _json["location"] = location; | 1223 _json["location"] = location; |
1224 } | 1224 } |
1225 if (siteLanguage != null) { | 1225 if (siteLanguage != null) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 kind = _json["kind"]; | 1258 kind = _json["kind"]; |
1259 } | 1259 } |
1260 if (_json.containsKey("name")) { | 1260 if (_json.containsKey("name")) { |
1261 name = _json["name"]; | 1261 name = _json["name"]; |
1262 } | 1262 } |
1263 if (_json.containsKey("targetingInfo")) { | 1263 if (_json.containsKey("targetingInfo")) { |
1264 targetingInfo = new CustomChannelTargetingInfo.fromJson(_json["targetingIn
fo"]); | 1264 targetingInfo = new CustomChannelTargetingInfo.fromJson(_json["targetingIn
fo"]); |
1265 } | 1265 } |
1266 } | 1266 } |
1267 | 1267 |
1268 core.Map toJson() { | 1268 core.Map<core.String, core.Object> toJson() { |
1269 var _json = new core.Map(); | 1269 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1270 if (code != null) { | 1270 if (code != null) { |
1271 _json["code"] = code; | 1271 _json["code"] = code; |
1272 } | 1272 } |
1273 if (id != null) { | 1273 if (id != null) { |
1274 _json["id"] = id; | 1274 _json["id"] = id; |
1275 } | 1275 } |
1276 if (kind != null) { | 1276 if (kind != null) { |
1277 _json["kind"] = kind; | 1277 _json["kind"] = kind; |
1278 } | 1278 } |
1279 if (name != null) { | 1279 if (name != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
1309 items = _json["items"].map((value) => new CustomChannel.fromJson(value)).t
oList(); | 1309 items = _json["items"].map((value) => new CustomChannel.fromJson(value)).t
oList(); |
1310 } | 1310 } |
1311 if (_json.containsKey("kind")) { | 1311 if (_json.containsKey("kind")) { |
1312 kind = _json["kind"]; | 1312 kind = _json["kind"]; |
1313 } | 1313 } |
1314 if (_json.containsKey("nextPageToken")) { | 1314 if (_json.containsKey("nextPageToken")) { |
1315 nextPageToken = _json["nextPageToken"]; | 1315 nextPageToken = _json["nextPageToken"]; |
1316 } | 1316 } |
1317 } | 1317 } |
1318 | 1318 |
1319 core.Map toJson() { | 1319 core.Map<core.String, core.Object> toJson() { |
1320 var _json = new core.Map(); | 1320 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1321 if (etag != null) { | 1321 if (etag != null) { |
1322 _json["etag"] = etag; | 1322 _json["etag"] = etag; |
1323 } | 1323 } |
1324 if (items != null) { | 1324 if (items != null) { |
1325 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1325 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1326 } | 1326 } |
1327 if (kind != null) { | 1327 if (kind != null) { |
1328 _json["kind"] = kind; | 1328 _json["kind"] = kind; |
1329 } | 1329 } |
1330 if (nextPageToken != null) { | 1330 if (nextPageToken != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
1343 | 1343 |
1344 Metadata.fromJson(core.Map _json) { | 1344 Metadata.fromJson(core.Map _json) { |
1345 if (_json.containsKey("items")) { | 1345 if (_json.containsKey("items")) { |
1346 items = _json["items"].map((value) => new ReportingMetadataEntry.fromJson(
value)).toList(); | 1346 items = _json["items"].map((value) => new ReportingMetadataEntry.fromJson(
value)).toList(); |
1347 } | 1347 } |
1348 if (_json.containsKey("kind")) { | 1348 if (_json.containsKey("kind")) { |
1349 kind = _json["kind"]; | 1349 kind = _json["kind"]; |
1350 } | 1350 } |
1351 } | 1351 } |
1352 | 1352 |
1353 core.Map toJson() { | 1353 core.Map<core.String, core.Object> toJson() { |
1354 var _json = new core.Map(); | 1354 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1355 if (items != null) { | 1355 if (items != null) { |
1356 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1356 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1357 } | 1357 } |
1358 if (kind != null) { | 1358 if (kind != null) { |
1359 _json["kind"] = kind; | 1359 _json["kind"] = kind; |
1360 } | 1360 } |
1361 return _json; | 1361 return _json; |
1362 } | 1362 } |
1363 } | 1363 } |
1364 | 1364 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 id = _json["id"]; | 1416 id = _json["id"]; |
1417 } | 1417 } |
1418 if (_json.containsKey("kind")) { | 1418 if (_json.containsKey("kind")) { |
1419 kind = _json["kind"]; | 1419 kind = _json["kind"]; |
1420 } | 1420 } |
1421 if (_json.containsKey("startTime")) { | 1421 if (_json.containsKey("startTime")) { |
1422 startTime = _json["startTime"]; | 1422 startTime = _json["startTime"]; |
1423 } | 1423 } |
1424 } | 1424 } |
1425 | 1425 |
1426 core.Map toJson() { | 1426 core.Map<core.String, core.Object> toJson() { |
1427 var _json = new core.Map(); | 1427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1428 if (advertiserName != null) { | 1428 if (advertiserName != null) { |
1429 _json["advertiserName"] = advertiserName; | 1429 _json["advertiserName"] = advertiserName; |
1430 } | 1430 } |
1431 if (buyerNetworkName != null) { | 1431 if (buyerNetworkName != null) { |
1432 _json["buyerNetworkName"] = buyerNetworkName; | 1432 _json["buyerNetworkName"] = buyerNetworkName; |
1433 } | 1433 } |
1434 if (currencyCode != null) { | 1434 if (currencyCode != null) { |
1435 _json["currencyCode"] = currencyCode; | 1435 _json["currencyCode"] = currencyCode; |
1436 } | 1436 } |
1437 if (endTime != null) { | 1437 if (endTime != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
1463 | 1463 |
1464 PreferredDeals.fromJson(core.Map _json) { | 1464 PreferredDeals.fromJson(core.Map _json) { |
1465 if (_json.containsKey("items")) { | 1465 if (_json.containsKey("items")) { |
1466 items = _json["items"].map((value) => new PreferredDeal.fromJson(value)).t
oList(); | 1466 items = _json["items"].map((value) => new PreferredDeal.fromJson(value)).t
oList(); |
1467 } | 1467 } |
1468 if (_json.containsKey("kind")) { | 1468 if (_json.containsKey("kind")) { |
1469 kind = _json["kind"]; | 1469 kind = _json["kind"]; |
1470 } | 1470 } |
1471 } | 1471 } |
1472 | 1472 |
1473 core.Map toJson() { | 1473 core.Map<core.String, core.Object> toJson() { |
1474 var _json = new core.Map(); | 1474 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1475 if (items != null) { | 1475 if (items != null) { |
1476 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1476 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1477 } | 1477 } |
1478 if (kind != null) { | 1478 if (kind != null) { |
1479 _json["kind"] = kind; | 1479 _json["kind"] = kind; |
1480 } | 1480 } |
1481 return _json; | 1481 return _json; |
1482 } | 1482 } |
1483 } | 1483 } |
1484 | 1484 |
(...skipping 18 matching lines...) Expand all Loading... |
1503 currency = _json["currency"]; | 1503 currency = _json["currency"]; |
1504 } | 1504 } |
1505 if (_json.containsKey("name")) { | 1505 if (_json.containsKey("name")) { |
1506 name = _json["name"]; | 1506 name = _json["name"]; |
1507 } | 1507 } |
1508 if (_json.containsKey("type")) { | 1508 if (_json.containsKey("type")) { |
1509 type = _json["type"]; | 1509 type = _json["type"]; |
1510 } | 1510 } |
1511 } | 1511 } |
1512 | 1512 |
1513 core.Map toJson() { | 1513 core.Map<core.String, core.Object> toJson() { |
1514 var _json = new core.Map(); | 1514 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1515 if (currency != null) { | 1515 if (currency != null) { |
1516 _json["currency"] = currency; | 1516 _json["currency"] = currency; |
1517 } | 1517 } |
1518 if (name != null) { | 1518 if (name != null) { |
1519 _json["name"] = name; | 1519 _json["name"] = name; |
1520 } | 1520 } |
1521 if (type != null) { | 1521 if (type != null) { |
1522 _json["type"] = type; | 1522 _json["type"] = type; |
1523 } | 1523 } |
1524 return _json; | 1524 return _json; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 totalMatchedRows = _json["totalMatchedRows"]; | 1578 totalMatchedRows = _json["totalMatchedRows"]; |
1579 } | 1579 } |
1580 if (_json.containsKey("totals")) { | 1580 if (_json.containsKey("totals")) { |
1581 totals = _json["totals"]; | 1581 totals = _json["totals"]; |
1582 } | 1582 } |
1583 if (_json.containsKey("warnings")) { | 1583 if (_json.containsKey("warnings")) { |
1584 warnings = _json["warnings"]; | 1584 warnings = _json["warnings"]; |
1585 } | 1585 } |
1586 } | 1586 } |
1587 | 1587 |
1588 core.Map toJson() { | 1588 core.Map<core.String, core.Object> toJson() { |
1589 var _json = new core.Map(); | 1589 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1590 if (averages != null) { | 1590 if (averages != null) { |
1591 _json["averages"] = averages; | 1591 _json["averages"] = averages; |
1592 } | 1592 } |
1593 if (headers != null) { | 1593 if (headers != null) { |
1594 _json["headers"] = headers.map((value) => (value).toJson()).toList(); | 1594 _json["headers"] = headers.map((value) => (value).toJson()).toList(); |
1595 } | 1595 } |
1596 if (kind != null) { | 1596 if (kind != null) { |
1597 _json["kind"] = kind; | 1597 _json["kind"] = kind; |
1598 } | 1598 } |
1599 if (rows != null) { | 1599 if (rows != null) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 requiredDimensions = _json["requiredDimensions"]; | 1673 requiredDimensions = _json["requiredDimensions"]; |
1674 } | 1674 } |
1675 if (_json.containsKey("requiredMetrics")) { | 1675 if (_json.containsKey("requiredMetrics")) { |
1676 requiredMetrics = _json["requiredMetrics"]; | 1676 requiredMetrics = _json["requiredMetrics"]; |
1677 } | 1677 } |
1678 if (_json.containsKey("supportedProducts")) { | 1678 if (_json.containsKey("supportedProducts")) { |
1679 supportedProducts = _json["supportedProducts"]; | 1679 supportedProducts = _json["supportedProducts"]; |
1680 } | 1680 } |
1681 } | 1681 } |
1682 | 1682 |
1683 core.Map toJson() { | 1683 core.Map<core.String, core.Object> toJson() { |
1684 var _json = new core.Map(); | 1684 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1685 if (compatibleDimensions != null) { | 1685 if (compatibleDimensions != null) { |
1686 _json["compatibleDimensions"] = compatibleDimensions; | 1686 _json["compatibleDimensions"] = compatibleDimensions; |
1687 } | 1687 } |
1688 if (compatibleMetrics != null) { | 1688 if (compatibleMetrics != null) { |
1689 _json["compatibleMetrics"] = compatibleMetrics; | 1689 _json["compatibleMetrics"] = compatibleMetrics; |
1690 } | 1690 } |
1691 if (id != null) { | 1691 if (id != null) { |
1692 _json["id"] = id; | 1692 _json["id"] = id; |
1693 } | 1693 } |
1694 if (kind != null) { | 1694 if (kind != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
1722 id = _json["id"]; | 1722 id = _json["id"]; |
1723 } | 1723 } |
1724 if (_json.containsKey("kind")) { | 1724 if (_json.containsKey("kind")) { |
1725 kind = _json["kind"]; | 1725 kind = _json["kind"]; |
1726 } | 1726 } |
1727 if (_json.containsKey("name")) { | 1727 if (_json.containsKey("name")) { |
1728 name = _json["name"]; | 1728 name = _json["name"]; |
1729 } | 1729 } |
1730 } | 1730 } |
1731 | 1731 |
1732 core.Map toJson() { | 1732 core.Map<core.String, core.Object> toJson() { |
1733 var _json = new core.Map(); | 1733 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1734 if (id != null) { | 1734 if (id != null) { |
1735 _json["id"] = id; | 1735 _json["id"] = id; |
1736 } | 1736 } |
1737 if (kind != null) { | 1737 if (kind != null) { |
1738 _json["kind"] = kind; | 1738 _json["kind"] = kind; |
1739 } | 1739 } |
1740 if (name != null) { | 1740 if (name != null) { |
1741 _json["name"] = name; | 1741 _json["name"] = name; |
1742 } | 1742 } |
1743 return _json; | 1743 return _json; |
(...skipping 23 matching lines...) Expand all Loading... |
1767 items = _json["items"].map((value) => new SavedReport.fromJson(value)).toL
ist(); | 1767 items = _json["items"].map((value) => new SavedReport.fromJson(value)).toL
ist(); |
1768 } | 1768 } |
1769 if (_json.containsKey("kind")) { | 1769 if (_json.containsKey("kind")) { |
1770 kind = _json["kind"]; | 1770 kind = _json["kind"]; |
1771 } | 1771 } |
1772 if (_json.containsKey("nextPageToken")) { | 1772 if (_json.containsKey("nextPageToken")) { |
1773 nextPageToken = _json["nextPageToken"]; | 1773 nextPageToken = _json["nextPageToken"]; |
1774 } | 1774 } |
1775 } | 1775 } |
1776 | 1776 |
1777 core.Map toJson() { | 1777 core.Map<core.String, core.Object> toJson() { |
1778 var _json = new core.Map(); | 1778 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1779 if (etag != null) { | 1779 if (etag != null) { |
1780 _json["etag"] = etag; | 1780 _json["etag"] = etag; |
1781 } | 1781 } |
1782 if (items != null) { | 1782 if (items != null) { |
1783 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1783 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1784 } | 1784 } |
1785 if (kind != null) { | 1785 if (kind != null) { |
1786 _json["kind"] = kind; | 1786 _json["kind"] = kind; |
1787 } | 1787 } |
1788 if (nextPageToken != null) { | 1788 if (nextPageToken != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
1813 id = _json["id"]; | 1813 id = _json["id"]; |
1814 } | 1814 } |
1815 if (_json.containsKey("kind")) { | 1815 if (_json.containsKey("kind")) { |
1816 kind = _json["kind"]; | 1816 kind = _json["kind"]; |
1817 } | 1817 } |
1818 if (_json.containsKey("urlPattern")) { | 1818 if (_json.containsKey("urlPattern")) { |
1819 urlPattern = _json["urlPattern"]; | 1819 urlPattern = _json["urlPattern"]; |
1820 } | 1820 } |
1821 } | 1821 } |
1822 | 1822 |
1823 core.Map toJson() { | 1823 core.Map<core.String, core.Object> toJson() { |
1824 var _json = new core.Map(); | 1824 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1825 if (id != null) { | 1825 if (id != null) { |
1826 _json["id"] = id; | 1826 _json["id"] = id; |
1827 } | 1827 } |
1828 if (kind != null) { | 1828 if (kind != null) { |
1829 _json["kind"] = kind; | 1829 _json["kind"] = kind; |
1830 } | 1830 } |
1831 if (urlPattern != null) { | 1831 if (urlPattern != null) { |
1832 _json["urlPattern"] = urlPattern; | 1832 _json["urlPattern"] = urlPattern; |
1833 } | 1833 } |
1834 return _json; | 1834 return _json; |
(...skipping 23 matching lines...) Expand all Loading... |
1858 items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toLi
st(); | 1858 items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toLi
st(); |
1859 } | 1859 } |
1860 if (_json.containsKey("kind")) { | 1860 if (_json.containsKey("kind")) { |
1861 kind = _json["kind"]; | 1861 kind = _json["kind"]; |
1862 } | 1862 } |
1863 if (_json.containsKey("nextPageToken")) { | 1863 if (_json.containsKey("nextPageToken")) { |
1864 nextPageToken = _json["nextPageToken"]; | 1864 nextPageToken = _json["nextPageToken"]; |
1865 } | 1865 } |
1866 } | 1866 } |
1867 | 1867 |
1868 core.Map toJson() { | 1868 core.Map<core.String, core.Object> toJson() { |
1869 var _json = new core.Map(); | 1869 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1870 if (etag != null) { | 1870 if (etag != null) { |
1871 _json["etag"] = etag; | 1871 _json["etag"] = etag; |
1872 } | 1872 } |
1873 if (items != null) { | 1873 if (items != null) { |
1874 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1874 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1875 } | 1875 } |
1876 if (kind != null) { | 1876 if (kind != null) { |
1877 _json["kind"] = kind; | 1877 _json["kind"] = kind; |
1878 } | 1878 } |
1879 if (nextPageToken != null) { | 1879 if (nextPageToken != null) { |
1880 _json["nextPageToken"] = nextPageToken; | 1880 _json["nextPageToken"] = nextPageToken; |
1881 } | 1881 } |
1882 return _json; | 1882 return _json; |
1883 } | 1883 } |
1884 } | 1884 } |
OLD | NEW |