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.drive.v2; | 3 library googleapis.drive.v2; |
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_1; | 7 import 'dart:convert' as convert_1; |
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 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4070 | 4070 |
4071 AboutAdditionalRoleInfoRoleSets.fromJson(core.Map _json) { | 4071 AboutAdditionalRoleInfoRoleSets.fromJson(core.Map _json) { |
4072 if (_json.containsKey("additionalRoles")) { | 4072 if (_json.containsKey("additionalRoles")) { |
4073 additionalRoles = _json["additionalRoles"]; | 4073 additionalRoles = _json["additionalRoles"]; |
4074 } | 4074 } |
4075 if (_json.containsKey("primaryRole")) { | 4075 if (_json.containsKey("primaryRole")) { |
4076 primaryRole = _json["primaryRole"]; | 4076 primaryRole = _json["primaryRole"]; |
4077 } | 4077 } |
4078 } | 4078 } |
4079 | 4079 |
4080 core.Map toJson() { | 4080 core.Map<core.String, core.Object> toJson() { |
4081 var _json = new core.Map(); | 4081 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4082 if (additionalRoles != null) { | 4082 if (additionalRoles != null) { |
4083 _json["additionalRoles"] = additionalRoles; | 4083 _json["additionalRoles"] = additionalRoles; |
4084 } | 4084 } |
4085 if (primaryRole != null) { | 4085 if (primaryRole != null) { |
4086 _json["primaryRole"] = primaryRole; | 4086 _json["primaryRole"] = primaryRole; |
4087 } | 4087 } |
4088 return _json; | 4088 return _json; |
4089 } | 4089 } |
4090 } | 4090 } |
4091 | 4091 |
4092 class AboutAdditionalRoleInfo { | 4092 class AboutAdditionalRoleInfo { |
4093 /** The supported additional roles per primary role. */ | 4093 /** The supported additional roles per primary role. */ |
4094 core.List<AboutAdditionalRoleInfoRoleSets> roleSets; | 4094 core.List<AboutAdditionalRoleInfoRoleSets> roleSets; |
4095 /** The content type that this additional role info applies to. */ | 4095 /** The content type that this additional role info applies to. */ |
4096 core.String type; | 4096 core.String type; |
4097 | 4097 |
4098 AboutAdditionalRoleInfo(); | 4098 AboutAdditionalRoleInfo(); |
4099 | 4099 |
4100 AboutAdditionalRoleInfo.fromJson(core.Map _json) { | 4100 AboutAdditionalRoleInfo.fromJson(core.Map _json) { |
4101 if (_json.containsKey("roleSets")) { | 4101 if (_json.containsKey("roleSets")) { |
4102 roleSets = _json["roleSets"].map((value) => new AboutAdditionalRoleInfoRol
eSets.fromJson(value)).toList(); | 4102 roleSets = _json["roleSets"].map((value) => new AboutAdditionalRoleInfoRol
eSets.fromJson(value)).toList(); |
4103 } | 4103 } |
4104 if (_json.containsKey("type")) { | 4104 if (_json.containsKey("type")) { |
4105 type = _json["type"]; | 4105 type = _json["type"]; |
4106 } | 4106 } |
4107 } | 4107 } |
4108 | 4108 |
4109 core.Map toJson() { | 4109 core.Map<core.String, core.Object> toJson() { |
4110 var _json = new core.Map(); | 4110 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4111 if (roleSets != null) { | 4111 if (roleSets != null) { |
4112 _json["roleSets"] = roleSets.map((value) => (value).toJson()).toList(); | 4112 _json["roleSets"] = roleSets.map((value) => (value).toJson()).toList(); |
4113 } | 4113 } |
4114 if (type != null) { | 4114 if (type != null) { |
4115 _json["type"] = type; | 4115 _json["type"] = type; |
4116 } | 4116 } |
4117 return _json; | 4117 return _json; |
4118 } | 4118 } |
4119 } | 4119 } |
4120 | 4120 |
4121 class AboutExportFormats { | 4121 class AboutExportFormats { |
4122 /** The content type to convert from. */ | 4122 /** The content type to convert from. */ |
4123 core.String source; | 4123 core.String source; |
4124 /** The possible content types to convert to. */ | 4124 /** The possible content types to convert to. */ |
4125 core.List<core.String> targets; | 4125 core.List<core.String> targets; |
4126 | 4126 |
4127 AboutExportFormats(); | 4127 AboutExportFormats(); |
4128 | 4128 |
4129 AboutExportFormats.fromJson(core.Map _json) { | 4129 AboutExportFormats.fromJson(core.Map _json) { |
4130 if (_json.containsKey("source")) { | 4130 if (_json.containsKey("source")) { |
4131 source = _json["source"]; | 4131 source = _json["source"]; |
4132 } | 4132 } |
4133 if (_json.containsKey("targets")) { | 4133 if (_json.containsKey("targets")) { |
4134 targets = _json["targets"]; | 4134 targets = _json["targets"]; |
4135 } | 4135 } |
4136 } | 4136 } |
4137 | 4137 |
4138 core.Map toJson() { | 4138 core.Map<core.String, core.Object> toJson() { |
4139 var _json = new core.Map(); | 4139 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4140 if (source != null) { | 4140 if (source != null) { |
4141 _json["source"] = source; | 4141 _json["source"] = source; |
4142 } | 4142 } |
4143 if (targets != null) { | 4143 if (targets != null) { |
4144 _json["targets"] = targets; | 4144 _json["targets"] = targets; |
4145 } | 4145 } |
4146 return _json; | 4146 return _json; |
4147 } | 4147 } |
4148 } | 4148 } |
4149 | 4149 |
4150 class AboutFeatures { | 4150 class AboutFeatures { |
4151 /** The name of the feature. */ | 4151 /** The name of the feature. */ |
4152 core.String featureName; | 4152 core.String featureName; |
4153 /** The request limit rate for this feature, in queries per second. */ | 4153 /** The request limit rate for this feature, in queries per second. */ |
4154 core.double featureRate; | 4154 core.double featureRate; |
4155 | 4155 |
4156 AboutFeatures(); | 4156 AboutFeatures(); |
4157 | 4157 |
4158 AboutFeatures.fromJson(core.Map _json) { | 4158 AboutFeatures.fromJson(core.Map _json) { |
4159 if (_json.containsKey("featureName")) { | 4159 if (_json.containsKey("featureName")) { |
4160 featureName = _json["featureName"]; | 4160 featureName = _json["featureName"]; |
4161 } | 4161 } |
4162 if (_json.containsKey("featureRate")) { | 4162 if (_json.containsKey("featureRate")) { |
4163 featureRate = _json["featureRate"]; | 4163 featureRate = _json["featureRate"]; |
4164 } | 4164 } |
4165 } | 4165 } |
4166 | 4166 |
4167 core.Map toJson() { | 4167 core.Map<core.String, core.Object> toJson() { |
4168 var _json = new core.Map(); | 4168 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4169 if (featureName != null) { | 4169 if (featureName != null) { |
4170 _json["featureName"] = featureName; | 4170 _json["featureName"] = featureName; |
4171 } | 4171 } |
4172 if (featureRate != null) { | 4172 if (featureRate != null) { |
4173 _json["featureRate"] = featureRate; | 4173 _json["featureRate"] = featureRate; |
4174 } | 4174 } |
4175 return _json; | 4175 return _json; |
4176 } | 4176 } |
4177 } | 4177 } |
4178 | 4178 |
4179 class AboutImportFormats { | 4179 class AboutImportFormats { |
4180 /** The imported file's content type to convert from. */ | 4180 /** The imported file's content type to convert from. */ |
4181 core.String source; | 4181 core.String source; |
4182 /** The possible content types to convert to. */ | 4182 /** The possible content types to convert to. */ |
4183 core.List<core.String> targets; | 4183 core.List<core.String> targets; |
4184 | 4184 |
4185 AboutImportFormats(); | 4185 AboutImportFormats(); |
4186 | 4186 |
4187 AboutImportFormats.fromJson(core.Map _json) { | 4187 AboutImportFormats.fromJson(core.Map _json) { |
4188 if (_json.containsKey("source")) { | 4188 if (_json.containsKey("source")) { |
4189 source = _json["source"]; | 4189 source = _json["source"]; |
4190 } | 4190 } |
4191 if (_json.containsKey("targets")) { | 4191 if (_json.containsKey("targets")) { |
4192 targets = _json["targets"]; | 4192 targets = _json["targets"]; |
4193 } | 4193 } |
4194 } | 4194 } |
4195 | 4195 |
4196 core.Map toJson() { | 4196 core.Map<core.String, core.Object> toJson() { |
4197 var _json = new core.Map(); | 4197 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4198 if (source != null) { | 4198 if (source != null) { |
4199 _json["source"] = source; | 4199 _json["source"] = source; |
4200 } | 4200 } |
4201 if (targets != null) { | 4201 if (targets != null) { |
4202 _json["targets"] = targets; | 4202 _json["targets"] = targets; |
4203 } | 4203 } |
4204 return _json; | 4204 return _json; |
4205 } | 4205 } |
4206 } | 4206 } |
4207 | 4207 |
4208 class AboutMaxUploadSizes { | 4208 class AboutMaxUploadSizes { |
4209 /** The max upload size for this type. */ | 4209 /** The max upload size for this type. */ |
4210 core.String size; | 4210 core.String size; |
4211 /** The file type. */ | 4211 /** The file type. */ |
4212 core.String type; | 4212 core.String type; |
4213 | 4213 |
4214 AboutMaxUploadSizes(); | 4214 AboutMaxUploadSizes(); |
4215 | 4215 |
4216 AboutMaxUploadSizes.fromJson(core.Map _json) { | 4216 AboutMaxUploadSizes.fromJson(core.Map _json) { |
4217 if (_json.containsKey("size")) { | 4217 if (_json.containsKey("size")) { |
4218 size = _json["size"]; | 4218 size = _json["size"]; |
4219 } | 4219 } |
4220 if (_json.containsKey("type")) { | 4220 if (_json.containsKey("type")) { |
4221 type = _json["type"]; | 4221 type = _json["type"]; |
4222 } | 4222 } |
4223 } | 4223 } |
4224 | 4224 |
4225 core.Map toJson() { | 4225 core.Map<core.String, core.Object> toJson() { |
4226 var _json = new core.Map(); | 4226 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4227 if (size != null) { | 4227 if (size != null) { |
4228 _json["size"] = size; | 4228 _json["size"] = size; |
4229 } | 4229 } |
4230 if (type != null) { | 4230 if (type != null) { |
4231 _json["type"] = type; | 4231 _json["type"] = type; |
4232 } | 4232 } |
4233 return _json; | 4233 return _json; |
4234 } | 4234 } |
4235 } | 4235 } |
4236 | 4236 |
4237 class AboutQuotaBytesByService { | 4237 class AboutQuotaBytesByService { |
4238 /** The storage quota bytes used by the service. */ | 4238 /** The storage quota bytes used by the service. */ |
4239 core.String bytesUsed; | 4239 core.String bytesUsed; |
4240 /** The service's name, e.g. DRIVE, GMAIL, or PHOTOS. */ | 4240 /** The service's name, e.g. DRIVE, GMAIL, or PHOTOS. */ |
4241 core.String serviceName; | 4241 core.String serviceName; |
4242 | 4242 |
4243 AboutQuotaBytesByService(); | 4243 AboutQuotaBytesByService(); |
4244 | 4244 |
4245 AboutQuotaBytesByService.fromJson(core.Map _json) { | 4245 AboutQuotaBytesByService.fromJson(core.Map _json) { |
4246 if (_json.containsKey("bytesUsed")) { | 4246 if (_json.containsKey("bytesUsed")) { |
4247 bytesUsed = _json["bytesUsed"]; | 4247 bytesUsed = _json["bytesUsed"]; |
4248 } | 4248 } |
4249 if (_json.containsKey("serviceName")) { | 4249 if (_json.containsKey("serviceName")) { |
4250 serviceName = _json["serviceName"]; | 4250 serviceName = _json["serviceName"]; |
4251 } | 4251 } |
4252 } | 4252 } |
4253 | 4253 |
4254 core.Map toJson() { | 4254 core.Map<core.String, core.Object> toJson() { |
4255 var _json = new core.Map(); | 4255 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4256 if (bytesUsed != null) { | 4256 if (bytesUsed != null) { |
4257 _json["bytesUsed"] = bytesUsed; | 4257 _json["bytesUsed"] = bytesUsed; |
4258 } | 4258 } |
4259 if (serviceName != null) { | 4259 if (serviceName != null) { |
4260 _json["serviceName"] = serviceName; | 4260 _json["serviceName"] = serviceName; |
4261 } | 4261 } |
4262 return _json; | 4262 return _json; |
4263 } | 4263 } |
4264 } | 4264 } |
4265 | 4265 |
(...skipping 12 matching lines...) Expand all Loading... |
4278 backgroundImageLink = _json["backgroundImageLink"]; | 4278 backgroundImageLink = _json["backgroundImageLink"]; |
4279 } | 4279 } |
4280 if (_json.containsKey("colorRgb")) { | 4280 if (_json.containsKey("colorRgb")) { |
4281 colorRgb = _json["colorRgb"]; | 4281 colorRgb = _json["colorRgb"]; |
4282 } | 4282 } |
4283 if (_json.containsKey("id")) { | 4283 if (_json.containsKey("id")) { |
4284 id = _json["id"]; | 4284 id = _json["id"]; |
4285 } | 4285 } |
4286 } | 4286 } |
4287 | 4287 |
4288 core.Map toJson() { | 4288 core.Map<core.String, core.Object> toJson() { |
4289 var _json = new core.Map(); | 4289 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4290 if (backgroundImageLink != null) { | 4290 if (backgroundImageLink != null) { |
4291 _json["backgroundImageLink"] = backgroundImageLink; | 4291 _json["backgroundImageLink"] = backgroundImageLink; |
4292 } | 4292 } |
4293 if (colorRgb != null) { | 4293 if (colorRgb != null) { |
4294 _json["colorRgb"] = colorRgb; | 4294 _json["colorRgb"] = colorRgb; |
4295 } | 4295 } |
4296 if (id != null) { | 4296 if (id != null) { |
4297 _json["id"] = id; | 4297 _json["id"] = id; |
4298 } | 4298 } |
4299 return _json; | 4299 return _json; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4451 selfLink = _json["selfLink"]; | 4451 selfLink = _json["selfLink"]; |
4452 } | 4452 } |
4453 if (_json.containsKey("teamDriveThemes")) { | 4453 if (_json.containsKey("teamDriveThemes")) { |
4454 teamDriveThemes = _json["teamDriveThemes"].map((value) => new AboutTeamDri
veThemes.fromJson(value)).toList(); | 4454 teamDriveThemes = _json["teamDriveThemes"].map((value) => new AboutTeamDri
veThemes.fromJson(value)).toList(); |
4455 } | 4455 } |
4456 if (_json.containsKey("user")) { | 4456 if (_json.containsKey("user")) { |
4457 user = new User.fromJson(_json["user"]); | 4457 user = new User.fromJson(_json["user"]); |
4458 } | 4458 } |
4459 } | 4459 } |
4460 | 4460 |
4461 core.Map toJson() { | 4461 core.Map<core.String, core.Object> toJson() { |
4462 var _json = new core.Map(); | 4462 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4463 if (additionalRoleInfo != null) { | 4463 if (additionalRoleInfo != null) { |
4464 _json["additionalRoleInfo"] = additionalRoleInfo.map((value) => (value).to
Json()).toList(); | 4464 _json["additionalRoleInfo"] = additionalRoleInfo.map((value) => (value).to
Json()).toList(); |
4465 } | 4465 } |
4466 if (domainSharingPolicy != null) { | 4466 if (domainSharingPolicy != null) { |
4467 _json["domainSharingPolicy"] = domainSharingPolicy; | 4467 _json["domainSharingPolicy"] = domainSharingPolicy; |
4468 } | 4468 } |
4469 if (etag != null) { | 4469 if (etag != null) { |
4470 _json["etag"] = etag; | 4470 _json["etag"] = etag; |
4471 } | 4471 } |
4472 if (exportFormats != null) { | 4472 if (exportFormats != null) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4559 category = _json["category"]; | 4559 category = _json["category"]; |
4560 } | 4560 } |
4561 if (_json.containsKey("iconUrl")) { | 4561 if (_json.containsKey("iconUrl")) { |
4562 iconUrl = _json["iconUrl"]; | 4562 iconUrl = _json["iconUrl"]; |
4563 } | 4563 } |
4564 if (_json.containsKey("size")) { | 4564 if (_json.containsKey("size")) { |
4565 size = _json["size"]; | 4565 size = _json["size"]; |
4566 } | 4566 } |
4567 } | 4567 } |
4568 | 4568 |
4569 core.Map toJson() { | 4569 core.Map<core.String, core.Object> toJson() { |
4570 var _json = new core.Map(); | 4570 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4571 if (category != null) { | 4571 if (category != null) { |
4572 _json["category"] = category; | 4572 _json["category"] = category; |
4573 } | 4573 } |
4574 if (iconUrl != null) { | 4574 if (iconUrl != null) { |
4575 _json["iconUrl"] = iconUrl; | 4575 _json["iconUrl"] = iconUrl; |
4576 } | 4576 } |
4577 if (size != null) { | 4577 if (size != null) { |
4578 _json["size"] = size; | 4578 _json["size"] = size; |
4579 } | 4579 } |
4580 return _json; | 4580 return _json; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4723 supportsMultiOpen = _json["supportsMultiOpen"]; | 4723 supportsMultiOpen = _json["supportsMultiOpen"]; |
4724 } | 4724 } |
4725 if (_json.containsKey("supportsOfflineCreate")) { | 4725 if (_json.containsKey("supportsOfflineCreate")) { |
4726 supportsOfflineCreate = _json["supportsOfflineCreate"]; | 4726 supportsOfflineCreate = _json["supportsOfflineCreate"]; |
4727 } | 4727 } |
4728 if (_json.containsKey("useByDefault")) { | 4728 if (_json.containsKey("useByDefault")) { |
4729 useByDefault = _json["useByDefault"]; | 4729 useByDefault = _json["useByDefault"]; |
4730 } | 4730 } |
4731 } | 4731 } |
4732 | 4732 |
4733 core.Map toJson() { | 4733 core.Map<core.String, core.Object> toJson() { |
4734 var _json = new core.Map(); | 4734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4735 if (authorized != null) { | 4735 if (authorized != null) { |
4736 _json["authorized"] = authorized; | 4736 _json["authorized"] = authorized; |
4737 } | 4737 } |
4738 if (createInFolderTemplate != null) { | 4738 if (createInFolderTemplate != null) { |
4739 _json["createInFolderTemplate"] = createInFolderTemplate; | 4739 _json["createInFolderTemplate"] = createInFolderTemplate; |
4740 } | 4740 } |
4741 if (createUrl != null) { | 4741 if (createUrl != null) { |
4742 _json["createUrl"] = createUrl; | 4742 _json["createUrl"] = createUrl; |
4743 } | 4743 } |
4744 if (hasDriveWideScope != null) { | 4744 if (hasDriveWideScope != null) { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4840 items = _json["items"].map((value) => new App.fromJson(value)).toList(); | 4840 items = _json["items"].map((value) => new App.fromJson(value)).toList(); |
4841 } | 4841 } |
4842 if (_json.containsKey("kind")) { | 4842 if (_json.containsKey("kind")) { |
4843 kind = _json["kind"]; | 4843 kind = _json["kind"]; |
4844 } | 4844 } |
4845 if (_json.containsKey("selfLink")) { | 4845 if (_json.containsKey("selfLink")) { |
4846 selfLink = _json["selfLink"]; | 4846 selfLink = _json["selfLink"]; |
4847 } | 4847 } |
4848 } | 4848 } |
4849 | 4849 |
4850 core.Map toJson() { | 4850 core.Map<core.String, core.Object> toJson() { |
4851 var _json = new core.Map(); | 4851 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4852 if (defaultAppIds != null) { | 4852 if (defaultAppIds != null) { |
4853 _json["defaultAppIds"] = defaultAppIds; | 4853 _json["defaultAppIds"] = defaultAppIds; |
4854 } | 4854 } |
4855 if (etag != null) { | 4855 if (etag != null) { |
4856 _json["etag"] = etag; | 4856 _json["etag"] = etag; |
4857 } | 4857 } |
4858 if (items != null) { | 4858 if (items != null) { |
4859 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4859 _json["items"] = items.map((value) => (value).toJson()).toList(); |
4860 } | 4860 } |
4861 if (kind != null) { | 4861 if (kind != null) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4929 teamDrive = new TeamDrive.fromJson(_json["teamDrive"]); | 4929 teamDrive = new TeamDrive.fromJson(_json["teamDrive"]); |
4930 } | 4930 } |
4931 if (_json.containsKey("teamDriveId")) { | 4931 if (_json.containsKey("teamDriveId")) { |
4932 teamDriveId = _json["teamDriveId"]; | 4932 teamDriveId = _json["teamDriveId"]; |
4933 } | 4933 } |
4934 if (_json.containsKey("type")) { | 4934 if (_json.containsKey("type")) { |
4935 type = _json["type"]; | 4935 type = _json["type"]; |
4936 } | 4936 } |
4937 } | 4937 } |
4938 | 4938 |
4939 core.Map toJson() { | 4939 core.Map<core.String, core.Object> toJson() { |
4940 var _json = new core.Map(); | 4940 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4941 if (deleted != null) { | 4941 if (deleted != null) { |
4942 _json["deleted"] = deleted; | 4942 _json["deleted"] = deleted; |
4943 } | 4943 } |
4944 if (file != null) { | 4944 if (file != null) { |
4945 _json["file"] = (file).toJson(); | 4945 _json["file"] = (file).toJson(); |
4946 } | 4946 } |
4947 if (fileId != null) { | 4947 if (fileId != null) { |
4948 _json["fileId"] = fileId; | 4948 _json["fileId"] = fileId; |
4949 } | 4949 } |
4950 if (id != null) { | 4950 if (id != null) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5024 nextLink = _json["nextLink"]; | 5024 nextLink = _json["nextLink"]; |
5025 } | 5025 } |
5026 if (_json.containsKey("nextPageToken")) { | 5026 if (_json.containsKey("nextPageToken")) { |
5027 nextPageToken = _json["nextPageToken"]; | 5027 nextPageToken = _json["nextPageToken"]; |
5028 } | 5028 } |
5029 if (_json.containsKey("selfLink")) { | 5029 if (_json.containsKey("selfLink")) { |
5030 selfLink = _json["selfLink"]; | 5030 selfLink = _json["selfLink"]; |
5031 } | 5031 } |
5032 } | 5032 } |
5033 | 5033 |
5034 core.Map toJson() { | 5034 core.Map<core.String, core.Object> toJson() { |
5035 var _json = new core.Map(); | 5035 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5036 if (etag != null) { | 5036 if (etag != null) { |
5037 _json["etag"] = etag; | 5037 _json["etag"] = etag; |
5038 } | 5038 } |
5039 if (items != null) { | 5039 if (items != null) { |
5040 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5040 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5041 } | 5041 } |
5042 if (kind != null) { | 5042 if (kind != null) { |
5043 _json["kind"] = kind; | 5043 _json["kind"] = kind; |
5044 } | 5044 } |
5045 if (largestChangeId != null) { | 5045 if (largestChangeId != null) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5124 resourceUri = _json["resourceUri"]; | 5124 resourceUri = _json["resourceUri"]; |
5125 } | 5125 } |
5126 if (_json.containsKey("token")) { | 5126 if (_json.containsKey("token")) { |
5127 token = _json["token"]; | 5127 token = _json["token"]; |
5128 } | 5128 } |
5129 if (_json.containsKey("type")) { | 5129 if (_json.containsKey("type")) { |
5130 type = _json["type"]; | 5130 type = _json["type"]; |
5131 } | 5131 } |
5132 } | 5132 } |
5133 | 5133 |
5134 core.Map toJson() { | 5134 core.Map<core.String, core.Object> toJson() { |
5135 var _json = new core.Map(); | 5135 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5136 if (address != null) { | 5136 if (address != null) { |
5137 _json["address"] = address; | 5137 _json["address"] = address; |
5138 } | 5138 } |
5139 if (expiration != null) { | 5139 if (expiration != null) { |
5140 _json["expiration"] = expiration; | 5140 _json["expiration"] = expiration; |
5141 } | 5141 } |
5142 if (id != null) { | 5142 if (id != null) { |
5143 _json["id"] = id; | 5143 _json["id"] = id; |
5144 } | 5144 } |
5145 if (kind != null) { | 5145 if (kind != null) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5206 nextLink = _json["nextLink"]; | 5206 nextLink = _json["nextLink"]; |
5207 } | 5207 } |
5208 if (_json.containsKey("nextPageToken")) { | 5208 if (_json.containsKey("nextPageToken")) { |
5209 nextPageToken = _json["nextPageToken"]; | 5209 nextPageToken = _json["nextPageToken"]; |
5210 } | 5210 } |
5211 if (_json.containsKey("selfLink")) { | 5211 if (_json.containsKey("selfLink")) { |
5212 selfLink = _json["selfLink"]; | 5212 selfLink = _json["selfLink"]; |
5213 } | 5213 } |
5214 } | 5214 } |
5215 | 5215 |
5216 core.Map toJson() { | 5216 core.Map<core.String, core.Object> toJson() { |
5217 var _json = new core.Map(); | 5217 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5218 if (etag != null) { | 5218 if (etag != null) { |
5219 _json["etag"] = etag; | 5219 _json["etag"] = etag; |
5220 } | 5220 } |
5221 if (items != null) { | 5221 if (items != null) { |
5222 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5222 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5223 } | 5223 } |
5224 if (kind != null) { | 5224 if (kind != null) { |
5225 _json["kind"] = kind; | 5225 _json["kind"] = kind; |
5226 } | 5226 } |
5227 if (nextLink != null) { | 5227 if (nextLink != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
5258 id = _json["id"]; | 5258 id = _json["id"]; |
5259 } | 5259 } |
5260 if (_json.containsKey("kind")) { | 5260 if (_json.containsKey("kind")) { |
5261 kind = _json["kind"]; | 5261 kind = _json["kind"]; |
5262 } | 5262 } |
5263 if (_json.containsKey("selfLink")) { | 5263 if (_json.containsKey("selfLink")) { |
5264 selfLink = _json["selfLink"]; | 5264 selfLink = _json["selfLink"]; |
5265 } | 5265 } |
5266 } | 5266 } |
5267 | 5267 |
5268 core.Map toJson() { | 5268 core.Map<core.String, core.Object> toJson() { |
5269 var _json = new core.Map(); | 5269 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5270 if (childLink != null) { | 5270 if (childLink != null) { |
5271 _json["childLink"] = childLink; | 5271 _json["childLink"] = childLink; |
5272 } | 5272 } |
5273 if (id != null) { | 5273 if (id != null) { |
5274 _json["id"] = id; | 5274 _json["id"] = id; |
5275 } | 5275 } |
5276 if (kind != null) { | 5276 if (kind != null) { |
5277 _json["kind"] = kind; | 5277 _json["kind"] = kind; |
5278 } | 5278 } |
5279 if (selfLink != null) { | 5279 if (selfLink != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
5298 | 5298 |
5299 CommentContext.fromJson(core.Map _json) { | 5299 CommentContext.fromJson(core.Map _json) { |
5300 if (_json.containsKey("type")) { | 5300 if (_json.containsKey("type")) { |
5301 type = _json["type"]; | 5301 type = _json["type"]; |
5302 } | 5302 } |
5303 if (_json.containsKey("value")) { | 5303 if (_json.containsKey("value")) { |
5304 value = _json["value"]; | 5304 value = _json["value"]; |
5305 } | 5305 } |
5306 } | 5306 } |
5307 | 5307 |
5308 core.Map toJson() { | 5308 core.Map<core.String, core.Object> toJson() { |
5309 var _json = new core.Map(); | 5309 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5310 if (type != null) { | 5310 if (type != null) { |
5311 _json["type"] = type; | 5311 _json["type"] = type; |
5312 } | 5312 } |
5313 if (value != null) { | 5313 if (value != null) { |
5314 _json["value"] = value; | 5314 _json["value"] = value; |
5315 } | 5315 } |
5316 return _json; | 5316 return _json; |
5317 } | 5317 } |
5318 } | 5318 } |
5319 | 5319 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5409 replies = _json["replies"].map((value) => new CommentReply.fromJson(value)
).toList(); | 5409 replies = _json["replies"].map((value) => new CommentReply.fromJson(value)
).toList(); |
5410 } | 5410 } |
5411 if (_json.containsKey("selfLink")) { | 5411 if (_json.containsKey("selfLink")) { |
5412 selfLink = _json["selfLink"]; | 5412 selfLink = _json["selfLink"]; |
5413 } | 5413 } |
5414 if (_json.containsKey("status")) { | 5414 if (_json.containsKey("status")) { |
5415 status = _json["status"]; | 5415 status = _json["status"]; |
5416 } | 5416 } |
5417 } | 5417 } |
5418 | 5418 |
5419 core.Map toJson() { | 5419 core.Map<core.String, core.Object> toJson() { |
5420 var _json = new core.Map(); | 5420 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5421 if (anchor != null) { | 5421 if (anchor != null) { |
5422 _json["anchor"] = anchor; | 5422 _json["anchor"] = anchor; |
5423 } | 5423 } |
5424 if (author != null) { | 5424 if (author != null) { |
5425 _json["author"] = (author).toJson(); | 5425 _json["author"] = (author).toJson(); |
5426 } | 5426 } |
5427 if (commentId != null) { | 5427 if (commentId != null) { |
5428 _json["commentId"] = commentId; | 5428 _json["commentId"] = commentId; |
5429 } | 5429 } |
5430 if (content != null) { | 5430 if (content != null) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5501 nextLink = _json["nextLink"]; | 5501 nextLink = _json["nextLink"]; |
5502 } | 5502 } |
5503 if (_json.containsKey("nextPageToken")) { | 5503 if (_json.containsKey("nextPageToken")) { |
5504 nextPageToken = _json["nextPageToken"]; | 5504 nextPageToken = _json["nextPageToken"]; |
5505 } | 5505 } |
5506 if (_json.containsKey("selfLink")) { | 5506 if (_json.containsKey("selfLink")) { |
5507 selfLink = _json["selfLink"]; | 5507 selfLink = _json["selfLink"]; |
5508 } | 5508 } |
5509 } | 5509 } |
5510 | 5510 |
5511 core.Map toJson() { | 5511 core.Map<core.String, core.Object> toJson() { |
5512 var _json = new core.Map(); | 5512 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5513 if (items != null) { | 5513 if (items != null) { |
5514 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5514 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5515 } | 5515 } |
5516 if (kind != null) { | 5516 if (kind != null) { |
5517 _json["kind"] = kind; | 5517 _json["kind"] = kind; |
5518 } | 5518 } |
5519 if (nextLink != null) { | 5519 if (nextLink != null) { |
5520 _json["nextLink"] = nextLink; | 5520 _json["nextLink"] = nextLink; |
5521 } | 5521 } |
5522 if (nextPageToken != null) { | 5522 if (nextPageToken != null) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5589 modifiedDate = core.DateTime.parse(_json["modifiedDate"]); | 5589 modifiedDate = core.DateTime.parse(_json["modifiedDate"]); |
5590 } | 5590 } |
5591 if (_json.containsKey("replyId")) { | 5591 if (_json.containsKey("replyId")) { |
5592 replyId = _json["replyId"]; | 5592 replyId = _json["replyId"]; |
5593 } | 5593 } |
5594 if (_json.containsKey("verb")) { | 5594 if (_json.containsKey("verb")) { |
5595 verb = _json["verb"]; | 5595 verb = _json["verb"]; |
5596 } | 5596 } |
5597 } | 5597 } |
5598 | 5598 |
5599 core.Map toJson() { | 5599 core.Map<core.String, core.Object> toJson() { |
5600 var _json = new core.Map(); | 5600 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5601 if (author != null) { | 5601 if (author != null) { |
5602 _json["author"] = (author).toJson(); | 5602 _json["author"] = (author).toJson(); |
5603 } | 5603 } |
5604 if (content != null) { | 5604 if (content != null) { |
5605 _json["content"] = content; | 5605 _json["content"] = content; |
5606 } | 5606 } |
5607 if (createdDate != null) { | 5607 if (createdDate != null) { |
5608 _json["createdDate"] = (createdDate).toIso8601String(); | 5608 _json["createdDate"] = (createdDate).toIso8601String(); |
5609 } | 5609 } |
5610 if (deleted != null) { | 5610 if (deleted != null) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5663 nextLink = _json["nextLink"]; | 5663 nextLink = _json["nextLink"]; |
5664 } | 5664 } |
5665 if (_json.containsKey("nextPageToken")) { | 5665 if (_json.containsKey("nextPageToken")) { |
5666 nextPageToken = _json["nextPageToken"]; | 5666 nextPageToken = _json["nextPageToken"]; |
5667 } | 5667 } |
5668 if (_json.containsKey("selfLink")) { | 5668 if (_json.containsKey("selfLink")) { |
5669 selfLink = _json["selfLink"]; | 5669 selfLink = _json["selfLink"]; |
5670 } | 5670 } |
5671 } | 5671 } |
5672 | 5672 |
5673 core.Map toJson() { | 5673 core.Map<core.String, core.Object> toJson() { |
5674 var _json = new core.Map(); | 5674 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5675 if (items != null) { | 5675 if (items != null) { |
5676 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5676 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5677 } | 5677 } |
5678 if (kind != null) { | 5678 if (kind != null) { |
5679 _json["kind"] = kind; | 5679 _json["kind"] = kind; |
5680 } | 5680 } |
5681 if (nextLink != null) { | 5681 if (nextLink != null) { |
5682 _json["nextLink"] = nextLink; | 5682 _json["nextLink"] = nextLink; |
5683 } | 5683 } |
5684 if (nextPageToken != null) { | 5684 if (nextPageToken != null) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5813 canShare = _json["canShare"]; | 5813 canShare = _json["canShare"]; |
5814 } | 5814 } |
5815 if (_json.containsKey("canTrash")) { | 5815 if (_json.containsKey("canTrash")) { |
5816 canTrash = _json["canTrash"]; | 5816 canTrash = _json["canTrash"]; |
5817 } | 5817 } |
5818 if (_json.containsKey("canUntrash")) { | 5818 if (_json.containsKey("canUntrash")) { |
5819 canUntrash = _json["canUntrash"]; | 5819 canUntrash = _json["canUntrash"]; |
5820 } | 5820 } |
5821 } | 5821 } |
5822 | 5822 |
5823 core.Map toJson() { | 5823 core.Map<core.String, core.Object> toJson() { |
5824 var _json = new core.Map(); | 5824 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5825 if (canAddChildren != null) { | 5825 if (canAddChildren != null) { |
5826 _json["canAddChildren"] = canAddChildren; | 5826 _json["canAddChildren"] = canAddChildren; |
5827 } | 5827 } |
5828 if (canChangeRestrictedDownload != null) { | 5828 if (canChangeRestrictedDownload != null) { |
5829 _json["canChangeRestrictedDownload"] = canChangeRestrictedDownload; | 5829 _json["canChangeRestrictedDownload"] = canChangeRestrictedDownload; |
5830 } | 5830 } |
5831 if (canComment != null) { | 5831 if (canComment != null) { |
5832 _json["canComment"] = canComment; | 5832 _json["canComment"] = canComment; |
5833 } | 5833 } |
5834 if (canCopy != null) { | 5834 if (canCopy != null) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5893 altitude = _json["altitude"]; | 5893 altitude = _json["altitude"]; |
5894 } | 5894 } |
5895 if (_json.containsKey("latitude")) { | 5895 if (_json.containsKey("latitude")) { |
5896 latitude = _json["latitude"]; | 5896 latitude = _json["latitude"]; |
5897 } | 5897 } |
5898 if (_json.containsKey("longitude")) { | 5898 if (_json.containsKey("longitude")) { |
5899 longitude = _json["longitude"]; | 5899 longitude = _json["longitude"]; |
5900 } | 5900 } |
5901 } | 5901 } |
5902 | 5902 |
5903 core.Map toJson() { | 5903 core.Map<core.String, core.Object> toJson() { |
5904 var _json = new core.Map(); | 5904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5905 if (altitude != null) { | 5905 if (altitude != null) { |
5906 _json["altitude"] = altitude; | 5906 _json["altitude"] = altitude; |
5907 } | 5907 } |
5908 if (latitude != null) { | 5908 if (latitude != null) { |
5909 _json["latitude"] = latitude; | 5909 _json["latitude"] = latitude; |
5910 } | 5910 } |
5911 if (longitude != null) { | 5911 if (longitude != null) { |
5912 _json["longitude"] = longitude; | 5912 _json["longitude"] = longitude; |
5913 } | 5913 } |
5914 return _json; | 5914 return _json; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6029 subjectDistance = _json["subjectDistance"]; | 6029 subjectDistance = _json["subjectDistance"]; |
6030 } | 6030 } |
6031 if (_json.containsKey("whiteBalance")) { | 6031 if (_json.containsKey("whiteBalance")) { |
6032 whiteBalance = _json["whiteBalance"]; | 6032 whiteBalance = _json["whiteBalance"]; |
6033 } | 6033 } |
6034 if (_json.containsKey("width")) { | 6034 if (_json.containsKey("width")) { |
6035 width = _json["width"]; | 6035 width = _json["width"]; |
6036 } | 6036 } |
6037 } | 6037 } |
6038 | 6038 |
6039 core.Map toJson() { | 6039 core.Map<core.String, core.Object> toJson() { |
6040 var _json = new core.Map(); | 6040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6041 if (aperture != null) { | 6041 if (aperture != null) { |
6042 _json["aperture"] = aperture; | 6042 _json["aperture"] = aperture; |
6043 } | 6043 } |
6044 if (cameraMake != null) { | 6044 if (cameraMake != null) { |
6045 _json["cameraMake"] = cameraMake; | 6045 _json["cameraMake"] = cameraMake; |
6046 } | 6046 } |
6047 if (cameraModel != null) { | 6047 if (cameraModel != null) { |
6048 _json["cameraModel"] = cameraModel; | 6048 _json["cameraModel"] = cameraModel; |
6049 } | 6049 } |
6050 if (colorSpace != null) { | 6050 if (colorSpace != null) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6111 core.String text; | 6111 core.String text; |
6112 | 6112 |
6113 FileIndexableText(); | 6113 FileIndexableText(); |
6114 | 6114 |
6115 FileIndexableText.fromJson(core.Map _json) { | 6115 FileIndexableText.fromJson(core.Map _json) { |
6116 if (_json.containsKey("text")) { | 6116 if (_json.containsKey("text")) { |
6117 text = _json["text"]; | 6117 text = _json["text"]; |
6118 } | 6118 } |
6119 } | 6119 } |
6120 | 6120 |
6121 core.Map toJson() { | 6121 core.Map<core.String, core.Object> toJson() { |
6122 var _json = new core.Map(); | 6122 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6123 if (text != null) { | 6123 if (text != null) { |
6124 _json["text"] = text; | 6124 _json["text"] = text; |
6125 } | 6125 } |
6126 return _json; | 6126 return _json; |
6127 } | 6127 } |
6128 } | 6128 } |
6129 | 6129 |
6130 /** A group of labels for the file. */ | 6130 /** A group of labels for the file. */ |
6131 class FileLabels { | 6131 class FileLabels { |
6132 /** Deprecated. */ | 6132 /** Deprecated. */ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6165 starred = _json["starred"]; | 6165 starred = _json["starred"]; |
6166 } | 6166 } |
6167 if (_json.containsKey("trashed")) { | 6167 if (_json.containsKey("trashed")) { |
6168 trashed = _json["trashed"]; | 6168 trashed = _json["trashed"]; |
6169 } | 6169 } |
6170 if (_json.containsKey("viewed")) { | 6170 if (_json.containsKey("viewed")) { |
6171 viewed = _json["viewed"]; | 6171 viewed = _json["viewed"]; |
6172 } | 6172 } |
6173 } | 6173 } |
6174 | 6174 |
6175 core.Map toJson() { | 6175 core.Map<core.String, core.Object> toJson() { |
6176 var _json = new core.Map(); | 6176 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6177 if (hidden != null) { | 6177 if (hidden != null) { |
6178 _json["hidden"] = hidden; | 6178 _json["hidden"] = hidden; |
6179 } | 6179 } |
6180 if (modified != null) { | 6180 if (modified != null) { |
6181 _json["modified"] = modified; | 6181 _json["modified"] = modified; |
6182 } | 6182 } |
6183 if (restricted != null) { | 6183 if (restricted != null) { |
6184 _json["restricted"] = restricted; | 6184 _json["restricted"] = restricted; |
6185 } | 6185 } |
6186 if (starred != null) { | 6186 if (starred != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6220 | 6220 |
6221 FileThumbnail.fromJson(core.Map _json) { | 6221 FileThumbnail.fromJson(core.Map _json) { |
6222 if (_json.containsKey("image")) { | 6222 if (_json.containsKey("image")) { |
6223 image = _json["image"]; | 6223 image = _json["image"]; |
6224 } | 6224 } |
6225 if (_json.containsKey("mimeType")) { | 6225 if (_json.containsKey("mimeType")) { |
6226 mimeType = _json["mimeType"]; | 6226 mimeType = _json["mimeType"]; |
6227 } | 6227 } |
6228 } | 6228 } |
6229 | 6229 |
6230 core.Map toJson() { | 6230 core.Map<core.String, core.Object> toJson() { |
6231 var _json = new core.Map(); | 6231 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6232 if (image != null) { | 6232 if (image != null) { |
6233 _json["image"] = image; | 6233 _json["image"] = image; |
6234 } | 6234 } |
6235 if (mimeType != null) { | 6235 if (mimeType != null) { |
6236 _json["mimeType"] = mimeType; | 6236 _json["mimeType"] = mimeType; |
6237 } | 6237 } |
6238 return _json; | 6238 return _json; |
6239 } | 6239 } |
6240 } | 6240 } |
6241 | 6241 |
(...skipping 13 matching lines...) Expand all Loading... |
6255 durationMillis = _json["durationMillis"]; | 6255 durationMillis = _json["durationMillis"]; |
6256 } | 6256 } |
6257 if (_json.containsKey("height")) { | 6257 if (_json.containsKey("height")) { |
6258 height = _json["height"]; | 6258 height = _json["height"]; |
6259 } | 6259 } |
6260 if (_json.containsKey("width")) { | 6260 if (_json.containsKey("width")) { |
6261 width = _json["width"]; | 6261 width = _json["width"]; |
6262 } | 6262 } |
6263 } | 6263 } |
6264 | 6264 |
6265 core.Map toJson() { | 6265 core.Map<core.String, core.Object> toJson() { |
6266 var _json = new core.Map(); | 6266 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6267 if (durationMillis != null) { | 6267 if (durationMillis != null) { |
6268 _json["durationMillis"] = durationMillis; | 6268 _json["durationMillis"] = durationMillis; |
6269 } | 6269 } |
6270 if (height != null) { | 6270 if (height != null) { |
6271 _json["height"] = height; | 6271 _json["height"] = height; |
6272 } | 6272 } |
6273 if (width != null) { | 6273 if (width != null) { |
6274 _json["width"] = width; | 6274 _json["width"] = width; |
6275 } | 6275 } |
6276 return _json; | 6276 return _json; |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6720 webContentLink = _json["webContentLink"]; | 6720 webContentLink = _json["webContentLink"]; |
6721 } | 6721 } |
6722 if (_json.containsKey("webViewLink")) { | 6722 if (_json.containsKey("webViewLink")) { |
6723 webViewLink = _json["webViewLink"]; | 6723 webViewLink = _json["webViewLink"]; |
6724 } | 6724 } |
6725 if (_json.containsKey("writersCanShare")) { | 6725 if (_json.containsKey("writersCanShare")) { |
6726 writersCanShare = _json["writersCanShare"]; | 6726 writersCanShare = _json["writersCanShare"]; |
6727 } | 6727 } |
6728 } | 6728 } |
6729 | 6729 |
6730 core.Map toJson() { | 6730 core.Map<core.String, core.Object> toJson() { |
6731 var _json = new core.Map(); | 6731 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6732 if (alternateLink != null) { | 6732 if (alternateLink != null) { |
6733 _json["alternateLink"] = alternateLink; | 6733 _json["alternateLink"] = alternateLink; |
6734 } | 6734 } |
6735 if (appDataContents != null) { | 6735 if (appDataContents != null) { |
6736 _json["appDataContents"] = appDataContents; | 6736 _json["appDataContents"] = appDataContents; |
6737 } | 6737 } |
6738 if (canComment != null) { | 6738 if (canComment != null) { |
6739 _json["canComment"] = canComment; | 6739 _json["canComment"] = canComment; |
6740 } | 6740 } |
6741 if (canReadRevisions != null) { | 6741 if (canReadRevisions != null) { |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6979 nextLink = _json["nextLink"]; | 6979 nextLink = _json["nextLink"]; |
6980 } | 6980 } |
6981 if (_json.containsKey("nextPageToken")) { | 6981 if (_json.containsKey("nextPageToken")) { |
6982 nextPageToken = _json["nextPageToken"]; | 6982 nextPageToken = _json["nextPageToken"]; |
6983 } | 6983 } |
6984 if (_json.containsKey("selfLink")) { | 6984 if (_json.containsKey("selfLink")) { |
6985 selfLink = _json["selfLink"]; | 6985 selfLink = _json["selfLink"]; |
6986 } | 6986 } |
6987 } | 6987 } |
6988 | 6988 |
6989 core.Map toJson() { | 6989 core.Map<core.String, core.Object> toJson() { |
6990 var _json = new core.Map(); | 6990 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6991 if (etag != null) { | 6991 if (etag != null) { |
6992 _json["etag"] = etag; | 6992 _json["etag"] = etag; |
6993 } | 6993 } |
6994 if (incompleteSearch != null) { | 6994 if (incompleteSearch != null) { |
6995 _json["incompleteSearch"] = incompleteSearch; | 6995 _json["incompleteSearch"] = incompleteSearch; |
6996 } | 6996 } |
6997 if (items != null) { | 6997 if (items != null) { |
6998 _json["items"] = items.map((value) => (value).toJson()).toList(); | 6998 _json["items"] = items.map((value) => (value).toJson()).toList(); |
6999 } | 6999 } |
7000 if (kind != null) { | 7000 if (kind != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
7029 ids = _json["ids"]; | 7029 ids = _json["ids"]; |
7030 } | 7030 } |
7031 if (_json.containsKey("kind")) { | 7031 if (_json.containsKey("kind")) { |
7032 kind = _json["kind"]; | 7032 kind = _json["kind"]; |
7033 } | 7033 } |
7034 if (_json.containsKey("space")) { | 7034 if (_json.containsKey("space")) { |
7035 space = _json["space"]; | 7035 space = _json["space"]; |
7036 } | 7036 } |
7037 } | 7037 } |
7038 | 7038 |
7039 core.Map toJson() { | 7039 core.Map<core.String, core.Object> toJson() { |
7040 var _json = new core.Map(); | 7040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7041 if (ids != null) { | 7041 if (ids != null) { |
7042 _json["ids"] = ids; | 7042 _json["ids"] = ids; |
7043 } | 7043 } |
7044 if (kind != null) { | 7044 if (kind != null) { |
7045 _json["kind"] = kind; | 7045 _json["kind"] = kind; |
7046 } | 7046 } |
7047 if (space != null) { | 7047 if (space != null) { |
7048 _json["space"] = space; | 7048 _json["space"] = space; |
7049 } | 7049 } |
7050 return _json; | 7050 return _json; |
(...skipping 21 matching lines...) Expand all Loading... |
7072 items = _json["items"].map((value) => new ParentReference.fromJson(value))
.toList(); | 7072 items = _json["items"].map((value) => new ParentReference.fromJson(value))
.toList(); |
7073 } | 7073 } |
7074 if (_json.containsKey("kind")) { | 7074 if (_json.containsKey("kind")) { |
7075 kind = _json["kind"]; | 7075 kind = _json["kind"]; |
7076 } | 7076 } |
7077 if (_json.containsKey("selfLink")) { | 7077 if (_json.containsKey("selfLink")) { |
7078 selfLink = _json["selfLink"]; | 7078 selfLink = _json["selfLink"]; |
7079 } | 7079 } |
7080 } | 7080 } |
7081 | 7081 |
7082 core.Map toJson() { | 7082 core.Map<core.String, core.Object> toJson() { |
7083 var _json = new core.Map(); | 7083 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7084 if (etag != null) { | 7084 if (etag != null) { |
7085 _json["etag"] = etag; | 7085 _json["etag"] = etag; |
7086 } | 7086 } |
7087 if (items != null) { | 7087 if (items != null) { |
7088 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7088 _json["items"] = items.map((value) => (value).toJson()).toList(); |
7089 } | 7089 } |
7090 if (kind != null) { | 7090 if (kind != null) { |
7091 _json["kind"] = kind; | 7091 _json["kind"] = kind; |
7092 } | 7092 } |
7093 if (selfLink != null) { | 7093 if (selfLink != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
7123 kind = _json["kind"]; | 7123 kind = _json["kind"]; |
7124 } | 7124 } |
7125 if (_json.containsKey("parentLink")) { | 7125 if (_json.containsKey("parentLink")) { |
7126 parentLink = _json["parentLink"]; | 7126 parentLink = _json["parentLink"]; |
7127 } | 7127 } |
7128 if (_json.containsKey("selfLink")) { | 7128 if (_json.containsKey("selfLink")) { |
7129 selfLink = _json["selfLink"]; | 7129 selfLink = _json["selfLink"]; |
7130 } | 7130 } |
7131 } | 7131 } |
7132 | 7132 |
7133 core.Map toJson() { | 7133 core.Map<core.String, core.Object> toJson() { |
7134 var _json = new core.Map(); | 7134 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7135 if (id != null) { | 7135 if (id != null) { |
7136 _json["id"] = id; | 7136 _json["id"] = id; |
7137 } | 7137 } |
7138 if (isRoot != null) { | 7138 if (isRoot != null) { |
7139 _json["isRoot"] = isRoot; | 7139 _json["isRoot"] = isRoot; |
7140 } | 7140 } |
7141 if (kind != null) { | 7141 if (kind != null) { |
7142 _json["kind"] = kind; | 7142 _json["kind"] = kind; |
7143 } | 7143 } |
7144 if (parentLink != null) { | 7144 if (parentLink != null) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7196 inheritedFrom = _json["inheritedFrom"]; | 7196 inheritedFrom = _json["inheritedFrom"]; |
7197 } | 7197 } |
7198 if (_json.containsKey("role")) { | 7198 if (_json.containsKey("role")) { |
7199 role = _json["role"]; | 7199 role = _json["role"]; |
7200 } | 7200 } |
7201 if (_json.containsKey("teamDrivePermissionType")) { | 7201 if (_json.containsKey("teamDrivePermissionType")) { |
7202 teamDrivePermissionType = _json["teamDrivePermissionType"]; | 7202 teamDrivePermissionType = _json["teamDrivePermissionType"]; |
7203 } | 7203 } |
7204 } | 7204 } |
7205 | 7205 |
7206 core.Map toJson() { | 7206 core.Map<core.String, core.Object> toJson() { |
7207 var _json = new core.Map(); | 7207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7208 if (additionalRoles != null) { | 7208 if (additionalRoles != null) { |
7209 _json["additionalRoles"] = additionalRoles; | 7209 _json["additionalRoles"] = additionalRoles; |
7210 } | 7210 } |
7211 if (inherited != null) { | 7211 if (inherited != null) { |
7212 _json["inherited"] = inherited; | 7212 _json["inherited"] = inherited; |
7213 } | 7213 } |
7214 if (inheritedFrom != null) { | 7214 if (inheritedFrom != null) { |
7215 _json["inheritedFrom"] = inheritedFrom; | 7215 _json["inheritedFrom"] = inheritedFrom; |
7216 } | 7216 } |
7217 if (role != null) { | 7217 if (role != null) { |
7218 _json["role"] = role; | 7218 _json["role"] = role; |
7219 } | 7219 } |
7220 if (teamDrivePermissionType != null) { | 7220 if (teamDrivePermissionType != null) { |
7221 _json["teamDrivePermissionType"] = teamDrivePermissionType; | 7221 _json["teamDrivePermissionType"] = teamDrivePermissionType; |
7222 } | 7222 } |
7223 return _json; | 7223 return _json; |
7224 } | 7224 } |
7225 } | 7225 } |
7226 | 7226 |
7227 /** A permission for a file. */ | 7227 /** A permission for a file. */ |
7228 class Permission { | 7228 class Permission { |
7229 /** | 7229 /** |
7230 * Additional roles for this user. Only commenter is currently allowed, though | 7230 * Additional roles for this user. Only commenter is currently allowed, though |
7231 * more may be supported in the future. | 7231 * more may be supported in the future. |
7232 */ | 7232 */ |
7233 core.List<core.String> additionalRoles; | 7233 core.List<core.String> additionalRoles; |
7234 /** The authkey parameter required for this permission. */ | 7234 /** Deprecated. */ |
7235 core.String authKey; | 7235 core.String authKey; |
7236 /** | 7236 /** |
7237 * Whether the account associated with this permission has been deleted. This | 7237 * Whether the account associated with this permission has been deleted. This |
7238 * field only pertains to user and group permissions. | 7238 * field only pertains to user and group permissions. |
7239 */ | 7239 */ |
7240 core.bool deleted; | 7240 core.bool deleted; |
7241 /** | 7241 /** |
7242 * The domain name of the entity this permission refers to. This is an | 7242 * The domain name of the entity this permission refers to. This is an |
7243 * output-only field which is present when the permission type is user, group | 7243 * output-only field which is present when the permission type is user, group |
7244 * or domain. | 7244 * or domain. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7360 type = _json["type"]; | 7360 type = _json["type"]; |
7361 } | 7361 } |
7362 if (_json.containsKey("value")) { | 7362 if (_json.containsKey("value")) { |
7363 value = _json["value"]; | 7363 value = _json["value"]; |
7364 } | 7364 } |
7365 if (_json.containsKey("withLink")) { | 7365 if (_json.containsKey("withLink")) { |
7366 withLink = _json["withLink"]; | 7366 withLink = _json["withLink"]; |
7367 } | 7367 } |
7368 } | 7368 } |
7369 | 7369 |
7370 core.Map toJson() { | 7370 core.Map<core.String, core.Object> toJson() { |
7371 var _json = new core.Map(); | 7371 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7372 if (additionalRoles != null) { | 7372 if (additionalRoles != null) { |
7373 _json["additionalRoles"] = additionalRoles; | 7373 _json["additionalRoles"] = additionalRoles; |
7374 } | 7374 } |
7375 if (authKey != null) { | 7375 if (authKey != null) { |
7376 _json["authKey"] = authKey; | 7376 _json["authKey"] = authKey; |
7377 } | 7377 } |
7378 if (deleted != null) { | 7378 if (deleted != null) { |
7379 _json["deleted"] = deleted; | 7379 _json["deleted"] = deleted; |
7380 } | 7380 } |
7381 if (domain != null) { | 7381 if (domain != null) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7435 | 7435 |
7436 PermissionId.fromJson(core.Map _json) { | 7436 PermissionId.fromJson(core.Map _json) { |
7437 if (_json.containsKey("id")) { | 7437 if (_json.containsKey("id")) { |
7438 id = _json["id"]; | 7438 id = _json["id"]; |
7439 } | 7439 } |
7440 if (_json.containsKey("kind")) { | 7440 if (_json.containsKey("kind")) { |
7441 kind = _json["kind"]; | 7441 kind = _json["kind"]; |
7442 } | 7442 } |
7443 } | 7443 } |
7444 | 7444 |
7445 core.Map toJson() { | 7445 core.Map<core.String, core.Object> toJson() { |
7446 var _json = new core.Map(); | 7446 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7447 if (id != null) { | 7447 if (id != null) { |
7448 _json["id"] = id; | 7448 _json["id"] = id; |
7449 } | 7449 } |
7450 if (kind != null) { | 7450 if (kind != null) { |
7451 _json["kind"] = kind; | 7451 _json["kind"] = kind; |
7452 } | 7452 } |
7453 return _json; | 7453 return _json; |
7454 } | 7454 } |
7455 } | 7455 } |
7456 | 7456 |
(...skipping 28 matching lines...) Expand all Loading... |
7485 kind = _json["kind"]; | 7485 kind = _json["kind"]; |
7486 } | 7486 } |
7487 if (_json.containsKey("nextPageToken")) { | 7487 if (_json.containsKey("nextPageToken")) { |
7488 nextPageToken = _json["nextPageToken"]; | 7488 nextPageToken = _json["nextPageToken"]; |
7489 } | 7489 } |
7490 if (_json.containsKey("selfLink")) { | 7490 if (_json.containsKey("selfLink")) { |
7491 selfLink = _json["selfLink"]; | 7491 selfLink = _json["selfLink"]; |
7492 } | 7492 } |
7493 } | 7493 } |
7494 | 7494 |
7495 core.Map toJson() { | 7495 core.Map<core.String, core.Object> toJson() { |
7496 var _json = new core.Map(); | 7496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7497 if (etag != null) { | 7497 if (etag != null) { |
7498 _json["etag"] = etag; | 7498 _json["etag"] = etag; |
7499 } | 7499 } |
7500 if (items != null) { | 7500 if (items != null) { |
7501 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7501 _json["items"] = items.map((value) => (value).toJson()).toList(); |
7502 } | 7502 } |
7503 if (kind != null) { | 7503 if (kind != null) { |
7504 _json["kind"] = kind; | 7504 _json["kind"] = kind; |
7505 } | 7505 } |
7506 if (nextPageToken != null) { | 7506 if (nextPageToken != null) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7553 selfLink = _json["selfLink"]; | 7553 selfLink = _json["selfLink"]; |
7554 } | 7554 } |
7555 if (_json.containsKey("value")) { | 7555 if (_json.containsKey("value")) { |
7556 value = _json["value"]; | 7556 value = _json["value"]; |
7557 } | 7557 } |
7558 if (_json.containsKey("visibility")) { | 7558 if (_json.containsKey("visibility")) { |
7559 visibility = _json["visibility"]; | 7559 visibility = _json["visibility"]; |
7560 } | 7560 } |
7561 } | 7561 } |
7562 | 7562 |
7563 core.Map toJson() { | 7563 core.Map<core.String, core.Object> toJson() { |
7564 var _json = new core.Map(); | 7564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7565 if (etag != null) { | 7565 if (etag != null) { |
7566 _json["etag"] = etag; | 7566 _json["etag"] = etag; |
7567 } | 7567 } |
7568 if (key != null) { | 7568 if (key != null) { |
7569 _json["key"] = key; | 7569 _json["key"] = key; |
7570 } | 7570 } |
7571 if (kind != null) { | 7571 if (kind != null) { |
7572 _json["kind"] = kind; | 7572 _json["kind"] = kind; |
7573 } | 7573 } |
7574 if (selfLink != null) { | 7574 if (selfLink != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7608 items = _json["items"].map((value) => new Property.fromJson(value)).toList
(); | 7608 items = _json["items"].map((value) => new Property.fromJson(value)).toList
(); |
7609 } | 7609 } |
7610 if (_json.containsKey("kind")) { | 7610 if (_json.containsKey("kind")) { |
7611 kind = _json["kind"]; | 7611 kind = _json["kind"]; |
7612 } | 7612 } |
7613 if (_json.containsKey("selfLink")) { | 7613 if (_json.containsKey("selfLink")) { |
7614 selfLink = _json["selfLink"]; | 7614 selfLink = _json["selfLink"]; |
7615 } | 7615 } |
7616 } | 7616 } |
7617 | 7617 |
7618 core.Map toJson() { | 7618 core.Map<core.String, core.Object> toJson() { |
7619 var _json = new core.Map(); | 7619 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7620 if (etag != null) { | 7620 if (etag != null) { |
7621 _json["etag"] = etag; | 7621 _json["etag"] = etag; |
7622 } | 7622 } |
7623 if (items != null) { | 7623 if (items != null) { |
7624 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7624 _json["items"] = items.map((value) => (value).toJson()).toList(); |
7625 } | 7625 } |
7626 if (kind != null) { | 7626 if (kind != null) { |
7627 _json["kind"] = kind; | 7627 _json["kind"] = kind; |
7628 } | 7628 } |
7629 if (selfLink != null) { | 7629 if (selfLink != null) { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7751 publishedLink = _json["publishedLink"]; | 7751 publishedLink = _json["publishedLink"]; |
7752 } | 7752 } |
7753 if (_json.containsKey("publishedOutsideDomain")) { | 7753 if (_json.containsKey("publishedOutsideDomain")) { |
7754 publishedOutsideDomain = _json["publishedOutsideDomain"]; | 7754 publishedOutsideDomain = _json["publishedOutsideDomain"]; |
7755 } | 7755 } |
7756 if (_json.containsKey("selfLink")) { | 7756 if (_json.containsKey("selfLink")) { |
7757 selfLink = _json["selfLink"]; | 7757 selfLink = _json["selfLink"]; |
7758 } | 7758 } |
7759 } | 7759 } |
7760 | 7760 |
7761 core.Map toJson() { | 7761 core.Map<core.String, core.Object> toJson() { |
7762 var _json = new core.Map(); | 7762 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7763 if (downloadUrl != null) { | 7763 if (downloadUrl != null) { |
7764 _json["downloadUrl"] = downloadUrl; | 7764 _json["downloadUrl"] = downloadUrl; |
7765 } | 7765 } |
7766 if (etag != null) { | 7766 if (etag != null) { |
7767 _json["etag"] = etag; | 7767 _json["etag"] = etag; |
7768 } | 7768 } |
7769 if (exportLinks != null) { | 7769 if (exportLinks != null) { |
7770 _json["exportLinks"] = exportLinks; | 7770 _json["exportLinks"] = exportLinks; |
7771 } | 7771 } |
7772 if (fileSize != null) { | 7772 if (fileSize != null) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7852 kind = _json["kind"]; | 7852 kind = _json["kind"]; |
7853 } | 7853 } |
7854 if (_json.containsKey("nextPageToken")) { | 7854 if (_json.containsKey("nextPageToken")) { |
7855 nextPageToken = _json["nextPageToken"]; | 7855 nextPageToken = _json["nextPageToken"]; |
7856 } | 7856 } |
7857 if (_json.containsKey("selfLink")) { | 7857 if (_json.containsKey("selfLink")) { |
7858 selfLink = _json["selfLink"]; | 7858 selfLink = _json["selfLink"]; |
7859 } | 7859 } |
7860 } | 7860 } |
7861 | 7861 |
7862 core.Map toJson() { | 7862 core.Map<core.String, core.Object> toJson() { |
7863 var _json = new core.Map(); | 7863 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7864 if (etag != null) { | 7864 if (etag != null) { |
7865 _json["etag"] = etag; | 7865 _json["etag"] = etag; |
7866 } | 7866 } |
7867 if (items != null) { | 7867 if (items != null) { |
7868 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7868 _json["items"] = items.map((value) => (value).toJson()).toList(); |
7869 } | 7869 } |
7870 if (kind != null) { | 7870 if (kind != null) { |
7871 _json["kind"] = kind; | 7871 _json["kind"] = kind; |
7872 } | 7872 } |
7873 if (nextPageToken != null) { | 7873 if (nextPageToken != null) { |
(...skipping 19 matching lines...) Expand all Loading... |
7893 | 7893 |
7894 StartPageToken.fromJson(core.Map _json) { | 7894 StartPageToken.fromJson(core.Map _json) { |
7895 if (_json.containsKey("kind")) { | 7895 if (_json.containsKey("kind")) { |
7896 kind = _json["kind"]; | 7896 kind = _json["kind"]; |
7897 } | 7897 } |
7898 if (_json.containsKey("startPageToken")) { | 7898 if (_json.containsKey("startPageToken")) { |
7899 startPageToken = _json["startPageToken"]; | 7899 startPageToken = _json["startPageToken"]; |
7900 } | 7900 } |
7901 } | 7901 } |
7902 | 7902 |
7903 core.Map toJson() { | 7903 core.Map<core.String, core.Object> toJson() { |
7904 var _json = new core.Map(); | 7904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7905 if (kind != null) { | 7905 if (kind != null) { |
7906 _json["kind"] = kind; | 7906 _json["kind"] = kind; |
7907 } | 7907 } |
7908 if (startPageToken != null) { | 7908 if (startPageToken != null) { |
7909 _json["startPageToken"] = startPageToken; | 7909 _json["startPageToken"] = startPageToken; |
7910 } | 7910 } |
7911 return _json; | 7911 return _json; |
7912 } | 7912 } |
7913 } | 7913 } |
7914 | 7914 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7956 width = _json["width"]; | 7956 width = _json["width"]; |
7957 } | 7957 } |
7958 if (_json.containsKey("xCoordinate")) { | 7958 if (_json.containsKey("xCoordinate")) { |
7959 xCoordinate = _json["xCoordinate"]; | 7959 xCoordinate = _json["xCoordinate"]; |
7960 } | 7960 } |
7961 if (_json.containsKey("yCoordinate")) { | 7961 if (_json.containsKey("yCoordinate")) { |
7962 yCoordinate = _json["yCoordinate"]; | 7962 yCoordinate = _json["yCoordinate"]; |
7963 } | 7963 } |
7964 } | 7964 } |
7965 | 7965 |
7966 core.Map toJson() { | 7966 core.Map<core.String, core.Object> toJson() { |
7967 var _json = new core.Map(); | 7967 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7968 if (id != null) { | 7968 if (id != null) { |
7969 _json["id"] = id; | 7969 _json["id"] = id; |
7970 } | 7970 } |
7971 if (width != null) { | 7971 if (width != null) { |
7972 _json["width"] = width; | 7972 _json["width"] = width; |
7973 } | 7973 } |
7974 if (xCoordinate != null) { | 7974 if (xCoordinate != null) { |
7975 _json["xCoordinate"] = xCoordinate; | 7975 _json["xCoordinate"] = xCoordinate; |
7976 } | 7976 } |
7977 if (yCoordinate != null) { | 7977 if (yCoordinate != null) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8074 canRename = _json["canRename"]; | 8074 canRename = _json["canRename"]; |
8075 } | 8075 } |
8076 if (_json.containsKey("canRenameTeamDrive")) { | 8076 if (_json.containsKey("canRenameTeamDrive")) { |
8077 canRenameTeamDrive = _json["canRenameTeamDrive"]; | 8077 canRenameTeamDrive = _json["canRenameTeamDrive"]; |
8078 } | 8078 } |
8079 if (_json.containsKey("canShare")) { | 8079 if (_json.containsKey("canShare")) { |
8080 canShare = _json["canShare"]; | 8080 canShare = _json["canShare"]; |
8081 } | 8081 } |
8082 } | 8082 } |
8083 | 8083 |
8084 core.Map toJson() { | 8084 core.Map<core.String, core.Object> toJson() { |
8085 var _json = new core.Map(); | 8085 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8086 if (canAddChildren != null) { | 8086 if (canAddChildren != null) { |
8087 _json["canAddChildren"] = canAddChildren; | 8087 _json["canAddChildren"] = canAddChildren; |
8088 } | 8088 } |
8089 if (canChangeTeamDriveBackground != null) { | 8089 if (canChangeTeamDriveBackground != null) { |
8090 _json["canChangeTeamDriveBackground"] = canChangeTeamDriveBackground; | 8090 _json["canChangeTeamDriveBackground"] = canChangeTeamDriveBackground; |
8091 } | 8091 } |
8092 if (canComment != null) { | 8092 if (canComment != null) { |
8093 _json["canComment"] = canComment; | 8093 _json["canComment"] = canComment; |
8094 } | 8094 } |
8095 if (canCopy != null) { | 8095 if (canCopy != null) { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8188 kind = _json["kind"]; | 8188 kind = _json["kind"]; |
8189 } | 8189 } |
8190 if (_json.containsKey("name")) { | 8190 if (_json.containsKey("name")) { |
8191 name = _json["name"]; | 8191 name = _json["name"]; |
8192 } | 8192 } |
8193 if (_json.containsKey("themeId")) { | 8193 if (_json.containsKey("themeId")) { |
8194 themeId = _json["themeId"]; | 8194 themeId = _json["themeId"]; |
8195 } | 8195 } |
8196 } | 8196 } |
8197 | 8197 |
8198 core.Map toJson() { | 8198 core.Map<core.String, core.Object> toJson() { |
8199 var _json = new core.Map(); | 8199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8200 if (backgroundImageFile != null) { | 8200 if (backgroundImageFile != null) { |
8201 _json["backgroundImageFile"] = (backgroundImageFile).toJson(); | 8201 _json["backgroundImageFile"] = (backgroundImageFile).toJson(); |
8202 } | 8202 } |
8203 if (backgroundImageLink != null) { | 8203 if (backgroundImageLink != null) { |
8204 _json["backgroundImageLink"] = backgroundImageLink; | 8204 _json["backgroundImageLink"] = backgroundImageLink; |
8205 } | 8205 } |
8206 if (capabilities != null) { | 8206 if (capabilities != null) { |
8207 _json["capabilities"] = (capabilities).toJson(); | 8207 _json["capabilities"] = (capabilities).toJson(); |
8208 } | 8208 } |
8209 if (colorRgb != null) { | 8209 if (colorRgb != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8241 items = _json["items"].map((value) => new TeamDrive.fromJson(value)).toLis
t(); | 8241 items = _json["items"].map((value) => new TeamDrive.fromJson(value)).toLis
t(); |
8242 } | 8242 } |
8243 if (_json.containsKey("kind")) { | 8243 if (_json.containsKey("kind")) { |
8244 kind = _json["kind"]; | 8244 kind = _json["kind"]; |
8245 } | 8245 } |
8246 if (_json.containsKey("nextPageToken")) { | 8246 if (_json.containsKey("nextPageToken")) { |
8247 nextPageToken = _json["nextPageToken"]; | 8247 nextPageToken = _json["nextPageToken"]; |
8248 } | 8248 } |
8249 } | 8249 } |
8250 | 8250 |
8251 core.Map toJson() { | 8251 core.Map<core.String, core.Object> toJson() { |
8252 var _json = new core.Map(); | 8252 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8253 if (items != null) { | 8253 if (items != null) { |
8254 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8254 _json["items"] = items.map((value) => (value).toJson()).toList(); |
8255 } | 8255 } |
8256 if (kind != null) { | 8256 if (kind != null) { |
8257 _json["kind"] = kind; | 8257 _json["kind"] = kind; |
8258 } | 8258 } |
8259 if (nextPageToken != null) { | 8259 if (nextPageToken != null) { |
8260 _json["nextPageToken"] = nextPageToken; | 8260 _json["nextPageToken"] = nextPageToken; |
8261 } | 8261 } |
8262 return _json; | 8262 return _json; |
8263 } | 8263 } |
8264 } | 8264 } |
8265 | 8265 |
8266 /** The user's profile picture. */ | 8266 /** The user's profile picture. */ |
8267 class UserPicture { | 8267 class UserPicture { |
8268 /** A URL that points to a profile picture of this user. */ | 8268 /** A URL that points to a profile picture of this user. */ |
8269 core.String url; | 8269 core.String url; |
8270 | 8270 |
8271 UserPicture(); | 8271 UserPicture(); |
8272 | 8272 |
8273 UserPicture.fromJson(core.Map _json) { | 8273 UserPicture.fromJson(core.Map _json) { |
8274 if (_json.containsKey("url")) { | 8274 if (_json.containsKey("url")) { |
8275 url = _json["url"]; | 8275 url = _json["url"]; |
8276 } | 8276 } |
8277 } | 8277 } |
8278 | 8278 |
8279 core.Map toJson() { | 8279 core.Map<core.String, core.Object> toJson() { |
8280 var _json = new core.Map(); | 8280 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8281 if (url != null) { | 8281 if (url != null) { |
8282 _json["url"] = url; | 8282 _json["url"] = url; |
8283 } | 8283 } |
8284 return _json; | 8284 return _json; |
8285 } | 8285 } |
8286 } | 8286 } |
8287 | 8287 |
8288 /** Information about a Drive user. */ | 8288 /** Information about a Drive user. */ |
8289 class User { | 8289 class User { |
8290 /** A plain text displayable name for this user. */ | 8290 /** A plain text displayable name for this user. */ |
(...skipping 28 matching lines...) Expand all Loading... |
8319 kind = _json["kind"]; | 8319 kind = _json["kind"]; |
8320 } | 8320 } |
8321 if (_json.containsKey("permissionId")) { | 8321 if (_json.containsKey("permissionId")) { |
8322 permissionId = _json["permissionId"]; | 8322 permissionId = _json["permissionId"]; |
8323 } | 8323 } |
8324 if (_json.containsKey("picture")) { | 8324 if (_json.containsKey("picture")) { |
8325 picture = new UserPicture.fromJson(_json["picture"]); | 8325 picture = new UserPicture.fromJson(_json["picture"]); |
8326 } | 8326 } |
8327 } | 8327 } |
8328 | 8328 |
8329 core.Map toJson() { | 8329 core.Map<core.String, core.Object> toJson() { |
8330 var _json = new core.Map(); | 8330 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8331 if (displayName != null) { | 8331 if (displayName != null) { |
8332 _json["displayName"] = displayName; | 8332 _json["displayName"] = displayName; |
8333 } | 8333 } |
8334 if (emailAddress != null) { | 8334 if (emailAddress != null) { |
8335 _json["emailAddress"] = emailAddress; | 8335 _json["emailAddress"] = emailAddress; |
8336 } | 8336 } |
8337 if (isAuthenticatedUser != null) { | 8337 if (isAuthenticatedUser != null) { |
8338 _json["isAuthenticatedUser"] = isAuthenticatedUser; | 8338 _json["isAuthenticatedUser"] = isAuthenticatedUser; |
8339 } | 8339 } |
8340 if (kind != null) { | 8340 if (kind != null) { |
8341 _json["kind"] = kind; | 8341 _json["kind"] = kind; |
8342 } | 8342 } |
8343 if (permissionId != null) { | 8343 if (permissionId != null) { |
8344 _json["permissionId"] = permissionId; | 8344 _json["permissionId"] = permissionId; |
8345 } | 8345 } |
8346 if (picture != null) { | 8346 if (picture != null) { |
8347 _json["picture"] = (picture).toJson(); | 8347 _json["picture"] = (picture).toJson(); |
8348 } | 8348 } |
8349 return _json; | 8349 return _json; |
8350 } | 8350 } |
8351 } | 8351 } |
OLD | NEW |