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.fitness.v1; | 3 library googleapis.fitness.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 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 session = new Session.fromJson(_json["session"]); | 913 session = new Session.fromJson(_json["session"]); |
914 } | 914 } |
915 if (_json.containsKey("startTimeMillis")) { | 915 if (_json.containsKey("startTimeMillis")) { |
916 startTimeMillis = _json["startTimeMillis"]; | 916 startTimeMillis = _json["startTimeMillis"]; |
917 } | 917 } |
918 if (_json.containsKey("type")) { | 918 if (_json.containsKey("type")) { |
919 type = _json["type"]; | 919 type = _json["type"]; |
920 } | 920 } |
921 } | 921 } |
922 | 922 |
923 core.Map toJson() { | 923 core.Map<core.String, core.Object> toJson() { |
924 var _json = new core.Map(); | 924 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
925 if (activity != null) { | 925 if (activity != null) { |
926 _json["activity"] = activity; | 926 _json["activity"] = activity; |
927 } | 927 } |
928 if (dataset != null) { | 928 if (dataset != null) { |
929 _json["dataset"] = dataset.map((value) => (value).toJson()).toList(); | 929 _json["dataset"] = dataset.map((value) => (value).toJson()).toList(); |
930 } | 930 } |
931 if (endTimeMillis != null) { | 931 if (endTimeMillis != null) { |
932 _json["endTimeMillis"] = endTimeMillis; | 932 _json["endTimeMillis"] = endTimeMillis; |
933 } | 933 } |
934 if (session != null) { | 934 if (session != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
964 | 964 |
965 AggregateBy.fromJson(core.Map _json) { | 965 AggregateBy.fromJson(core.Map _json) { |
966 if (_json.containsKey("dataSourceId")) { | 966 if (_json.containsKey("dataSourceId")) { |
967 dataSourceId = _json["dataSourceId"]; | 967 dataSourceId = _json["dataSourceId"]; |
968 } | 968 } |
969 if (_json.containsKey("dataTypeName")) { | 969 if (_json.containsKey("dataTypeName")) { |
970 dataTypeName = _json["dataTypeName"]; | 970 dataTypeName = _json["dataTypeName"]; |
971 } | 971 } |
972 } | 972 } |
973 | 973 |
974 core.Map toJson() { | 974 core.Map<core.String, core.Object> toJson() { |
975 var _json = new core.Map(); | 975 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
976 if (dataSourceId != null) { | 976 if (dataSourceId != null) { |
977 _json["dataSourceId"] = dataSourceId; | 977 _json["dataSourceId"] = dataSourceId; |
978 } | 978 } |
979 if (dataTypeName != null) { | 979 if (dataTypeName != null) { |
980 _json["dataTypeName"] = dataTypeName; | 980 _json["dataTypeName"] = dataTypeName; |
981 } | 981 } |
982 return _json; | 982 return _json; |
983 } | 983 } |
984 } | 984 } |
985 | 985 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 endTimeMillis = _json["endTimeMillis"]; | 1058 endTimeMillis = _json["endTimeMillis"]; |
1059 } | 1059 } |
1060 if (_json.containsKey("filteredDataQualityStandard")) { | 1060 if (_json.containsKey("filteredDataQualityStandard")) { |
1061 filteredDataQualityStandard = _json["filteredDataQualityStandard"]; | 1061 filteredDataQualityStandard = _json["filteredDataQualityStandard"]; |
1062 } | 1062 } |
1063 if (_json.containsKey("startTimeMillis")) { | 1063 if (_json.containsKey("startTimeMillis")) { |
1064 startTimeMillis = _json["startTimeMillis"]; | 1064 startTimeMillis = _json["startTimeMillis"]; |
1065 } | 1065 } |
1066 } | 1066 } |
1067 | 1067 |
1068 core.Map toJson() { | 1068 core.Map<core.String, core.Object> toJson() { |
1069 var _json = new core.Map(); | 1069 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1070 if (aggregateBy != null) { | 1070 if (aggregateBy != null) { |
1071 _json["aggregateBy"] = aggregateBy.map((value) => (value).toJson()).toList
(); | 1071 _json["aggregateBy"] = aggregateBy.map((value) => (value).toJson()).toList
(); |
1072 } | 1072 } |
1073 if (bucketByActivitySegment != null) { | 1073 if (bucketByActivitySegment != null) { |
1074 _json["bucketByActivitySegment"] = (bucketByActivitySegment).toJson(); | 1074 _json["bucketByActivitySegment"] = (bucketByActivitySegment).toJson(); |
1075 } | 1075 } |
1076 if (bucketByActivityType != null) { | 1076 if (bucketByActivityType != null) { |
1077 _json["bucketByActivityType"] = (bucketByActivityType).toJson(); | 1077 _json["bucketByActivityType"] = (bucketByActivityType).toJson(); |
1078 } | 1078 } |
1079 if (bucketBySession != null) { | 1079 if (bucketBySession != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
1100 core.List<AggregateBucket> bucket; | 1100 core.List<AggregateBucket> bucket; |
1101 | 1101 |
1102 AggregateResponse(); | 1102 AggregateResponse(); |
1103 | 1103 |
1104 AggregateResponse.fromJson(core.Map _json) { | 1104 AggregateResponse.fromJson(core.Map _json) { |
1105 if (_json.containsKey("bucket")) { | 1105 if (_json.containsKey("bucket")) { |
1106 bucket = _json["bucket"].map((value) => new AggregateBucket.fromJson(value
)).toList(); | 1106 bucket = _json["bucket"].map((value) => new AggregateBucket.fromJson(value
)).toList(); |
1107 } | 1107 } |
1108 } | 1108 } |
1109 | 1109 |
1110 core.Map toJson() { | 1110 core.Map<core.String, core.Object> toJson() { |
1111 var _json = new core.Map(); | 1111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1112 if (bucket != null) { | 1112 if (bucket != null) { |
1113 _json["bucket"] = bucket.map((value) => (value).toJson()).toList(); | 1113 _json["bucket"] = bucket.map((value) => (value).toJson()).toList(); |
1114 } | 1114 } |
1115 return _json; | 1115 return _json; |
1116 } | 1116 } |
1117 } | 1117 } |
1118 | 1118 |
1119 class Application { | 1119 class Application { |
1120 /** An optional URI that can be used to link back to the application. */ | 1120 /** An optional URI that can be used to link back to the application. */ |
1121 core.String detailsUrl; | 1121 core.String detailsUrl; |
(...skipping 27 matching lines...) Expand all Loading... |
1149 name = _json["name"]; | 1149 name = _json["name"]; |
1150 } | 1150 } |
1151 if (_json.containsKey("packageName")) { | 1151 if (_json.containsKey("packageName")) { |
1152 packageName = _json["packageName"]; | 1152 packageName = _json["packageName"]; |
1153 } | 1153 } |
1154 if (_json.containsKey("version")) { | 1154 if (_json.containsKey("version")) { |
1155 version = _json["version"]; | 1155 version = _json["version"]; |
1156 } | 1156 } |
1157 } | 1157 } |
1158 | 1158 |
1159 core.Map toJson() { | 1159 core.Map<core.String, core.Object> toJson() { |
1160 var _json = new core.Map(); | 1160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1161 if (detailsUrl != null) { | 1161 if (detailsUrl != null) { |
1162 _json["detailsUrl"] = detailsUrl; | 1162 _json["detailsUrl"] = detailsUrl; |
1163 } | 1163 } |
1164 if (name != null) { | 1164 if (name != null) { |
1165 _json["name"] = name; | 1165 _json["name"] = name; |
1166 } | 1166 } |
1167 if (packageName != null) { | 1167 if (packageName != null) { |
1168 _json["packageName"] = packageName; | 1168 _json["packageName"] = packageName; |
1169 } | 1169 } |
1170 if (version != null) { | 1170 if (version != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
1191 | 1191 |
1192 BucketByActivity.fromJson(core.Map _json) { | 1192 BucketByActivity.fromJson(core.Map _json) { |
1193 if (_json.containsKey("activityDataSourceId")) { | 1193 if (_json.containsKey("activityDataSourceId")) { |
1194 activityDataSourceId = _json["activityDataSourceId"]; | 1194 activityDataSourceId = _json["activityDataSourceId"]; |
1195 } | 1195 } |
1196 if (_json.containsKey("minDurationMillis")) { | 1196 if (_json.containsKey("minDurationMillis")) { |
1197 minDurationMillis = _json["minDurationMillis"]; | 1197 minDurationMillis = _json["minDurationMillis"]; |
1198 } | 1198 } |
1199 } | 1199 } |
1200 | 1200 |
1201 core.Map toJson() { | 1201 core.Map<core.String, core.Object> toJson() { |
1202 var _json = new core.Map(); | 1202 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1203 if (activityDataSourceId != null) { | 1203 if (activityDataSourceId != null) { |
1204 _json["activityDataSourceId"] = activityDataSourceId; | 1204 _json["activityDataSourceId"] = activityDataSourceId; |
1205 } | 1205 } |
1206 if (minDurationMillis != null) { | 1206 if (minDurationMillis != null) { |
1207 _json["minDurationMillis"] = minDurationMillis; | 1207 _json["minDurationMillis"] = minDurationMillis; |
1208 } | 1208 } |
1209 return _json; | 1209 return _json; |
1210 } | 1210 } |
1211 } | 1211 } |
1212 | 1212 |
1213 class BucketBySession { | 1213 class BucketBySession { |
1214 /** | 1214 /** |
1215 * Specifies that only sessions of duration longer than minDurationMillis are | 1215 * Specifies that only sessions of duration longer than minDurationMillis are |
1216 * considered and used as a container for aggregated data. | 1216 * considered and used as a container for aggregated data. |
1217 */ | 1217 */ |
1218 core.String minDurationMillis; | 1218 core.String minDurationMillis; |
1219 | 1219 |
1220 BucketBySession(); | 1220 BucketBySession(); |
1221 | 1221 |
1222 BucketBySession.fromJson(core.Map _json) { | 1222 BucketBySession.fromJson(core.Map _json) { |
1223 if (_json.containsKey("minDurationMillis")) { | 1223 if (_json.containsKey("minDurationMillis")) { |
1224 minDurationMillis = _json["minDurationMillis"]; | 1224 minDurationMillis = _json["minDurationMillis"]; |
1225 } | 1225 } |
1226 } | 1226 } |
1227 | 1227 |
1228 core.Map toJson() { | 1228 core.Map<core.String, core.Object> toJson() { |
1229 var _json = new core.Map(); | 1229 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1230 if (minDurationMillis != null) { | 1230 if (minDurationMillis != null) { |
1231 _json["minDurationMillis"] = minDurationMillis; | 1231 _json["minDurationMillis"] = minDurationMillis; |
1232 } | 1232 } |
1233 return _json; | 1233 return _json; |
1234 } | 1234 } |
1235 } | 1235 } |
1236 | 1236 |
1237 class BucketByTime { | 1237 class BucketByTime { |
1238 /** | 1238 /** |
1239 * Specifies that result buckets aggregate data by exactly durationMillis time | 1239 * Specifies that result buckets aggregate data by exactly durationMillis time |
1240 * frames. Time frames that contain no data will be included in the response | 1240 * frames. Time frames that contain no data will be included in the response |
1241 * with an empty dataset. | 1241 * with an empty dataset. |
1242 */ | 1242 */ |
1243 core.String durationMillis; | 1243 core.String durationMillis; |
1244 BucketByTimePeriod period; | 1244 BucketByTimePeriod period; |
1245 | 1245 |
1246 BucketByTime(); | 1246 BucketByTime(); |
1247 | 1247 |
1248 BucketByTime.fromJson(core.Map _json) { | 1248 BucketByTime.fromJson(core.Map _json) { |
1249 if (_json.containsKey("durationMillis")) { | 1249 if (_json.containsKey("durationMillis")) { |
1250 durationMillis = _json["durationMillis"]; | 1250 durationMillis = _json["durationMillis"]; |
1251 } | 1251 } |
1252 if (_json.containsKey("period")) { | 1252 if (_json.containsKey("period")) { |
1253 period = new BucketByTimePeriod.fromJson(_json["period"]); | 1253 period = new BucketByTimePeriod.fromJson(_json["period"]); |
1254 } | 1254 } |
1255 } | 1255 } |
1256 | 1256 |
1257 core.Map toJson() { | 1257 core.Map<core.String, core.Object> toJson() { |
1258 var _json = new core.Map(); | 1258 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1259 if (durationMillis != null) { | 1259 if (durationMillis != null) { |
1260 _json["durationMillis"] = durationMillis; | 1260 _json["durationMillis"] = durationMillis; |
1261 } | 1261 } |
1262 if (period != null) { | 1262 if (period != null) { |
1263 _json["period"] = (period).toJson(); | 1263 _json["period"] = (period).toJson(); |
1264 } | 1264 } |
1265 return _json; | 1265 return _json; |
1266 } | 1266 } |
1267 } | 1267 } |
1268 | 1268 |
(...skipping 17 matching lines...) Expand all Loading... |
1286 timeZoneId = _json["timeZoneId"]; | 1286 timeZoneId = _json["timeZoneId"]; |
1287 } | 1287 } |
1288 if (_json.containsKey("type")) { | 1288 if (_json.containsKey("type")) { |
1289 type = _json["type"]; | 1289 type = _json["type"]; |
1290 } | 1290 } |
1291 if (_json.containsKey("value")) { | 1291 if (_json.containsKey("value")) { |
1292 value = _json["value"]; | 1292 value = _json["value"]; |
1293 } | 1293 } |
1294 } | 1294 } |
1295 | 1295 |
1296 core.Map toJson() { | 1296 core.Map<core.String, core.Object> toJson() { |
1297 var _json = new core.Map(); | 1297 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1298 if (timeZoneId != null) { | 1298 if (timeZoneId != null) { |
1299 _json["timeZoneId"] = timeZoneId; | 1299 _json["timeZoneId"] = timeZoneId; |
1300 } | 1300 } |
1301 if (type != null) { | 1301 if (type != null) { |
1302 _json["type"] = type; | 1302 _json["type"] = type; |
1303 } | 1303 } |
1304 if (value != null) { | 1304 if (value != null) { |
1305 _json["value"] = value; | 1305 _json["value"] = value; |
1306 } | 1306 } |
1307 return _json; | 1307 return _json; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 rawTimestampNanos = _json["rawTimestampNanos"]; | 1385 rawTimestampNanos = _json["rawTimestampNanos"]; |
1386 } | 1386 } |
1387 if (_json.containsKey("startTimeNanos")) { | 1387 if (_json.containsKey("startTimeNanos")) { |
1388 startTimeNanos = _json["startTimeNanos"]; | 1388 startTimeNanos = _json["startTimeNanos"]; |
1389 } | 1389 } |
1390 if (_json.containsKey("value")) { | 1390 if (_json.containsKey("value")) { |
1391 value = _json["value"].map((value) => new Value.fromJson(value)).toList(); | 1391 value = _json["value"].map((value) => new Value.fromJson(value)).toList(); |
1392 } | 1392 } |
1393 } | 1393 } |
1394 | 1394 |
1395 core.Map toJson() { | 1395 core.Map<core.String, core.Object> toJson() { |
1396 var _json = new core.Map(); | 1396 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1397 if (computationTimeMillis != null) { | 1397 if (computationTimeMillis != null) { |
1398 _json["computationTimeMillis"] = computationTimeMillis; | 1398 _json["computationTimeMillis"] = computationTimeMillis; |
1399 } | 1399 } |
1400 if (dataTypeName != null) { | 1400 if (dataTypeName != null) { |
1401 _json["dataTypeName"] = dataTypeName; | 1401 _json["dataTypeName"] = dataTypeName; |
1402 } | 1402 } |
1403 if (endTimeNanos != null) { | 1403 if (endTimeNanos != null) { |
1404 _json["endTimeNanos"] = endTimeNanos; | 1404 _json["endTimeNanos"] = endTimeNanos; |
1405 } | 1405 } |
1406 if (modifiedTimeMillis != null) { | 1406 if (modifiedTimeMillis != null) { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1530 device = new Device.fromJson(_json["device"]); | 1530 device = new Device.fromJson(_json["device"]); |
1531 } | 1531 } |
1532 if (_json.containsKey("name")) { | 1532 if (_json.containsKey("name")) { |
1533 name = _json["name"]; | 1533 name = _json["name"]; |
1534 } | 1534 } |
1535 if (_json.containsKey("type")) { | 1535 if (_json.containsKey("type")) { |
1536 type = _json["type"]; | 1536 type = _json["type"]; |
1537 } | 1537 } |
1538 } | 1538 } |
1539 | 1539 |
1540 core.Map toJson() { | 1540 core.Map<core.String, core.Object> toJson() { |
1541 var _json = new core.Map(); | 1541 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1542 if (application != null) { | 1542 if (application != null) { |
1543 _json["application"] = (application).toJson(); | 1543 _json["application"] = (application).toJson(); |
1544 } | 1544 } |
1545 if (dataQualityStandard != null) { | 1545 if (dataQualityStandard != null) { |
1546 _json["dataQualityStandard"] = dataQualityStandard; | 1546 _json["dataQualityStandard"] = dataQualityStandard; |
1547 } | 1547 } |
1548 if (dataStreamId != null) { | 1548 if (dataStreamId != null) { |
1549 _json["dataStreamId"] = dataStreamId; | 1549 _json["dataStreamId"] = dataStreamId; |
1550 } | 1550 } |
1551 if (dataStreamName != null) { | 1551 if (dataStreamName != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
1580 | 1580 |
1581 DataType.fromJson(core.Map _json) { | 1581 DataType.fromJson(core.Map _json) { |
1582 if (_json.containsKey("field")) { | 1582 if (_json.containsKey("field")) { |
1583 field = _json["field"].map((value) => new DataTypeField.fromJson(value)).t
oList(); | 1583 field = _json["field"].map((value) => new DataTypeField.fromJson(value)).t
oList(); |
1584 } | 1584 } |
1585 if (_json.containsKey("name")) { | 1585 if (_json.containsKey("name")) { |
1586 name = _json["name"]; | 1586 name = _json["name"]; |
1587 } | 1587 } |
1588 } | 1588 } |
1589 | 1589 |
1590 core.Map toJson() { | 1590 core.Map<core.String, core.Object> toJson() { |
1591 var _json = new core.Map(); | 1591 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1592 if (field != null) { | 1592 if (field != null) { |
1593 _json["field"] = field.map((value) => (value).toJson()).toList(); | 1593 _json["field"] = field.map((value) => (value).toJson()).toList(); |
1594 } | 1594 } |
1595 if (name != null) { | 1595 if (name != null) { |
1596 _json["name"] = name; | 1596 _json["name"] = name; |
1597 } | 1597 } |
1598 return _json; | 1598 return _json; |
1599 } | 1599 } |
1600 } | 1600 } |
1601 | 1601 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 format = _json["format"]; | 1635 format = _json["format"]; |
1636 } | 1636 } |
1637 if (_json.containsKey("name")) { | 1637 if (_json.containsKey("name")) { |
1638 name = _json["name"]; | 1638 name = _json["name"]; |
1639 } | 1639 } |
1640 if (_json.containsKey("optional")) { | 1640 if (_json.containsKey("optional")) { |
1641 optional = _json["optional"]; | 1641 optional = _json["optional"]; |
1642 } | 1642 } |
1643 } | 1643 } |
1644 | 1644 |
1645 core.Map toJson() { | 1645 core.Map<core.String, core.Object> toJson() { |
1646 var _json = new core.Map(); | 1646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1647 if (format != null) { | 1647 if (format != null) { |
1648 _json["format"] = format; | 1648 _json["format"] = format; |
1649 } | 1649 } |
1650 if (name != null) { | 1650 if (name != null) { |
1651 _json["name"] = name; | 1651 _json["name"] = name; |
1652 } | 1652 } |
1653 if (optional != null) { | 1653 if (optional != null) { |
1654 _json["optional"] = optional; | 1654 _json["optional"] = optional; |
1655 } | 1655 } |
1656 return _json; | 1656 return _json; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1708 minStartTimeNs = _json["minStartTimeNs"]; | 1708 minStartTimeNs = _json["minStartTimeNs"]; |
1709 } | 1709 } |
1710 if (_json.containsKey("nextPageToken")) { | 1710 if (_json.containsKey("nextPageToken")) { |
1711 nextPageToken = _json["nextPageToken"]; | 1711 nextPageToken = _json["nextPageToken"]; |
1712 } | 1712 } |
1713 if (_json.containsKey("point")) { | 1713 if (_json.containsKey("point")) { |
1714 point = _json["point"].map((value) => new DataPoint.fromJson(value)).toLis
t(); | 1714 point = _json["point"].map((value) => new DataPoint.fromJson(value)).toLis
t(); |
1715 } | 1715 } |
1716 } | 1716 } |
1717 | 1717 |
1718 core.Map toJson() { | 1718 core.Map<core.String, core.Object> toJson() { |
1719 var _json = new core.Map(); | 1719 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1720 if (dataSourceId != null) { | 1720 if (dataSourceId != null) { |
1721 _json["dataSourceId"] = dataSourceId; | 1721 _json["dataSourceId"] = dataSourceId; |
1722 } | 1722 } |
1723 if (maxEndTimeNs != null) { | 1723 if (maxEndTimeNs != null) { |
1724 _json["maxEndTimeNs"] = maxEndTimeNs; | 1724 _json["maxEndTimeNs"] = maxEndTimeNs; |
1725 } | 1725 } |
1726 if (minStartTimeNs != null) { | 1726 if (minStartTimeNs != null) { |
1727 _json["minStartTimeNs"] = minStartTimeNs; | 1727 _json["minStartTimeNs"] = minStartTimeNs; |
1728 } | 1728 } |
1729 if (nextPageToken != null) { | 1729 if (nextPageToken != null) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1790 type = _json["type"]; | 1790 type = _json["type"]; |
1791 } | 1791 } |
1792 if (_json.containsKey("uid")) { | 1792 if (_json.containsKey("uid")) { |
1793 uid = _json["uid"]; | 1793 uid = _json["uid"]; |
1794 } | 1794 } |
1795 if (_json.containsKey("version")) { | 1795 if (_json.containsKey("version")) { |
1796 version = _json["version"]; | 1796 version = _json["version"]; |
1797 } | 1797 } |
1798 } | 1798 } |
1799 | 1799 |
1800 core.Map toJson() { | 1800 core.Map<core.String, core.Object> toJson() { |
1801 var _json = new core.Map(); | 1801 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1802 if (manufacturer != null) { | 1802 if (manufacturer != null) { |
1803 _json["manufacturer"] = manufacturer; | 1803 _json["manufacturer"] = manufacturer; |
1804 } | 1804 } |
1805 if (model != null) { | 1805 if (model != null) { |
1806 _json["model"] = model; | 1806 _json["model"] = model; |
1807 } | 1807 } |
1808 if (type != null) { | 1808 if (type != null) { |
1809 _json["type"] = type; | 1809 _json["type"] = type; |
1810 } | 1810 } |
1811 if (uid != null) { | 1811 if (uid != null) { |
(...skipping 11 matching lines...) Expand all Loading... |
1823 core.List<DataSource> dataSource; | 1823 core.List<DataSource> dataSource; |
1824 | 1824 |
1825 ListDataSourcesResponse(); | 1825 ListDataSourcesResponse(); |
1826 | 1826 |
1827 ListDataSourcesResponse.fromJson(core.Map _json) { | 1827 ListDataSourcesResponse.fromJson(core.Map _json) { |
1828 if (_json.containsKey("dataSource")) { | 1828 if (_json.containsKey("dataSource")) { |
1829 dataSource = _json["dataSource"].map((value) => new DataSource.fromJson(va
lue)).toList(); | 1829 dataSource = _json["dataSource"].map((value) => new DataSource.fromJson(va
lue)).toList(); |
1830 } | 1830 } |
1831 } | 1831 } |
1832 | 1832 |
1833 core.Map toJson() { | 1833 core.Map<core.String, core.Object> toJson() { |
1834 var _json = new core.Map(); | 1834 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1835 if (dataSource != null) { | 1835 if (dataSource != null) { |
1836 _json["dataSource"] = dataSource.map((value) => (value).toJson()).toList()
; | 1836 _json["dataSource"] = dataSource.map((value) => (value).toJson()).toList()
; |
1837 } | 1837 } |
1838 return _json; | 1838 return _json; |
1839 } | 1839 } |
1840 } | 1840 } |
1841 | 1841 |
1842 class ListSessionsResponse { | 1842 class ListSessionsResponse { |
1843 /** | 1843 /** |
1844 * If includeDeleted is set to true in the request, this list will contain | 1844 * If includeDeleted is set to true in the request, this list will contain |
(...skipping 25 matching lines...) Expand all Loading... |
1870 hasMoreData = _json["hasMoreData"]; | 1870 hasMoreData = _json["hasMoreData"]; |
1871 } | 1871 } |
1872 if (_json.containsKey("nextPageToken")) { | 1872 if (_json.containsKey("nextPageToken")) { |
1873 nextPageToken = _json["nextPageToken"]; | 1873 nextPageToken = _json["nextPageToken"]; |
1874 } | 1874 } |
1875 if (_json.containsKey("session")) { | 1875 if (_json.containsKey("session")) { |
1876 session = _json["session"].map((value) => new Session.fromJson(value)).toL
ist(); | 1876 session = _json["session"].map((value) => new Session.fromJson(value)).toL
ist(); |
1877 } | 1877 } |
1878 } | 1878 } |
1879 | 1879 |
1880 core.Map toJson() { | 1880 core.Map<core.String, core.Object> toJson() { |
1881 var _json = new core.Map(); | 1881 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1882 if (deletedSession != null) { | 1882 if (deletedSession != null) { |
1883 _json["deletedSession"] = deletedSession.map((value) => (value).toJson()).
toList(); | 1883 _json["deletedSession"] = deletedSession.map((value) => (value).toJson()).
toList(); |
1884 } | 1884 } |
1885 if (hasMoreData != null) { | 1885 if (hasMoreData != null) { |
1886 _json["hasMoreData"] = hasMoreData; | 1886 _json["hasMoreData"] = hasMoreData; |
1887 } | 1887 } |
1888 if (nextPageToken != null) { | 1888 if (nextPageToken != null) { |
1889 _json["nextPageToken"] = nextPageToken; | 1889 _json["nextPageToken"] = nextPageToken; |
1890 } | 1890 } |
1891 if (session != null) { | 1891 if (session != null) { |
(...skipping 13 matching lines...) Expand all Loading... |
1905 core.double fpVal; | 1905 core.double fpVal; |
1906 | 1906 |
1907 MapValue(); | 1907 MapValue(); |
1908 | 1908 |
1909 MapValue.fromJson(core.Map _json) { | 1909 MapValue.fromJson(core.Map _json) { |
1910 if (_json.containsKey("fpVal")) { | 1910 if (_json.containsKey("fpVal")) { |
1911 fpVal = _json["fpVal"]; | 1911 fpVal = _json["fpVal"]; |
1912 } | 1912 } |
1913 } | 1913 } |
1914 | 1914 |
1915 core.Map toJson() { | 1915 core.Map<core.String, core.Object> toJson() { |
1916 var _json = new core.Map(); | 1916 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1917 if (fpVal != null) { | 1917 if (fpVal != null) { |
1918 _json["fpVal"] = fpVal; | 1918 _json["fpVal"] = fpVal; |
1919 } | 1919 } |
1920 return _json; | 1920 return _json; |
1921 } | 1921 } |
1922 } | 1922 } |
1923 | 1923 |
1924 /** | 1924 /** |
1925 * Sessions contain metadata, such as a user-friendly name and time interval | 1925 * Sessions contain metadata, such as a user-friendly name and time interval |
1926 * information. | 1926 * information. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1979 modifiedTimeMillis = _json["modifiedTimeMillis"]; | 1979 modifiedTimeMillis = _json["modifiedTimeMillis"]; |
1980 } | 1980 } |
1981 if (_json.containsKey("name")) { | 1981 if (_json.containsKey("name")) { |
1982 name = _json["name"]; | 1982 name = _json["name"]; |
1983 } | 1983 } |
1984 if (_json.containsKey("startTimeMillis")) { | 1984 if (_json.containsKey("startTimeMillis")) { |
1985 startTimeMillis = _json["startTimeMillis"]; | 1985 startTimeMillis = _json["startTimeMillis"]; |
1986 } | 1986 } |
1987 } | 1987 } |
1988 | 1988 |
1989 core.Map toJson() { | 1989 core.Map<core.String, core.Object> toJson() { |
1990 var _json = new core.Map(); | 1990 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1991 if (activeTimeMillis != null) { | 1991 if (activeTimeMillis != null) { |
1992 _json["activeTimeMillis"] = activeTimeMillis; | 1992 _json["activeTimeMillis"] = activeTimeMillis; |
1993 } | 1993 } |
1994 if (activityType != null) { | 1994 if (activityType != null) { |
1995 _json["activityType"] = activityType; | 1995 _json["activityType"] = activityType; |
1996 } | 1996 } |
1997 if (application != null) { | 1997 if (application != null) { |
1998 _json["application"] = (application).toJson(); | 1998 _json["application"] = (application).toJson(); |
1999 } | 1999 } |
2000 if (description != null) { | 2000 if (description != null) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2054 intVal = _json["intVal"]; | 2054 intVal = _json["intVal"]; |
2055 } | 2055 } |
2056 if (_json.containsKey("mapVal")) { | 2056 if (_json.containsKey("mapVal")) { |
2057 mapVal = _json["mapVal"].map((value) => new ValueMapValEntry.fromJson(valu
e)).toList(); | 2057 mapVal = _json["mapVal"].map((value) => new ValueMapValEntry.fromJson(valu
e)).toList(); |
2058 } | 2058 } |
2059 if (_json.containsKey("stringVal")) { | 2059 if (_json.containsKey("stringVal")) { |
2060 stringVal = _json["stringVal"]; | 2060 stringVal = _json["stringVal"]; |
2061 } | 2061 } |
2062 } | 2062 } |
2063 | 2063 |
2064 core.Map toJson() { | 2064 core.Map<core.String, core.Object> toJson() { |
2065 var _json = new core.Map(); | 2065 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2066 if (fpVal != null) { | 2066 if (fpVal != null) { |
2067 _json["fpVal"] = fpVal; | 2067 _json["fpVal"] = fpVal; |
2068 } | 2068 } |
2069 if (intVal != null) { | 2069 if (intVal != null) { |
2070 _json["intVal"] = intVal; | 2070 _json["intVal"] = intVal; |
2071 } | 2071 } |
2072 if (mapVal != null) { | 2072 if (mapVal != null) { |
2073 _json["mapVal"] = mapVal.map((value) => (value).toJson()).toList(); | 2073 _json["mapVal"] = mapVal.map((value) => (value).toJson()).toList(); |
2074 } | 2074 } |
2075 if (stringVal != null) { | 2075 if (stringVal != null) { |
(...skipping 11 matching lines...) Expand all Loading... |
2087 | 2087 |
2088 ValueMapValEntry.fromJson(core.Map _json) { | 2088 ValueMapValEntry.fromJson(core.Map _json) { |
2089 if (_json.containsKey("key")) { | 2089 if (_json.containsKey("key")) { |
2090 key = _json["key"]; | 2090 key = _json["key"]; |
2091 } | 2091 } |
2092 if (_json.containsKey("value")) { | 2092 if (_json.containsKey("value")) { |
2093 value = new MapValue.fromJson(_json["value"]); | 2093 value = new MapValue.fromJson(_json["value"]); |
2094 } | 2094 } |
2095 } | 2095 } |
2096 | 2096 |
2097 core.Map toJson() { | 2097 core.Map<core.String, core.Object> toJson() { |
2098 var _json = new core.Map(); | 2098 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2099 if (key != null) { | 2099 if (key != null) { |
2100 _json["key"] = key; | 2100 _json["key"] = key; |
2101 } | 2101 } |
2102 if (value != null) { | 2102 if (value != null) { |
2103 _json["value"] = (value).toJson(); | 2103 _json["value"] = (value).toJson(); |
2104 } | 2104 } |
2105 return _json; | 2105 return _json; |
2106 } | 2106 } |
2107 } | 2107 } |
OLD | NEW |