Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Side by Side Diff: generated/googleapis/lib/plus/v1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.plus.v1; 3 library googleapis.plus.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;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client plus/v1'; 15 const core.String USER_AGENT = 'dart-api-client plus/v1';
16 16
17 /** Builds on top of the Google+ platform. */ 17 /// Builds on top of the Google+ platform.
18 class PlusApi { 18 class PlusApi {
19 /** Know the list of people in your circles, your age range, and language */ 19 /// Know the list of people in your circles, your age range, and language
20 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; 20 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login";
21 21
22 /** Know who you are on Google */ 22 /// Know who you are on Google
23 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me"; 23 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me";
24 24
25 /** View your email address */ 25 /// View your email address
26 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em ail"; 26 static const UserinfoEmailScope =
27 "https://www.googleapis.com/auth/userinfo.email";
27 28
28 /** View your basic profile info */ 29 /// View your basic profile info
29 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo. profile"; 30 static const UserinfoProfileScope =
30 31 "https://www.googleapis.com/auth/userinfo.profile";
31 32
32 final commons.ApiRequester _requester; 33 final commons.ApiRequester _requester;
33 34
34 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); 35 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester);
35 CommentsResourceApi get comments => new CommentsResourceApi(_requester); 36 CommentsResourceApi get comments => new CommentsResourceApi(_requester);
36 PeopleResourceApi get people => new PeopleResourceApi(_requester); 37 PeopleResourceApi get people => new PeopleResourceApi(_requester);
37 38
38 PlusApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/ ", core.String servicePath: "plus/v1/"}) : 39 PlusApi(http.Client client,
39 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 40 {core.String rootUrl: "https://www.googleapis.com/",
41 core.String servicePath: "plus/v1/"})
42 : _requester =
43 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
40 } 44 }
41 45
42
43 class ActivitiesResourceApi { 46 class ActivitiesResourceApi {
44 final commons.ApiRequester _requester; 47 final commons.ApiRequester _requester;
45 48
46 ActivitiesResourceApi(commons.ApiRequester client) : 49 ActivitiesResourceApi(commons.ApiRequester client) : _requester = client;
47 _requester = client;
48 50
49 /** 51 /// Get an activity.
50 * Get an activity. 52 ///
51 * 53 /// Request parameters:
52 * Request parameters: 54 ///
53 * 55 /// [activityId] - The ID of the activity to get.
54 * [activityId] - The ID of the activity to get. 56 ///
55 * 57 /// Completes with a [Activity].
56 * Completes with a [Activity]. 58 ///
57 * 59 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
58 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 60 /// an error.
59 * error. 61 ///
60 * 62 /// If the used [http.Client] completes with an error when making a REST
61 * If the used [http.Client] completes with an error when making a REST call, 63 /// call, this method will complete with the same error.
62 * this method will complete with the same error.
63 */
64 async.Future<Activity> get(core.String activityId) { 64 async.Future<Activity> get(core.String activityId) {
65 var _url = null; 65 var _url = null;
66 var _queryParams = new core.Map(); 66 var _queryParams = new core.Map();
67 var _uploadMedia = null; 67 var _uploadMedia = null;
68 var _uploadOptions = null; 68 var _uploadOptions = null;
69 var _downloadOptions = commons.DownloadOptions.Metadata; 69 var _downloadOptions = commons.DownloadOptions.Metadata;
70 var _body = null; 70 var _body = null;
71 71
72 if (activityId == null) { 72 if (activityId == null) {
73 throw new core.ArgumentError("Parameter activityId is required."); 73 throw new core.ArgumentError("Parameter activityId is required.");
74 } 74 }
75 75
76 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId'); 76 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId');
77 77
78 var _response = _requester.request(_url, 78 var _response = _requester.request(_url, "GET",
79 "GET", 79 body: _body,
80 body: _body, 80 queryParams: _queryParams,
81 queryParams: _queryParams, 81 uploadOptions: _uploadOptions,
82 uploadOptions: _uploadOptions, 82 uploadMedia: _uploadMedia,
83 uploadMedia: _uploadMedia, 83 downloadOptions: _downloadOptions);
84 downloadOptions: _downloadOptions);
85 return _response.then((data) => new Activity.fromJson(data)); 84 return _response.then((data) => new Activity.fromJson(data));
86 } 85 }
87 86
88 /** 87 /// List all of the activities in the specified collection for a particular
89 * List all of the activities in the specified collection for a particular 88 /// user.
90 * user. 89 ///
91 * 90 /// Request parameters:
92 * Request parameters: 91 ///
93 * 92 /// [userId] - The ID of the user to get activities for. The special value
94 * [userId] - The ID of the user to get activities for. The special value "me" 93 /// "me" can be used to indicate the authenticated user.
95 * can be used to indicate the authenticated user. 94 ///
96 * 95 /// [collection] - The collection of activities to list.
97 * [collection] - The collection of activities to list. 96 /// Possible string values are:
98 * Possible string values are: 97 /// - "public" : All public activities created by the specified user.
99 * - "public" : All public activities created by the specified user. 98 ///
100 * 99 /// [maxResults] - The maximum number of activities to include in the
101 * [maxResults] - The maximum number of activities to include in the response, 100 /// response, which is used for paging. For any response, the actual number
102 * which is used for paging. For any response, the actual number returned 101 /// returned might be less than the specified maxResults.
103 * might be less than the specified maxResults. 102 /// Value must be between "1" and "100".
104 * Value must be between "1" and "100". 103 ///
105 * 104 /// [pageToken] - The continuation token, which is used to page through large
106 * [pageToken] - The continuation token, which is used to page through large 105 /// result sets. To get the next page of results, set this parameter to the
107 * result sets. To get the next page of results, set this parameter to the 106 /// value of "nextPageToken" from the previous response.
108 * value of "nextPageToken" from the previous response. 107 ///
109 * 108 /// Completes with a [ActivityFeed].
110 * Completes with a [ActivityFeed]. 109 ///
111 * 110 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 111 /// an error.
113 * error. 112 ///
114 * 113 /// If the used [http.Client] completes with an error when making a REST
115 * If the used [http.Client] completes with an error when making a REST call, 114 /// call, this method will complete with the same error.
116 * this method will complete with the same error. 115 async.Future<ActivityFeed> list(core.String userId, core.String collection,
117 */ 116 {core.int maxResults, core.String pageToken}) {
118 async.Future<ActivityFeed> list(core.String userId, core.String collection, {c ore.int maxResults, core.String pageToken}) {
119 var _url = null; 117 var _url = null;
120 var _queryParams = new core.Map(); 118 var _queryParams = new core.Map();
121 var _uploadMedia = null; 119 var _uploadMedia = null;
122 var _uploadOptions = null; 120 var _uploadOptions = null;
123 var _downloadOptions = commons.DownloadOptions.Metadata; 121 var _downloadOptions = commons.DownloadOptions.Metadata;
124 var _body = null; 122 var _body = null;
125 123
126 if (userId == null) { 124 if (userId == null) {
127 throw new core.ArgumentError("Parameter userId is required."); 125 throw new core.ArgumentError("Parameter userId is required.");
128 } 126 }
129 if (collection == null) { 127 if (collection == null) {
130 throw new core.ArgumentError("Parameter collection is required."); 128 throw new core.ArgumentError("Parameter collection is required.");
131 } 129 }
132 if (maxResults != null) { 130 if (maxResults != null) {
133 _queryParams["maxResults"] = ["${maxResults}"]; 131 _queryParams["maxResults"] = ["${maxResults}"];
134 } 132 }
135 if (pageToken != null) { 133 if (pageToken != null) {
136 _queryParams["pageToken"] = [pageToken]; 134 _queryParams["pageToken"] = [pageToken];
137 } 135 }
138 136
139 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/activities/' + commons.Escaper.ecapeVariable('$collection'); 137 _url = 'people/' +
138 commons.Escaper.ecapeVariable('$userId') +
139 '/activities/' +
140 commons.Escaper.ecapeVariable('$collection');
140 141
141 var _response = _requester.request(_url, 142 var _response = _requester.request(_url, "GET",
142 "GET", 143 body: _body,
143 body: _body, 144 queryParams: _queryParams,
144 queryParams: _queryParams, 145 uploadOptions: _uploadOptions,
145 uploadOptions: _uploadOptions, 146 uploadMedia: _uploadMedia,
146 uploadMedia: _uploadMedia, 147 downloadOptions: _downloadOptions);
147 downloadOptions: _downloadOptions);
148 return _response.then((data) => new ActivityFeed.fromJson(data)); 148 return _response.then((data) => new ActivityFeed.fromJson(data));
149 } 149 }
150 150
151 /** 151 /// Search public activities.
152 * Search public activities. 152 ///
153 * 153 /// Request parameters:
154 * Request parameters: 154 ///
155 * 155 /// [query] - Full-text search query string.
156 * [query] - Full-text search query string. 156 ///
157 * 157 /// [language] - Specify the preferred language to search with. See search
158 * [language] - Specify the preferred language to search with. See search 158 /// language codes for available values.
159 * language codes for available values. 159 ///
160 * 160 /// [maxResults] - The maximum number of activities to include in the
161 * [maxResults] - The maximum number of activities to include in the response, 161 /// response, which is used for paging. For any response, the actual number
162 * which is used for paging. For any response, the actual number returned 162 /// returned might be less than the specified maxResults.
163 * might be less than the specified maxResults. 163 /// Value must be between "1" and "20".
164 * Value must be between "1" and "20". 164 ///
165 * 165 /// [orderBy] - Specifies how to order search results.
166 * [orderBy] - Specifies how to order search results. 166 /// Possible string values are:
167 * Possible string values are: 167 /// - "best" : Sort activities by relevance to the user, most relevant first.
168 * - "best" : Sort activities by relevance to the user, most relevant first. 168 /// - "recent" : Sort activities by published date, most recent first.
169 * - "recent" : Sort activities by published date, most recent first. 169 ///
170 * 170 /// [pageToken] - The continuation token, which is used to page through large
171 * [pageToken] - The continuation token, which is used to page through large 171 /// result sets. To get the next page of results, set this parameter to the
172 * result sets. To get the next page of results, set this parameter to the 172 /// value of "nextPageToken" from the previous response. This token can be of
173 * value of "nextPageToken" from the previous response. This token can be of 173 /// any length.
174 * any length. 174 ///
175 * 175 /// Completes with a [ActivityFeed].
176 * Completes with a [ActivityFeed]. 176 ///
177 * 177 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
178 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 178 /// an error.
179 * error. 179 ///
180 * 180 /// If the used [http.Client] completes with an error when making a REST
181 * If the used [http.Client] completes with an error when making a REST call, 181 /// call, this method will complete with the same error.
182 * this method will complete with the same error. 182 async.Future<ActivityFeed> search(core.String query,
183 */ 183 {core.String language,
184 async.Future<ActivityFeed> search(core.String query, {core.String language, co re.int maxResults, core.String orderBy, core.String pageToken}) { 184 core.int maxResults,
185 core.String orderBy,
186 core.String pageToken}) {
185 var _url = null; 187 var _url = null;
186 var _queryParams = new core.Map(); 188 var _queryParams = new core.Map();
187 var _uploadMedia = null; 189 var _uploadMedia = null;
188 var _uploadOptions = null; 190 var _uploadOptions = null;
189 var _downloadOptions = commons.DownloadOptions.Metadata; 191 var _downloadOptions = commons.DownloadOptions.Metadata;
190 var _body = null; 192 var _body = null;
191 193
192 if (query == null) { 194 if (query == null) {
193 throw new core.ArgumentError("Parameter query is required."); 195 throw new core.ArgumentError("Parameter query is required.");
194 } 196 }
195 _queryParams["query"] = [query]; 197 _queryParams["query"] = [query];
196 if (language != null) { 198 if (language != null) {
197 _queryParams["language"] = [language]; 199 _queryParams["language"] = [language];
198 } 200 }
199 if (maxResults != null) { 201 if (maxResults != null) {
200 _queryParams["maxResults"] = ["${maxResults}"]; 202 _queryParams["maxResults"] = ["${maxResults}"];
201 } 203 }
202 if (orderBy != null) { 204 if (orderBy != null) {
203 _queryParams["orderBy"] = [orderBy]; 205 _queryParams["orderBy"] = [orderBy];
204 } 206 }
205 if (pageToken != null) { 207 if (pageToken != null) {
206 _queryParams["pageToken"] = [pageToken]; 208 _queryParams["pageToken"] = [pageToken];
207 } 209 }
208 210
209 _url = 'activities'; 211 _url = 'activities';
210 212
211 var _response = _requester.request(_url, 213 var _response = _requester.request(_url, "GET",
212 "GET", 214 body: _body,
213 body: _body, 215 queryParams: _queryParams,
214 queryParams: _queryParams, 216 uploadOptions: _uploadOptions,
215 uploadOptions: _uploadOptions, 217 uploadMedia: _uploadMedia,
216 uploadMedia: _uploadMedia, 218 downloadOptions: _downloadOptions);
217 downloadOptions: _downloadOptions);
218 return _response.then((data) => new ActivityFeed.fromJson(data)); 219 return _response.then((data) => new ActivityFeed.fromJson(data));
219 } 220 }
220
221 } 221 }
222 222
223
224 class CommentsResourceApi { 223 class CommentsResourceApi {
225 final commons.ApiRequester _requester; 224 final commons.ApiRequester _requester;
226 225
227 CommentsResourceApi(commons.ApiRequester client) : 226 CommentsResourceApi(commons.ApiRequester client) : _requester = client;
228 _requester = client;
229 227
230 /** 228 /// Get a comment.
231 * Get a comment. 229 ///
232 * 230 /// Request parameters:
233 * Request parameters: 231 ///
234 * 232 /// [commentId] - The ID of the comment to get.
235 * [commentId] - The ID of the comment to get. 233 ///
236 * 234 /// Completes with a [Comment].
237 * Completes with a [Comment]. 235 ///
238 * 236 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 237 /// an error.
240 * error. 238 ///
241 * 239 /// If the used [http.Client] completes with an error when making a REST
242 * If the used [http.Client] completes with an error when making a REST call, 240 /// call, this method will complete with the same error.
243 * this method will complete with the same error.
244 */
245 async.Future<Comment> get(core.String commentId) { 241 async.Future<Comment> get(core.String commentId) {
246 var _url = null; 242 var _url = null;
247 var _queryParams = new core.Map(); 243 var _queryParams = new core.Map();
248 var _uploadMedia = null; 244 var _uploadMedia = null;
249 var _uploadOptions = null; 245 var _uploadOptions = null;
250 var _downloadOptions = commons.DownloadOptions.Metadata; 246 var _downloadOptions = commons.DownloadOptions.Metadata;
251 var _body = null; 247 var _body = null;
252 248
253 if (commentId == null) { 249 if (commentId == null) {
254 throw new core.ArgumentError("Parameter commentId is required."); 250 throw new core.ArgumentError("Parameter commentId is required.");
255 } 251 }
256 252
257 _url = 'comments/' + commons.Escaper.ecapeVariable('$commentId'); 253 _url = 'comments/' + commons.Escaper.ecapeVariable('$commentId');
258 254
259 var _response = _requester.request(_url, 255 var _response = _requester.request(_url, "GET",
260 "GET", 256 body: _body,
261 body: _body, 257 queryParams: _queryParams,
262 queryParams: _queryParams, 258 uploadOptions: _uploadOptions,
263 uploadOptions: _uploadOptions, 259 uploadMedia: _uploadMedia,
264 uploadMedia: _uploadMedia, 260 downloadOptions: _downloadOptions);
265 downloadOptions: _downloadOptions);
266 return _response.then((data) => new Comment.fromJson(data)); 261 return _response.then((data) => new Comment.fromJson(data));
267 } 262 }
268 263
269 /** 264 /// List all of the comments for an activity.
270 * List all of the comments for an activity. 265 ///
271 * 266 /// Request parameters:
272 * Request parameters: 267 ///
273 * 268 /// [activityId] - The ID of the activity to get comments for.
274 * [activityId] - The ID of the activity to get comments for. 269 ///
275 * 270 /// [maxResults] - The maximum number of comments to include in the response,
276 * [maxResults] - The maximum number of comments to include in the response, 271 /// which is used for paging. For any response, the actual number returned
277 * which is used for paging. For any response, the actual number returned 272 /// might be less than the specified maxResults.
278 * might be less than the specified maxResults. 273 /// Value must be between "0" and "500".
279 * Value must be between "0" and "500". 274 ///
280 * 275 /// [pageToken] - The continuation token, which is used to page through large
281 * [pageToken] - The continuation token, which is used to page through large 276 /// result sets. To get the next page of results, set this parameter to the
282 * result sets. To get the next page of results, set this parameter to the 277 /// value of "nextPageToken" from the previous response.
283 * value of "nextPageToken" from the previous response. 278 ///
284 * 279 /// [sortOrder] - The order in which to sort the list of comments.
285 * [sortOrder] - The order in which to sort the list of comments. 280 /// Possible string values are:
286 * Possible string values are: 281 /// - "ascending" : Sort oldest comments first.
287 * - "ascending" : Sort oldest comments first. 282 /// - "descending" : Sort newest comments first.
288 * - "descending" : Sort newest comments first. 283 ///
289 * 284 /// Completes with a [CommentFeed].
290 * Completes with a [CommentFeed]. 285 ///
291 * 286 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
292 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 287 /// an error.
293 * error. 288 ///
294 * 289 /// If the used [http.Client] completes with an error when making a REST
295 * If the used [http.Client] completes with an error when making a REST call, 290 /// call, this method will complete with the same error.
296 * this method will complete with the same error. 291 async.Future<CommentFeed> list(core.String activityId,
297 */ 292 {core.int maxResults, core.String pageToken, core.String sortOrder}) {
298 async.Future<CommentFeed> list(core.String activityId, {core.int maxResults, c ore.String pageToken, core.String sortOrder}) {
299 var _url = null; 293 var _url = null;
300 var _queryParams = new core.Map(); 294 var _queryParams = new core.Map();
301 var _uploadMedia = null; 295 var _uploadMedia = null;
302 var _uploadOptions = null; 296 var _uploadOptions = null;
303 var _downloadOptions = commons.DownloadOptions.Metadata; 297 var _downloadOptions = commons.DownloadOptions.Metadata;
304 var _body = null; 298 var _body = null;
305 299
306 if (activityId == null) { 300 if (activityId == null) {
307 throw new core.ArgumentError("Parameter activityId is required."); 301 throw new core.ArgumentError("Parameter activityId is required.");
308 } 302 }
309 if (maxResults != null) { 303 if (maxResults != null) {
310 _queryParams["maxResults"] = ["${maxResults}"]; 304 _queryParams["maxResults"] = ["${maxResults}"];
311 } 305 }
312 if (pageToken != null) { 306 if (pageToken != null) {
313 _queryParams["pageToken"] = [pageToken]; 307 _queryParams["pageToken"] = [pageToken];
314 } 308 }
315 if (sortOrder != null) { 309 if (sortOrder != null) {
316 _queryParams["sortOrder"] = [sortOrder]; 310 _queryParams["sortOrder"] = [sortOrder];
317 } 311 }
318 312
319 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/comm ents'; 313 _url = 'activities/' +
314 commons.Escaper.ecapeVariable('$activityId') +
315 '/comments';
320 316
321 var _response = _requester.request(_url, 317 var _response = _requester.request(_url, "GET",
322 "GET", 318 body: _body,
323 body: _body, 319 queryParams: _queryParams,
324 queryParams: _queryParams, 320 uploadOptions: _uploadOptions,
325 uploadOptions: _uploadOptions, 321 uploadMedia: _uploadMedia,
326 uploadMedia: _uploadMedia, 322 downloadOptions: _downloadOptions);
327 downloadOptions: _downloadOptions);
328 return _response.then((data) => new CommentFeed.fromJson(data)); 323 return _response.then((data) => new CommentFeed.fromJson(data));
329 } 324 }
330
331 } 325 }
332 326
333
334 class PeopleResourceApi { 327 class PeopleResourceApi {
335 final commons.ApiRequester _requester; 328 final commons.ApiRequester _requester;
336 329
337 PeopleResourceApi(commons.ApiRequester client) : 330 PeopleResourceApi(commons.ApiRequester client) : _requester = client;
338 _requester = client;
339 331
340 /** 332 /// Get a person's profile. If your app uses scope
341 * Get a person's profile. If your app uses scope 333 /// https://www.googleapis.com/auth/plus.login, this method is guaranteed to
342 * https://www.googleapis.com/auth/plus.login, this method is guaranteed to 334 /// return ageRange and language.
343 * return ageRange and language. 335 ///
344 * 336 /// Request parameters:
345 * Request parameters: 337 ///
346 * 338 /// [userId] - The ID of the person to get the profile for. The special value
347 * [userId] - The ID of the person to get the profile for. The special value 339 /// "me" can be used to indicate the authenticated user.
348 * "me" can be used to indicate the authenticated user. 340 ///
349 * 341 /// Completes with a [Person].
350 * Completes with a [Person]. 342 ///
351 * 343 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 344 /// an error.
353 * error. 345 ///
354 * 346 /// If the used [http.Client] completes with an error when making a REST
355 * If the used [http.Client] completes with an error when making a REST call, 347 /// call, this method will complete with the same error.
356 * this method will complete with the same error.
357 */
358 async.Future<Person> get(core.String userId) { 348 async.Future<Person> get(core.String userId) {
359 var _url = null; 349 var _url = null;
360 var _queryParams = new core.Map(); 350 var _queryParams = new core.Map();
361 var _uploadMedia = null; 351 var _uploadMedia = null;
362 var _uploadOptions = null; 352 var _uploadOptions = null;
363 var _downloadOptions = commons.DownloadOptions.Metadata; 353 var _downloadOptions = commons.DownloadOptions.Metadata;
364 var _body = null; 354 var _body = null;
365 355
366 if (userId == null) { 356 if (userId == null) {
367 throw new core.ArgumentError("Parameter userId is required."); 357 throw new core.ArgumentError("Parameter userId is required.");
368 } 358 }
369 359
370 _url = 'people/' + commons.Escaper.ecapeVariable('$userId'); 360 _url = 'people/' + commons.Escaper.ecapeVariable('$userId');
371 361
372 var _response = _requester.request(_url, 362 var _response = _requester.request(_url, "GET",
373 "GET", 363 body: _body,
374 body: _body, 364 queryParams: _queryParams,
375 queryParams: _queryParams, 365 uploadOptions: _uploadOptions,
376 uploadOptions: _uploadOptions, 366 uploadMedia: _uploadMedia,
377 uploadMedia: _uploadMedia, 367 downloadOptions: _downloadOptions);
378 downloadOptions: _downloadOptions);
379 return _response.then((data) => new Person.fromJson(data)); 368 return _response.then((data) => new Person.fromJson(data));
380 } 369 }
381 370
382 /** 371 /// List all of the people in the specified collection.
383 * List all of the people in the specified collection. 372 ///
384 * 373 /// Request parameters:
385 * Request parameters: 374 ///
386 * 375 /// [userId] - Get the collection of people for the person identified. Use
387 * [userId] - Get the collection of people for the person identified. Use "me" 376 /// "me" to indicate the authenticated user.
388 * to indicate the authenticated user. 377 ///
389 * 378 /// [collection] - The collection of people to list.
390 * [collection] - The collection of people to list. 379 /// Possible string values are:
391 * Possible string values are: 380 /// - "connected" : The list of visible people in the authenticated user's
392 * - "connected" : The list of visible people in the authenticated user's 381 /// circles who also use the requesting app. This list is limited to users
393 * circles who also use the requesting app. This list is limited to users who 382 /// who made their app activities visible to the authenticated user.
394 * made their app activities visible to the authenticated user. 383 /// - "visible" : The list of people who this user has added to one or more
395 * - "visible" : The list of people who this user has added to one or more 384 /// circles, limited to the circles visible to the requesting application.
396 * circles, limited to the circles visible to the requesting application. 385 ///
397 * 386 /// [maxResults] - The maximum number of people to include in the response,
398 * [maxResults] - The maximum number of people to include in the response, 387 /// which is used for paging. For any response, the actual number returned
399 * which is used for paging. For any response, the actual number returned 388 /// might be less than the specified maxResults.
400 * might be less than the specified maxResults. 389 /// Value must be between "1" and "100".
401 * Value must be between "1" and "100". 390 ///
402 * 391 /// [orderBy] - The order to return people in.
403 * [orderBy] - The order to return people in. 392 /// Possible string values are:
404 * Possible string values are: 393 /// - "alphabetical" : Order the people by their display name.
405 * - "alphabetical" : Order the people by their display name. 394 /// - "best" : Order people based on the relevence to the viewer.
406 * - "best" : Order people based on the relevence to the viewer. 395 ///
407 * 396 /// [pageToken] - The continuation token, which is used to page through large
408 * [pageToken] - The continuation token, which is used to page through large 397 /// result sets. To get the next page of results, set this parameter to the
409 * result sets. To get the next page of results, set this parameter to the 398 /// value of "nextPageToken" from the previous response.
410 * value of "nextPageToken" from the previous response. 399 ///
411 * 400 /// Completes with a [PeopleFeed].
412 * Completes with a [PeopleFeed]. 401 ///
413 * 402 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
414 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 403 /// an error.
415 * error. 404 ///
416 * 405 /// If the used [http.Client] completes with an error when making a REST
417 * If the used [http.Client] completes with an error when making a REST call, 406 /// call, this method will complete with the same error.
418 * this method will complete with the same error. 407 async.Future<PeopleFeed> list(core.String userId, core.String collection,
419 */ 408 {core.int maxResults, core.String orderBy, core.String pageToken}) {
420 async.Future<PeopleFeed> list(core.String userId, core.String collection, {cor e.int maxResults, core.String orderBy, core.String pageToken}) {
421 var _url = null; 409 var _url = null;
422 var _queryParams = new core.Map(); 410 var _queryParams = new core.Map();
423 var _uploadMedia = null; 411 var _uploadMedia = null;
424 var _uploadOptions = null; 412 var _uploadOptions = null;
425 var _downloadOptions = commons.DownloadOptions.Metadata; 413 var _downloadOptions = commons.DownloadOptions.Metadata;
426 var _body = null; 414 var _body = null;
427 415
428 if (userId == null) { 416 if (userId == null) {
429 throw new core.ArgumentError("Parameter userId is required."); 417 throw new core.ArgumentError("Parameter userId is required.");
430 } 418 }
431 if (collection == null) { 419 if (collection == null) {
432 throw new core.ArgumentError("Parameter collection is required."); 420 throw new core.ArgumentError("Parameter collection is required.");
433 } 421 }
434 if (maxResults != null) { 422 if (maxResults != null) {
435 _queryParams["maxResults"] = ["${maxResults}"]; 423 _queryParams["maxResults"] = ["${maxResults}"];
436 } 424 }
437 if (orderBy != null) { 425 if (orderBy != null) {
438 _queryParams["orderBy"] = [orderBy]; 426 _queryParams["orderBy"] = [orderBy];
439 } 427 }
440 if (pageToken != null) { 428 if (pageToken != null) {
441 _queryParams["pageToken"] = [pageToken]; 429 _queryParams["pageToken"] = [pageToken];
442 } 430 }
443 431
444 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/people/' + c ommons.Escaper.ecapeVariable('$collection'); 432 _url = 'people/' +
433 commons.Escaper.ecapeVariable('$userId') +
434 '/people/' +
435 commons.Escaper.ecapeVariable('$collection');
445 436
446 var _response = _requester.request(_url, 437 var _response = _requester.request(_url, "GET",
447 "GET", 438 body: _body,
448 body: _body, 439 queryParams: _queryParams,
449 queryParams: _queryParams, 440 uploadOptions: _uploadOptions,
450 uploadOptions: _uploadOptions, 441 uploadMedia: _uploadMedia,
451 uploadMedia: _uploadMedia, 442 downloadOptions: _downloadOptions);
452 downloadOptions: _downloadOptions);
453 return _response.then((data) => new PeopleFeed.fromJson(data)); 443 return _response.then((data) => new PeopleFeed.fromJson(data));
454 } 444 }
455 445
456 /** 446 /// List all of the people in the specified collection for a particular
457 * List all of the people in the specified collection for a particular 447 /// activity.
458 * activity. 448 ///
459 * 449 /// Request parameters:
460 * Request parameters: 450 ///
461 * 451 /// [activityId] - The ID of the activity to get the list of people for.
462 * [activityId] - The ID of the activity to get the list of people for. 452 ///
463 * 453 /// [collection] - The collection of people to list.
464 * [collection] - The collection of people to list. 454 /// Possible string values are:
465 * Possible string values are: 455 /// - "plusoners" : List all people who have +1'd this activity.
466 * - "plusoners" : List all people who have +1'd this activity. 456 /// - "resharers" : List all people who have reshared this activity.
467 * - "resharers" : List all people who have reshared this activity. 457 ///
468 * 458 /// [maxResults] - The maximum number of people to include in the response,
469 * [maxResults] - The maximum number of people to include in the response, 459 /// which is used for paging. For any response, the actual number returned
470 * which is used for paging. For any response, the actual number returned 460 /// might be less than the specified maxResults.
471 * might be less than the specified maxResults. 461 /// Value must be between "1" and "100".
472 * Value must be between "1" and "100". 462 ///
473 * 463 /// [pageToken] - The continuation token, which is used to page through large
474 * [pageToken] - The continuation token, which is used to page through large 464 /// result sets. To get the next page of results, set this parameter to the
475 * result sets. To get the next page of results, set this parameter to the 465 /// value of "nextPageToken" from the previous response.
476 * value of "nextPageToken" from the previous response. 466 ///
477 * 467 /// Completes with a [PeopleFeed].
478 * Completes with a [PeopleFeed]. 468 ///
479 * 469 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
480 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 470 /// an error.
481 * error. 471 ///
482 * 472 /// If the used [http.Client] completes with an error when making a REST
483 * If the used [http.Client] completes with an error when making a REST call, 473 /// call, this method will complete with the same error.
484 * this method will complete with the same error. 474 async.Future<PeopleFeed> listByActivity(
485 */ 475 core.String activityId, core.String collection,
486 async.Future<PeopleFeed> listByActivity(core.String activityId, core.String co llection, {core.int maxResults, core.String pageToken}) { 476 {core.int maxResults, core.String pageToken}) {
487 var _url = null; 477 var _url = null;
488 var _queryParams = new core.Map(); 478 var _queryParams = new core.Map();
489 var _uploadMedia = null; 479 var _uploadMedia = null;
490 var _uploadOptions = null; 480 var _uploadOptions = null;
491 var _downloadOptions = commons.DownloadOptions.Metadata; 481 var _downloadOptions = commons.DownloadOptions.Metadata;
492 var _body = null; 482 var _body = null;
493 483
494 if (activityId == null) { 484 if (activityId == null) {
495 throw new core.ArgumentError("Parameter activityId is required."); 485 throw new core.ArgumentError("Parameter activityId is required.");
496 } 486 }
497 if (collection == null) { 487 if (collection == null) {
498 throw new core.ArgumentError("Parameter collection is required."); 488 throw new core.ArgumentError("Parameter collection is required.");
499 } 489 }
500 if (maxResults != null) { 490 if (maxResults != null) {
501 _queryParams["maxResults"] = ["${maxResults}"]; 491 _queryParams["maxResults"] = ["${maxResults}"];
502 } 492 }
503 if (pageToken != null) { 493 if (pageToken != null) {
504 _queryParams["pageToken"] = [pageToken]; 494 _queryParams["pageToken"] = [pageToken];
505 } 495 }
506 496
507 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/peop le/' + commons.Escaper.ecapeVariable('$collection'); 497 _url = 'activities/' +
498 commons.Escaper.ecapeVariable('$activityId') +
499 '/people/' +
500 commons.Escaper.ecapeVariable('$collection');
508 501
509 var _response = _requester.request(_url, 502 var _response = _requester.request(_url, "GET",
510 "GET", 503 body: _body,
511 body: _body, 504 queryParams: _queryParams,
512 queryParams: _queryParams, 505 uploadOptions: _uploadOptions,
513 uploadOptions: _uploadOptions, 506 uploadMedia: _uploadMedia,
514 uploadMedia: _uploadMedia, 507 downloadOptions: _downloadOptions);
515 downloadOptions: _downloadOptions);
516 return _response.then((data) => new PeopleFeed.fromJson(data)); 508 return _response.then((data) => new PeopleFeed.fromJson(data));
517 } 509 }
518 510
519 /** 511 /// Search all public profiles.
520 * Search all public profiles. 512 ///
521 * 513 /// Request parameters:
522 * Request parameters: 514 ///
523 * 515 /// [query] - Specify a query string for full text search of public text in
524 * [query] - Specify a query string for full text search of public text in all 516 /// all profiles.
525 * profiles. 517 ///
526 * 518 /// [language] - Specify the preferred language to search with. See search
527 * [language] - Specify the preferred language to search with. See search 519 /// language codes for available values.
528 * language codes for available values. 520 ///
529 * 521 /// [maxResults] - The maximum number of people to include in the response,
530 * [maxResults] - The maximum number of people to include in the response, 522 /// which is used for paging. For any response, the actual number returned
531 * which is used for paging. For any response, the actual number returned 523 /// might be less than the specified maxResults.
532 * might be less than the specified maxResults. 524 /// Value must be between "1" and "50".
533 * Value must be between "1" and "50". 525 ///
534 * 526 /// [pageToken] - The continuation token, which is used to page through large
535 * [pageToken] - The continuation token, which is used to page through large 527 /// result sets. To get the next page of results, set this parameter to the
536 * result sets. To get the next page of results, set this parameter to the 528 /// value of "nextPageToken" from the previous response. This token can be of
537 * value of "nextPageToken" from the previous response. This token can be of 529 /// any length.
538 * any length. 530 ///
539 * 531 /// Completes with a [PeopleFeed].
540 * Completes with a [PeopleFeed]. 532 ///
541 * 533 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
542 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 534 /// an error.
543 * error. 535 ///
544 * 536 /// If the used [http.Client] completes with an error when making a REST
545 * If the used [http.Client] completes with an error when making a REST call, 537 /// call, this method will complete with the same error.
546 * this method will complete with the same error. 538 async.Future<PeopleFeed> search(core.String query,
547 */ 539 {core.String language, core.int maxResults, core.String pageToken}) {
548 async.Future<PeopleFeed> search(core.String query, {core.String language, core .int maxResults, core.String pageToken}) {
549 var _url = null; 540 var _url = null;
550 var _queryParams = new core.Map(); 541 var _queryParams = new core.Map();
551 var _uploadMedia = null; 542 var _uploadMedia = null;
552 var _uploadOptions = null; 543 var _uploadOptions = null;
553 var _downloadOptions = commons.DownloadOptions.Metadata; 544 var _downloadOptions = commons.DownloadOptions.Metadata;
554 var _body = null; 545 var _body = null;
555 546
556 if (query == null) { 547 if (query == null) {
557 throw new core.ArgumentError("Parameter query is required."); 548 throw new core.ArgumentError("Parameter query is required.");
558 } 549 }
559 _queryParams["query"] = [query]; 550 _queryParams["query"] = [query];
560 if (language != null) { 551 if (language != null) {
561 _queryParams["language"] = [language]; 552 _queryParams["language"] = [language];
562 } 553 }
563 if (maxResults != null) { 554 if (maxResults != null) {
564 _queryParams["maxResults"] = ["${maxResults}"]; 555 _queryParams["maxResults"] = ["${maxResults}"];
565 } 556 }
566 if (pageToken != null) { 557 if (pageToken != null) {
567 _queryParams["pageToken"] = [pageToken]; 558 _queryParams["pageToken"] = [pageToken];
568 } 559 }
569 560
570 _url = 'people'; 561 _url = 'people';
571 562
572 var _response = _requester.request(_url, 563 var _response = _requester.request(_url, "GET",
573 "GET", 564 body: _body,
574 body: _body, 565 queryParams: _queryParams,
575 queryParams: _queryParams, 566 uploadOptions: _uploadOptions,
576 uploadOptions: _uploadOptions, 567 uploadMedia: _uploadMedia,
577 uploadMedia: _uploadMedia, 568 downloadOptions: _downloadOptions);
578 downloadOptions: _downloadOptions);
579 return _response.then((data) => new PeopleFeed.fromJson(data)); 569 return _response.then((data) => new PeopleFeed.fromJson(data));
580 } 570 }
581
582 } 571 }
583 572
573 class Acl {
574 /// Description of the access granted, suitable for display.
575 core.String description;
584 576
577 /// The list of access entries.
578 core.List<PlusAclentryResource> items;
585 579
586 class Acl { 580 /// Identifies this resource as a collection of access controls. Value:
587 /** Description of the access granted, suitable for display. */ 581 /// "plus#acl".
588 core.String description;
589 /** The list of access entries. */
590 core.List<PlusAclentryResource> items;
591 /**
592 * Identifies this resource as a collection of access controls. Value:
593 * "plus#acl".
594 */
595 core.String kind; 582 core.String kind;
596 583
597 Acl(); 584 Acl();
598 585
599 Acl.fromJson(core.Map _json) { 586 Acl.fromJson(core.Map _json) {
600 if (_json.containsKey("description")) { 587 if (_json.containsKey("description")) {
601 description = _json["description"]; 588 description = _json["description"];
602 } 589 }
603 if (_json.containsKey("items")) { 590 if (_json.containsKey("items")) {
604 items = _json["items"].map((value) => new PlusAclentryResource.fromJson(va lue)).toList(); 591 items = _json["items"]
592 .map((value) => new PlusAclentryResource.fromJson(value))
593 .toList();
605 } 594 }
606 if (_json.containsKey("kind")) { 595 if (_json.containsKey("kind")) {
607 kind = _json["kind"]; 596 kind = _json["kind"];
608 } 597 }
609 } 598 }
610 599
611 core.Map<core.String, core.Object> toJson() { 600 core.Map<core.String, core.Object> toJson() {
612 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 601 final core.Map<core.String, core.Object> _json =
602 new core.Map<core.String, core.Object>();
613 if (description != null) { 603 if (description != null) {
614 _json["description"] = description; 604 _json["description"] = description;
615 } 605 }
616 if (items != null) { 606 if (items != null) {
617 _json["items"] = items.map((value) => (value).toJson()).toList(); 607 _json["items"] = items.map((value) => (value).toJson()).toList();
618 } 608 }
619 if (kind != null) { 609 if (kind != null) {
620 _json["kind"] = kind; 610 _json["kind"] = kind;
621 } 611 }
622 return _json; 612 return _json;
623 } 613 }
624 } 614 }
625 615
626 /** Actor info specific to YouTube clients. */ 616 /// Actor info specific to YouTube clients.
627 class ActivityActorClientSpecificActorInfoYoutubeActorInfo { 617 class ActivityActorClientSpecificActorInfoYoutubeActorInfo {
628 /** ID of the YouTube channel owned by the Actor. */ 618 /// ID of the YouTube channel owned by the Actor.
629 core.String channelId; 619 core.String channelId;
630 620
631 ActivityActorClientSpecificActorInfoYoutubeActorInfo(); 621 ActivityActorClientSpecificActorInfoYoutubeActorInfo();
632 622
633 ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json) { 623 ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson(
624 core.Map _json) {
634 if (_json.containsKey("channelId")) { 625 if (_json.containsKey("channelId")) {
635 channelId = _json["channelId"]; 626 channelId = _json["channelId"];
636 } 627 }
637 } 628 }
638 629
639 core.Map<core.String, core.Object> toJson() { 630 core.Map<core.String, core.Object> toJson() {
640 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 631 final core.Map<core.String, core.Object> _json =
632 new core.Map<core.String, core.Object>();
641 if (channelId != null) { 633 if (channelId != null) {
642 _json["channelId"] = channelId; 634 _json["channelId"] = channelId;
643 } 635 }
644 return _json; 636 return _json;
645 } 637 }
646 } 638 }
647 639
648 /** Actor info specific to particular clients. */ 640 /// Actor info specific to particular clients.
649 class ActivityActorClientSpecificActorInfo { 641 class ActivityActorClientSpecificActorInfo {
650 /** Actor info specific to YouTube clients. */ 642 /// Actor info specific to YouTube clients.
651 ActivityActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; 643 ActivityActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo;
652 644
653 ActivityActorClientSpecificActorInfo(); 645 ActivityActorClientSpecificActorInfo();
654 646
655 ActivityActorClientSpecificActorInfo.fromJson(core.Map _json) { 647 ActivityActorClientSpecificActorInfo.fromJson(core.Map _json) {
656 if (_json.containsKey("youtubeActorInfo")) { 648 if (_json.containsKey("youtubeActorInfo")) {
657 youtubeActorInfo = new ActivityActorClientSpecificActorInfoYoutubeActorInf o.fromJson(_json["youtubeActorInfo"]); 649 youtubeActorInfo =
650 new ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson(
651 _json["youtubeActorInfo"]);
658 } 652 }
659 } 653 }
660 654
661 core.Map<core.String, core.Object> toJson() { 655 core.Map<core.String, core.Object> toJson() {
662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 656 final core.Map<core.String, core.Object> _json =
657 new core.Map<core.String, core.Object>();
663 if (youtubeActorInfo != null) { 658 if (youtubeActorInfo != null) {
664 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); 659 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson();
665 } 660 }
666 return _json; 661 return _json;
667 } 662 }
668 } 663 }
669 664
670 /** The image representation of the actor. */ 665 /// The image representation of the actor.
671 class ActivityActorImage { 666 class ActivityActorImage {
672 /** 667 /// The URL of the actor's profile photo. To resize the image and crop it to
673 * The URL of the actor's profile photo. To resize the image and crop it to a 668 /// a square, append the query string ?sz=x, where x is the dimension in
674 * square, append the query string ?sz=x, where x is the dimension in pixels 669 /// pixels of each side.
675 * of each side.
676 */
677 core.String url; 670 core.String url;
678 671
679 ActivityActorImage(); 672 ActivityActorImage();
680 673
681 ActivityActorImage.fromJson(core.Map _json) { 674 ActivityActorImage.fromJson(core.Map _json) {
682 if (_json.containsKey("url")) { 675 if (_json.containsKey("url")) {
683 url = _json["url"]; 676 url = _json["url"];
684 } 677 }
685 } 678 }
686 679
687 core.Map<core.String, core.Object> toJson() { 680 core.Map<core.String, core.Object> toJson() {
688 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 681 final core.Map<core.String, core.Object> _json =
682 new core.Map<core.String, core.Object>();
689 if (url != null) { 683 if (url != null) {
690 _json["url"] = url; 684 _json["url"] = url;
691 } 685 }
692 return _json; 686 return _json;
693 } 687 }
694 } 688 }
695 689
696 /** An object representation of the individual components of name. */ 690 /// An object representation of the individual components of name.
697 class ActivityActorName { 691 class ActivityActorName {
698 /** The family name ("last name") of the actor. */ 692 /// The family name ("last name") of the actor.
699 core.String familyName; 693 core.String familyName;
700 /** The given name ("first name") of the actor. */ 694
695 /// The given name ("first name") of the actor.
701 core.String givenName; 696 core.String givenName;
702 697
703 ActivityActorName(); 698 ActivityActorName();
704 699
705 ActivityActorName.fromJson(core.Map _json) { 700 ActivityActorName.fromJson(core.Map _json) {
706 if (_json.containsKey("familyName")) { 701 if (_json.containsKey("familyName")) {
707 familyName = _json["familyName"]; 702 familyName = _json["familyName"];
708 } 703 }
709 if (_json.containsKey("givenName")) { 704 if (_json.containsKey("givenName")) {
710 givenName = _json["givenName"]; 705 givenName = _json["givenName"];
711 } 706 }
712 } 707 }
713 708
714 core.Map<core.String, core.Object> toJson() { 709 core.Map<core.String, core.Object> toJson() {
715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 710 final core.Map<core.String, core.Object> _json =
711 new core.Map<core.String, core.Object>();
716 if (familyName != null) { 712 if (familyName != null) {
717 _json["familyName"] = familyName; 713 _json["familyName"] = familyName;
718 } 714 }
719 if (givenName != null) { 715 if (givenName != null) {
720 _json["givenName"] = givenName; 716 _json["givenName"] = givenName;
721 } 717 }
722 return _json; 718 return _json;
723 } 719 }
724 } 720 }
725 721
726 /** Verification status of actor. */ 722 /// Verification status of actor.
727 class ActivityActorVerification { 723 class ActivityActorVerification {
728 /** Verification for one-time or manual processes. */ 724 /// Verification for one-time or manual processes.
729 core.String adHocVerified; 725 core.String adHocVerified;
730 726
731 ActivityActorVerification(); 727 ActivityActorVerification();
732 728
733 ActivityActorVerification.fromJson(core.Map _json) { 729 ActivityActorVerification.fromJson(core.Map _json) {
734 if (_json.containsKey("adHocVerified")) { 730 if (_json.containsKey("adHocVerified")) {
735 adHocVerified = _json["adHocVerified"]; 731 adHocVerified = _json["adHocVerified"];
736 } 732 }
737 } 733 }
738 734
739 core.Map<core.String, core.Object> toJson() { 735 core.Map<core.String, core.Object> toJson() {
740 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 736 final core.Map<core.String, core.Object> _json =
737 new core.Map<core.String, core.Object>();
741 if (adHocVerified != null) { 738 if (adHocVerified != null) {
742 _json["adHocVerified"] = adHocVerified; 739 _json["adHocVerified"] = adHocVerified;
743 } 740 }
744 return _json; 741 return _json;
745 } 742 }
746 } 743 }
747 744
748 /** The person who performed this activity. */ 745 /// The person who performed this activity.
749 class ActivityActor { 746 class ActivityActor {
750 /** Actor info specific to particular clients. */ 747 /// Actor info specific to particular clients.
751 ActivityActorClientSpecificActorInfo clientSpecificActorInfo; 748 ActivityActorClientSpecificActorInfo clientSpecificActorInfo;
752 /** The name of the actor, suitable for display. */ 749
750 /// The name of the actor, suitable for display.
753 core.String displayName; 751 core.String displayName;
754 /** The ID of the actor's Person resource. */ 752
753 /// The ID of the actor's Person resource.
755 core.String id; 754 core.String id;
756 /** The image representation of the actor. */ 755
756 /// The image representation of the actor.
757 ActivityActorImage image; 757 ActivityActorImage image;
758 /** An object representation of the individual components of name. */ 758
759 /// An object representation of the individual components of name.
759 ActivityActorName name; 760 ActivityActorName name;
760 /** The link to the actor's Google profile. */ 761
762 /// The link to the actor's Google profile.
761 core.String url; 763 core.String url;
762 /** Verification status of actor. */ 764
765 /// Verification status of actor.
763 ActivityActorVerification verification; 766 ActivityActorVerification verification;
764 767
765 ActivityActor(); 768 ActivityActor();
766 769
767 ActivityActor.fromJson(core.Map _json) { 770 ActivityActor.fromJson(core.Map _json) {
768 if (_json.containsKey("clientSpecificActorInfo")) { 771 if (_json.containsKey("clientSpecificActorInfo")) {
769 clientSpecificActorInfo = new ActivityActorClientSpecificActorInfo.fromJso n(_json["clientSpecificActorInfo"]); 772 clientSpecificActorInfo =
773 new ActivityActorClientSpecificActorInfo.fromJson(
774 _json["clientSpecificActorInfo"]);
770 } 775 }
771 if (_json.containsKey("displayName")) { 776 if (_json.containsKey("displayName")) {
772 displayName = _json["displayName"]; 777 displayName = _json["displayName"];
773 } 778 }
774 if (_json.containsKey("id")) { 779 if (_json.containsKey("id")) {
775 id = _json["id"]; 780 id = _json["id"];
776 } 781 }
777 if (_json.containsKey("image")) { 782 if (_json.containsKey("image")) {
778 image = new ActivityActorImage.fromJson(_json["image"]); 783 image = new ActivityActorImage.fromJson(_json["image"]);
779 } 784 }
780 if (_json.containsKey("name")) { 785 if (_json.containsKey("name")) {
781 name = new ActivityActorName.fromJson(_json["name"]); 786 name = new ActivityActorName.fromJson(_json["name"]);
782 } 787 }
783 if (_json.containsKey("url")) { 788 if (_json.containsKey("url")) {
784 url = _json["url"]; 789 url = _json["url"];
785 } 790 }
786 if (_json.containsKey("verification")) { 791 if (_json.containsKey("verification")) {
787 verification = new ActivityActorVerification.fromJson(_json["verification" ]); 792 verification =
793 new ActivityActorVerification.fromJson(_json["verification"]);
788 } 794 }
789 } 795 }
790 796
791 core.Map<core.String, core.Object> toJson() { 797 core.Map<core.String, core.Object> toJson() {
792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 798 final core.Map<core.String, core.Object> _json =
799 new core.Map<core.String, core.Object>();
793 if (clientSpecificActorInfo != null) { 800 if (clientSpecificActorInfo != null) {
794 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); 801 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson();
795 } 802 }
796 if (displayName != null) { 803 if (displayName != null) {
797 _json["displayName"] = displayName; 804 _json["displayName"] = displayName;
798 } 805 }
799 if (id != null) { 806 if (id != null) {
800 _json["id"] = id; 807 _json["id"] = id;
801 } 808 }
802 if (image != null) { 809 if (image != null) {
803 _json["image"] = (image).toJson(); 810 _json["image"] = (image).toJson();
804 } 811 }
805 if (name != null) { 812 if (name != null) {
806 _json["name"] = (name).toJson(); 813 _json["name"] = (name).toJson();
807 } 814 }
808 if (url != null) { 815 if (url != null) {
809 _json["url"] = url; 816 _json["url"] = url;
810 } 817 }
811 if (verification != null) { 818 if (verification != null) {
812 _json["verification"] = (verification).toJson(); 819 _json["verification"] = (verification).toJson();
813 } 820 }
814 return _json; 821 return _json;
815 } 822 }
816 } 823 }
817 824
818 /** Actor info specific to YouTube clients. */ 825 /// Actor info specific to YouTube clients.
819 class ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo { 826 class ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo {
820 /** ID of the YouTube channel owned by the Actor. */ 827 /// ID of the YouTube channel owned by the Actor.
821 core.String channelId; 828 core.String channelId;
822 829
823 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(); 830 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo();
824 831
825 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _ json) { 832 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.fromJson(
833 core.Map _json) {
826 if (_json.containsKey("channelId")) { 834 if (_json.containsKey("channelId")) {
827 channelId = _json["channelId"]; 835 channelId = _json["channelId"];
828 } 836 }
829 } 837 }
830 838
831 core.Map<core.String, core.Object> toJson() { 839 core.Map<core.String, core.Object> toJson() {
832 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 840 final core.Map<core.String, core.Object> _json =
841 new core.Map<core.String, core.Object>();
833 if (channelId != null) { 842 if (channelId != null) {
834 _json["channelId"] = channelId; 843 _json["channelId"] = channelId;
835 } 844 }
836 return _json; 845 return _json;
837 } 846 }
838 } 847 }
839 848
840 /** Actor info specific to particular clients. */ 849 /// Actor info specific to particular clients.
841 class ActivityObjectActorClientSpecificActorInfo { 850 class ActivityObjectActorClientSpecificActorInfo {
842 /** Actor info specific to YouTube clients. */ 851 /// Actor info specific to YouTube clients.
843 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; 852 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo;
844 853
845 ActivityObjectActorClientSpecificActorInfo(); 854 ActivityObjectActorClientSpecificActorInfo();
846 855
847 ActivityObjectActorClientSpecificActorInfo.fromJson(core.Map _json) { 856 ActivityObjectActorClientSpecificActorInfo.fromJson(core.Map _json) {
848 if (_json.containsKey("youtubeActorInfo")) { 857 if (_json.containsKey("youtubeActorInfo")) {
849 youtubeActorInfo = new ActivityObjectActorClientSpecificActorInfoYoutubeAc torInfo.fromJson(_json["youtubeActorInfo"]); 858 youtubeActorInfo =
859 new ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo
860 .fromJson(_json["youtubeActorInfo"]);
850 } 861 }
851 } 862 }
852 863
853 core.Map<core.String, core.Object> toJson() { 864 core.Map<core.String, core.Object> toJson() {
854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 865 final core.Map<core.String, core.Object> _json =
866 new core.Map<core.String, core.Object>();
855 if (youtubeActorInfo != null) { 867 if (youtubeActorInfo != null) {
856 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); 868 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson();
857 } 869 }
858 return _json; 870 return _json;
859 } 871 }
860 } 872 }
861 873
862 /** The image representation of the original actor. */ 874 /// The image representation of the original actor.
863 class ActivityObjectActorImage { 875 class ActivityObjectActorImage {
864 /** A URL that points to a thumbnail photo of the original actor. */ 876 /// A URL that points to a thumbnail photo of the original actor.
865 core.String url; 877 core.String url;
866 878
867 ActivityObjectActorImage(); 879 ActivityObjectActorImage();
868 880
869 ActivityObjectActorImage.fromJson(core.Map _json) { 881 ActivityObjectActorImage.fromJson(core.Map _json) {
870 if (_json.containsKey("url")) { 882 if (_json.containsKey("url")) {
871 url = _json["url"]; 883 url = _json["url"];
872 } 884 }
873 } 885 }
874 886
875 core.Map<core.String, core.Object> toJson() { 887 core.Map<core.String, core.Object> toJson() {
876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 888 final core.Map<core.String, core.Object> _json =
889 new core.Map<core.String, core.Object>();
877 if (url != null) { 890 if (url != null) {
878 _json["url"] = url; 891 _json["url"] = url;
879 } 892 }
880 return _json; 893 return _json;
881 } 894 }
882 } 895 }
883 896
884 /** Verification status of actor. */ 897 /// Verification status of actor.
885 class ActivityObjectActorVerification { 898 class ActivityObjectActorVerification {
886 /** Verification for one-time or manual processes. */ 899 /// Verification for one-time or manual processes.
887 core.String adHocVerified; 900 core.String adHocVerified;
888 901
889 ActivityObjectActorVerification(); 902 ActivityObjectActorVerification();
890 903
891 ActivityObjectActorVerification.fromJson(core.Map _json) { 904 ActivityObjectActorVerification.fromJson(core.Map _json) {
892 if (_json.containsKey("adHocVerified")) { 905 if (_json.containsKey("adHocVerified")) {
893 adHocVerified = _json["adHocVerified"]; 906 adHocVerified = _json["adHocVerified"];
894 } 907 }
895 } 908 }
896 909
897 core.Map<core.String, core.Object> toJson() { 910 core.Map<core.String, core.Object> toJson() {
898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 911 final core.Map<core.String, core.Object> _json =
912 new core.Map<core.String, core.Object>();
899 if (adHocVerified != null) { 913 if (adHocVerified != null) {
900 _json["adHocVerified"] = adHocVerified; 914 _json["adHocVerified"] = adHocVerified;
901 } 915 }
902 return _json; 916 return _json;
903 } 917 }
904 } 918 }
905 919
906 /** 920 /// If this activity's object is itself another activity, such as when a person
907 * If this activity's object is itself another activity, such as when a person 921 /// reshares an activity, this property specifies the original activity's
908 * reshares an activity, this property specifies the original activity's actor. 922 /// actor.
909 */
910 class ActivityObjectActor { 923 class ActivityObjectActor {
911 /** Actor info specific to particular clients. */ 924 /// Actor info specific to particular clients.
912 ActivityObjectActorClientSpecificActorInfo clientSpecificActorInfo; 925 ActivityObjectActorClientSpecificActorInfo clientSpecificActorInfo;
913 /** The original actor's name, which is suitable for display. */ 926
927 /// The original actor's name, which is suitable for display.
914 core.String displayName; 928 core.String displayName;
915 /** ID of the original actor. */ 929
930 /// ID of the original actor.
916 core.String id; 931 core.String id;
917 /** The image representation of the original actor. */ 932
933 /// The image representation of the original actor.
918 ActivityObjectActorImage image; 934 ActivityObjectActorImage image;
919 /** A link to the original actor's Google profile. */ 935
936 /// A link to the original actor's Google profile.
920 core.String url; 937 core.String url;
921 /** Verification status of actor. */ 938
939 /// Verification status of actor.
922 ActivityObjectActorVerification verification; 940 ActivityObjectActorVerification verification;
923 941
924 ActivityObjectActor(); 942 ActivityObjectActor();
925 943
926 ActivityObjectActor.fromJson(core.Map _json) { 944 ActivityObjectActor.fromJson(core.Map _json) {
927 if (_json.containsKey("clientSpecificActorInfo")) { 945 if (_json.containsKey("clientSpecificActorInfo")) {
928 clientSpecificActorInfo = new ActivityObjectActorClientSpecificActorInfo.f romJson(_json["clientSpecificActorInfo"]); 946 clientSpecificActorInfo =
947 new ActivityObjectActorClientSpecificActorInfo.fromJson(
948 _json["clientSpecificActorInfo"]);
929 } 949 }
930 if (_json.containsKey("displayName")) { 950 if (_json.containsKey("displayName")) {
931 displayName = _json["displayName"]; 951 displayName = _json["displayName"];
932 } 952 }
933 if (_json.containsKey("id")) { 953 if (_json.containsKey("id")) {
934 id = _json["id"]; 954 id = _json["id"];
935 } 955 }
936 if (_json.containsKey("image")) { 956 if (_json.containsKey("image")) {
937 image = new ActivityObjectActorImage.fromJson(_json["image"]); 957 image = new ActivityObjectActorImage.fromJson(_json["image"]);
938 } 958 }
939 if (_json.containsKey("url")) { 959 if (_json.containsKey("url")) {
940 url = _json["url"]; 960 url = _json["url"];
941 } 961 }
942 if (_json.containsKey("verification")) { 962 if (_json.containsKey("verification")) {
943 verification = new ActivityObjectActorVerification.fromJson(_json["verific ation"]); 963 verification =
964 new ActivityObjectActorVerification.fromJson(_json["verification"]);
944 } 965 }
945 } 966 }
946 967
947 core.Map<core.String, core.Object> toJson() { 968 core.Map<core.String, core.Object> toJson() {
948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 969 final core.Map<core.String, core.Object> _json =
970 new core.Map<core.String, core.Object>();
949 if (clientSpecificActorInfo != null) { 971 if (clientSpecificActorInfo != null) {
950 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); 972 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson();
951 } 973 }
952 if (displayName != null) { 974 if (displayName != null) {
953 _json["displayName"] = displayName; 975 _json["displayName"] = displayName;
954 } 976 }
955 if (id != null) { 977 if (id != null) {
956 _json["id"] = id; 978 _json["id"] = id;
957 } 979 }
958 if (image != null) { 980 if (image != null) {
959 _json["image"] = (image).toJson(); 981 _json["image"] = (image).toJson();
960 } 982 }
961 if (url != null) { 983 if (url != null) {
962 _json["url"] = url; 984 _json["url"] = url;
963 } 985 }
964 if (verification != null) { 986 if (verification != null) {
965 _json["verification"] = (verification).toJson(); 987 _json["verification"] = (verification).toJson();
966 } 988 }
967 return _json; 989 return _json;
968 } 990 }
969 } 991 }
970 992
971 /** If the attachment is a video, the embeddable link. */ 993 /// If the attachment is a video, the embeddable link.
972 class ActivityObjectAttachmentsEmbed { 994 class ActivityObjectAttachmentsEmbed {
973 /** Media type of the link. */ 995 /// Media type of the link.
974 core.String type; 996 core.String type;
975 /** URL of the link. */ 997
998 /// URL of the link.
976 core.String url; 999 core.String url;
977 1000
978 ActivityObjectAttachmentsEmbed(); 1001 ActivityObjectAttachmentsEmbed();
979 1002
980 ActivityObjectAttachmentsEmbed.fromJson(core.Map _json) { 1003 ActivityObjectAttachmentsEmbed.fromJson(core.Map _json) {
981 if (_json.containsKey("type")) { 1004 if (_json.containsKey("type")) {
982 type = _json["type"]; 1005 type = _json["type"];
983 } 1006 }
984 if (_json.containsKey("url")) { 1007 if (_json.containsKey("url")) {
985 url = _json["url"]; 1008 url = _json["url"];
986 } 1009 }
987 } 1010 }
988 1011
989 core.Map<core.String, core.Object> toJson() { 1012 core.Map<core.String, core.Object> toJson() {
990 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1013 final core.Map<core.String, core.Object> _json =
1014 new core.Map<core.String, core.Object>();
991 if (type != null) { 1015 if (type != null) {
992 _json["type"] = type; 1016 _json["type"] = type;
993 } 1017 }
994 if (url != null) { 1018 if (url != null) {
995 _json["url"] = url; 1019 _json["url"] = url;
996 } 1020 }
997 return _json; 1021 return _json;
998 } 1022 }
999 } 1023 }
1000 1024
1001 /** The full image URL for photo attachments. */ 1025 /// The full image URL for photo attachments.
1002 class ActivityObjectAttachmentsFullImage { 1026 class ActivityObjectAttachmentsFullImage {
1003 /** The height, in pixels, of the linked resource. */ 1027 /// The height, in pixels, of the linked resource.
1004 core.int height; 1028 core.int height;
1005 /** Media type of the link. */ 1029
1030 /// Media type of the link.
1006 core.String type; 1031 core.String type;
1007 /** URL of the image. */ 1032
1033 /// URL of the image.
1008 core.String url; 1034 core.String url;
1009 /** The width, in pixels, of the linked resource. */ 1035
1036 /// The width, in pixels, of the linked resource.
1010 core.int width; 1037 core.int width;
1011 1038
1012 ActivityObjectAttachmentsFullImage(); 1039 ActivityObjectAttachmentsFullImage();
1013 1040
1014 ActivityObjectAttachmentsFullImage.fromJson(core.Map _json) { 1041 ActivityObjectAttachmentsFullImage.fromJson(core.Map _json) {
1015 if (_json.containsKey("height")) { 1042 if (_json.containsKey("height")) {
1016 height = _json["height"]; 1043 height = _json["height"];
1017 } 1044 }
1018 if (_json.containsKey("type")) { 1045 if (_json.containsKey("type")) {
1019 type = _json["type"]; 1046 type = _json["type"];
1020 } 1047 }
1021 if (_json.containsKey("url")) { 1048 if (_json.containsKey("url")) {
1022 url = _json["url"]; 1049 url = _json["url"];
1023 } 1050 }
1024 if (_json.containsKey("width")) { 1051 if (_json.containsKey("width")) {
1025 width = _json["width"]; 1052 width = _json["width"];
1026 } 1053 }
1027 } 1054 }
1028 1055
1029 core.Map<core.String, core.Object> toJson() { 1056 core.Map<core.String, core.Object> toJson() {
1030 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1057 final core.Map<core.String, core.Object> _json =
1058 new core.Map<core.String, core.Object>();
1031 if (height != null) { 1059 if (height != null) {
1032 _json["height"] = height; 1060 _json["height"] = height;
1033 } 1061 }
1034 if (type != null) { 1062 if (type != null) {
1035 _json["type"] = type; 1063 _json["type"] = type;
1036 } 1064 }
1037 if (url != null) { 1065 if (url != null) {
1038 _json["url"] = url; 1066 _json["url"] = url;
1039 } 1067 }
1040 if (width != null) { 1068 if (width != null) {
1041 _json["width"] = width; 1069 _json["width"] = width;
1042 } 1070 }
1043 return _json; 1071 return _json;
1044 } 1072 }
1045 } 1073 }
1046 1074
1047 /** The preview image for photos or videos. */ 1075 /// The preview image for photos or videos.
1048 class ActivityObjectAttachmentsImage { 1076 class ActivityObjectAttachmentsImage {
1049 /** The height, in pixels, of the linked resource. */ 1077 /// The height, in pixels, of the linked resource.
1050 core.int height; 1078 core.int height;
1051 /** Media type of the link. */ 1079
1080 /// Media type of the link.
1052 core.String type; 1081 core.String type;
1053 /** Image URL. */ 1082
1083 /// Image URL.
1054 core.String url; 1084 core.String url;
1055 /** The width, in pixels, of the linked resource. */ 1085
1086 /// The width, in pixels, of the linked resource.
1056 core.int width; 1087 core.int width;
1057 1088
1058 ActivityObjectAttachmentsImage(); 1089 ActivityObjectAttachmentsImage();
1059 1090
1060 ActivityObjectAttachmentsImage.fromJson(core.Map _json) { 1091 ActivityObjectAttachmentsImage.fromJson(core.Map _json) {
1061 if (_json.containsKey("height")) { 1092 if (_json.containsKey("height")) {
1062 height = _json["height"]; 1093 height = _json["height"];
1063 } 1094 }
1064 if (_json.containsKey("type")) { 1095 if (_json.containsKey("type")) {
1065 type = _json["type"]; 1096 type = _json["type"];
1066 } 1097 }
1067 if (_json.containsKey("url")) { 1098 if (_json.containsKey("url")) {
1068 url = _json["url"]; 1099 url = _json["url"];
1069 } 1100 }
1070 if (_json.containsKey("width")) { 1101 if (_json.containsKey("width")) {
1071 width = _json["width"]; 1102 width = _json["width"];
1072 } 1103 }
1073 } 1104 }
1074 1105
1075 core.Map<core.String, core.Object> toJson() { 1106 core.Map<core.String, core.Object> toJson() {
1076 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1107 final core.Map<core.String, core.Object> _json =
1108 new core.Map<core.String, core.Object>();
1077 if (height != null) { 1109 if (height != null) {
1078 _json["height"] = height; 1110 _json["height"] = height;
1079 } 1111 }
1080 if (type != null) { 1112 if (type != null) {
1081 _json["type"] = type; 1113 _json["type"] = type;
1082 } 1114 }
1083 if (url != null) { 1115 if (url != null) {
1084 _json["url"] = url; 1116 _json["url"] = url;
1085 } 1117 }
1086 if (width != null) { 1118 if (width != null) {
1087 _json["width"] = width; 1119 _json["width"] = width;
1088 } 1120 }
1089 return _json; 1121 return _json;
1090 } 1122 }
1091 } 1123 }
1092 1124
1093 /** Image resource. */ 1125 /// Image resource.
1094 class ActivityObjectAttachmentsThumbnailsImage { 1126 class ActivityObjectAttachmentsThumbnailsImage {
1095 /** The height, in pixels, of the linked resource. */ 1127 /// The height, in pixels, of the linked resource.
1096 core.int height; 1128 core.int height;
1097 /** Media type of the link. */ 1129
1130 /// Media type of the link.
1098 core.String type; 1131 core.String type;
1099 /** Image url. */ 1132
1133 /// Image url.
1100 core.String url; 1134 core.String url;
1101 /** The width, in pixels, of the linked resource. */ 1135
1136 /// The width, in pixels, of the linked resource.
1102 core.int width; 1137 core.int width;
1103 1138
1104 ActivityObjectAttachmentsThumbnailsImage(); 1139 ActivityObjectAttachmentsThumbnailsImage();
1105 1140
1106 ActivityObjectAttachmentsThumbnailsImage.fromJson(core.Map _json) { 1141 ActivityObjectAttachmentsThumbnailsImage.fromJson(core.Map _json) {
1107 if (_json.containsKey("height")) { 1142 if (_json.containsKey("height")) {
1108 height = _json["height"]; 1143 height = _json["height"];
1109 } 1144 }
1110 if (_json.containsKey("type")) { 1145 if (_json.containsKey("type")) {
1111 type = _json["type"]; 1146 type = _json["type"];
1112 } 1147 }
1113 if (_json.containsKey("url")) { 1148 if (_json.containsKey("url")) {
1114 url = _json["url"]; 1149 url = _json["url"];
1115 } 1150 }
1116 if (_json.containsKey("width")) { 1151 if (_json.containsKey("width")) {
1117 width = _json["width"]; 1152 width = _json["width"];
1118 } 1153 }
1119 } 1154 }
1120 1155
1121 core.Map<core.String, core.Object> toJson() { 1156 core.Map<core.String, core.Object> toJson() {
1122 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1157 final core.Map<core.String, core.Object> _json =
1158 new core.Map<core.String, core.Object>();
1123 if (height != null) { 1159 if (height != null) {
1124 _json["height"] = height; 1160 _json["height"] = height;
1125 } 1161 }
1126 if (type != null) { 1162 if (type != null) {
1127 _json["type"] = type; 1163 _json["type"] = type;
1128 } 1164 }
1129 if (url != null) { 1165 if (url != null) {
1130 _json["url"] = url; 1166 _json["url"] = url;
1131 } 1167 }
1132 if (width != null) { 1168 if (width != null) {
1133 _json["width"] = width; 1169 _json["width"] = width;
1134 } 1170 }
1135 return _json; 1171 return _json;
1136 } 1172 }
1137 } 1173 }
1138 1174
1139 class ActivityObjectAttachmentsThumbnails { 1175 class ActivityObjectAttachmentsThumbnails {
1140 /** Potential name of the thumbnail. */ 1176 /// Potential name of the thumbnail.
1141 core.String description; 1177 core.String description;
1142 /** Image resource. */ 1178
1179 /// Image resource.
1143 ActivityObjectAttachmentsThumbnailsImage image; 1180 ActivityObjectAttachmentsThumbnailsImage image;
1144 /** URL of the webpage containing the image. */ 1181
1182 /// URL of the webpage containing the image.
1145 core.String url; 1183 core.String url;
1146 1184
1147 ActivityObjectAttachmentsThumbnails(); 1185 ActivityObjectAttachmentsThumbnails();
1148 1186
1149 ActivityObjectAttachmentsThumbnails.fromJson(core.Map _json) { 1187 ActivityObjectAttachmentsThumbnails.fromJson(core.Map _json) {
1150 if (_json.containsKey("description")) { 1188 if (_json.containsKey("description")) {
1151 description = _json["description"]; 1189 description = _json["description"];
1152 } 1190 }
1153 if (_json.containsKey("image")) { 1191 if (_json.containsKey("image")) {
1154 image = new ActivityObjectAttachmentsThumbnailsImage.fromJson(_json["image "]); 1192 image =
1193 new ActivityObjectAttachmentsThumbnailsImage.fromJson(_json["image"]);
1155 } 1194 }
1156 if (_json.containsKey("url")) { 1195 if (_json.containsKey("url")) {
1157 url = _json["url"]; 1196 url = _json["url"];
1158 } 1197 }
1159 } 1198 }
1160 1199
1161 core.Map<core.String, core.Object> toJson() { 1200 core.Map<core.String, core.Object> toJson() {
1162 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1201 final core.Map<core.String, core.Object> _json =
1202 new core.Map<core.String, core.Object>();
1163 if (description != null) { 1203 if (description != null) {
1164 _json["description"] = description; 1204 _json["description"] = description;
1165 } 1205 }
1166 if (image != null) { 1206 if (image != null) {
1167 _json["image"] = (image).toJson(); 1207 _json["image"] = (image).toJson();
1168 } 1208 }
1169 if (url != null) { 1209 if (url != null) {
1170 _json["url"] = url; 1210 _json["url"] = url;
1171 } 1211 }
1172 return _json; 1212 return _json;
1173 } 1213 }
1174 } 1214 }
1175 1215
1176 class ActivityObjectAttachments { 1216 class ActivityObjectAttachments {
1177 /** 1217 /// If the attachment is an article, this property contains a snippet of text
1178 * If the attachment is an article, this property contains a snippet of text 1218 /// from the article. It can also include descriptions for other types.
1179 * from the article. It can also include descriptions for other types.
1180 */
1181 core.String content; 1219 core.String content;
1182 /** 1220
1183 * The title of the attachment, such as a photo caption or an article title. 1221 /// The title of the attachment, such as a photo caption or an article title.
1184 */
1185 core.String displayName; 1222 core.String displayName;
1186 /** If the attachment is a video, the embeddable link. */ 1223
1224 /// If the attachment is a video, the embeddable link.
1187 ActivityObjectAttachmentsEmbed embed; 1225 ActivityObjectAttachmentsEmbed embed;
1188 /** The full image URL for photo attachments. */ 1226
1227 /// The full image URL for photo attachments.
1189 ActivityObjectAttachmentsFullImage fullImage; 1228 ActivityObjectAttachmentsFullImage fullImage;
1190 /** The ID of the attachment. */ 1229
1230 /// The ID of the attachment.
1191 core.String id; 1231 core.String id;
1192 /** The preview image for photos or videos. */ 1232
1233 /// The preview image for photos or videos.
1193 ActivityObjectAttachmentsImage image; 1234 ActivityObjectAttachmentsImage image;
1194 /** 1235
1195 * The type of media object. Possible values include, but are not limited to, 1236 /// The type of media object. Possible values include, but are not limited
1196 * the following values: 1237 /// to, the following values:
1197 * - "photo" - A photo. 1238 /// - "photo" - A photo.
1198 * - "album" - A photo album. 1239 /// - "album" - A photo album.
1199 * - "video" - A video. 1240 /// - "video" - A video.
1200 * - "article" - An article, specified by a link. 1241 /// - "article" - An article, specified by a link.
1201 */
1202 core.String objectType; 1242 core.String objectType;
1203 /** 1243
1204 * If the attachment is an album, this property is a list of potential 1244 /// If the attachment is an album, this property is a list of potential
1205 * additional thumbnails from the album. 1245 /// additional thumbnails from the album.
1206 */
1207 core.List<ActivityObjectAttachmentsThumbnails> thumbnails; 1246 core.List<ActivityObjectAttachmentsThumbnails> thumbnails;
1208 /** The link to the attachment, which should be of type text/html. */ 1247
1248 /// The link to the attachment, which should be of type text/html.
1209 core.String url; 1249 core.String url;
1210 1250
1211 ActivityObjectAttachments(); 1251 ActivityObjectAttachments();
1212 1252
1213 ActivityObjectAttachments.fromJson(core.Map _json) { 1253 ActivityObjectAttachments.fromJson(core.Map _json) {
1214 if (_json.containsKey("content")) { 1254 if (_json.containsKey("content")) {
1215 content = _json["content"]; 1255 content = _json["content"];
1216 } 1256 }
1217 if (_json.containsKey("displayName")) { 1257 if (_json.containsKey("displayName")) {
1218 displayName = _json["displayName"]; 1258 displayName = _json["displayName"];
1219 } 1259 }
1220 if (_json.containsKey("embed")) { 1260 if (_json.containsKey("embed")) {
1221 embed = new ActivityObjectAttachmentsEmbed.fromJson(_json["embed"]); 1261 embed = new ActivityObjectAttachmentsEmbed.fromJson(_json["embed"]);
1222 } 1262 }
1223 if (_json.containsKey("fullImage")) { 1263 if (_json.containsKey("fullImage")) {
1224 fullImage = new ActivityObjectAttachmentsFullImage.fromJson(_json["fullIma ge"]); 1264 fullImage =
1265 new ActivityObjectAttachmentsFullImage.fromJson(_json["fullImage"]);
1225 } 1266 }
1226 if (_json.containsKey("id")) { 1267 if (_json.containsKey("id")) {
1227 id = _json["id"]; 1268 id = _json["id"];
1228 } 1269 }
1229 if (_json.containsKey("image")) { 1270 if (_json.containsKey("image")) {
1230 image = new ActivityObjectAttachmentsImage.fromJson(_json["image"]); 1271 image = new ActivityObjectAttachmentsImage.fromJson(_json["image"]);
1231 } 1272 }
1232 if (_json.containsKey("objectType")) { 1273 if (_json.containsKey("objectType")) {
1233 objectType = _json["objectType"]; 1274 objectType = _json["objectType"];
1234 } 1275 }
1235 if (_json.containsKey("thumbnails")) { 1276 if (_json.containsKey("thumbnails")) {
1236 thumbnails = _json["thumbnails"].map((value) => new ActivityObjectAttachme ntsThumbnails.fromJson(value)).toList(); 1277 thumbnails = _json["thumbnails"]
1278 .map((value) =>
1279 new ActivityObjectAttachmentsThumbnails.fromJson(value))
1280 .toList();
1237 } 1281 }
1238 if (_json.containsKey("url")) { 1282 if (_json.containsKey("url")) {
1239 url = _json["url"]; 1283 url = _json["url"];
1240 } 1284 }
1241 } 1285 }
1242 1286
1243 core.Map<core.String, core.Object> toJson() { 1287 core.Map<core.String, core.Object> toJson() {
1244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1288 final core.Map<core.String, core.Object> _json =
1289 new core.Map<core.String, core.Object>();
1245 if (content != null) { 1290 if (content != null) {
1246 _json["content"] = content; 1291 _json["content"] = content;
1247 } 1292 }
1248 if (displayName != null) { 1293 if (displayName != null) {
1249 _json["displayName"] = displayName; 1294 _json["displayName"] = displayName;
1250 } 1295 }
1251 if (embed != null) { 1296 if (embed != null) {
1252 _json["embed"] = (embed).toJson(); 1297 _json["embed"] = (embed).toJson();
1253 } 1298 }
1254 if (fullImage != null) { 1299 if (fullImage != null) {
1255 _json["fullImage"] = (fullImage).toJson(); 1300 _json["fullImage"] = (fullImage).toJson();
1256 } 1301 }
1257 if (id != null) { 1302 if (id != null) {
1258 _json["id"] = id; 1303 _json["id"] = id;
1259 } 1304 }
1260 if (image != null) { 1305 if (image != null) {
1261 _json["image"] = (image).toJson(); 1306 _json["image"] = (image).toJson();
1262 } 1307 }
1263 if (objectType != null) { 1308 if (objectType != null) {
1264 _json["objectType"] = objectType; 1309 _json["objectType"] = objectType;
1265 } 1310 }
1266 if (thumbnails != null) { 1311 if (thumbnails != null) {
1267 _json["thumbnails"] = thumbnails.map((value) => (value).toJson()).toList() ; 1312 _json["thumbnails"] =
1313 thumbnails.map((value) => (value).toJson()).toList();
1268 } 1314 }
1269 if (url != null) { 1315 if (url != null) {
1270 _json["url"] = url; 1316 _json["url"] = url;
1271 } 1317 }
1272 return _json; 1318 return _json;
1273 } 1319 }
1274 } 1320 }
1275 1321
1276 /** People who +1'd this activity. */ 1322 /// People who +1'd this activity.
1277 class ActivityObjectPlusoners { 1323 class ActivityObjectPlusoners {
1278 /** The URL for the collection of people who +1'd this activity. */ 1324 /// The URL for the collection of people who +1'd this activity.
1279 core.String selfLink; 1325 core.String selfLink;
1280 /** Total number of people who +1'd this activity. */ 1326
1327 /// Total number of people who +1'd this activity.
1281 core.int totalItems; 1328 core.int totalItems;
1282 1329
1283 ActivityObjectPlusoners(); 1330 ActivityObjectPlusoners();
1284 1331
1285 ActivityObjectPlusoners.fromJson(core.Map _json) { 1332 ActivityObjectPlusoners.fromJson(core.Map _json) {
1286 if (_json.containsKey("selfLink")) { 1333 if (_json.containsKey("selfLink")) {
1287 selfLink = _json["selfLink"]; 1334 selfLink = _json["selfLink"];
1288 } 1335 }
1289 if (_json.containsKey("totalItems")) { 1336 if (_json.containsKey("totalItems")) {
1290 totalItems = _json["totalItems"]; 1337 totalItems = _json["totalItems"];
1291 } 1338 }
1292 } 1339 }
1293 1340
1294 core.Map<core.String, core.Object> toJson() { 1341 core.Map<core.String, core.Object> toJson() {
1295 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1342 final core.Map<core.String, core.Object> _json =
1343 new core.Map<core.String, core.Object>();
1296 if (selfLink != null) { 1344 if (selfLink != null) {
1297 _json["selfLink"] = selfLink; 1345 _json["selfLink"] = selfLink;
1298 } 1346 }
1299 if (totalItems != null) { 1347 if (totalItems != null) {
1300 _json["totalItems"] = totalItems; 1348 _json["totalItems"] = totalItems;
1301 } 1349 }
1302 return _json; 1350 return _json;
1303 } 1351 }
1304 } 1352 }
1305 1353
1306 /** Comments in reply to this activity. */ 1354 /// Comments in reply to this activity.
1307 class ActivityObjectReplies { 1355 class ActivityObjectReplies {
1308 /** The URL for the collection of comments in reply to this activity. */ 1356 /// The URL for the collection of comments in reply to this activity.
1309 core.String selfLink; 1357 core.String selfLink;
1310 /** Total number of comments on this activity. */ 1358
1359 /// Total number of comments on this activity.
1311 core.int totalItems; 1360 core.int totalItems;
1312 1361
1313 ActivityObjectReplies(); 1362 ActivityObjectReplies();
1314 1363
1315 ActivityObjectReplies.fromJson(core.Map _json) { 1364 ActivityObjectReplies.fromJson(core.Map _json) {
1316 if (_json.containsKey("selfLink")) { 1365 if (_json.containsKey("selfLink")) {
1317 selfLink = _json["selfLink"]; 1366 selfLink = _json["selfLink"];
1318 } 1367 }
1319 if (_json.containsKey("totalItems")) { 1368 if (_json.containsKey("totalItems")) {
1320 totalItems = _json["totalItems"]; 1369 totalItems = _json["totalItems"];
1321 } 1370 }
1322 } 1371 }
1323 1372
1324 core.Map<core.String, core.Object> toJson() { 1373 core.Map<core.String, core.Object> toJson() {
1325 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1374 final core.Map<core.String, core.Object> _json =
1375 new core.Map<core.String, core.Object>();
1326 if (selfLink != null) { 1376 if (selfLink != null) {
1327 _json["selfLink"] = selfLink; 1377 _json["selfLink"] = selfLink;
1328 } 1378 }
1329 if (totalItems != null) { 1379 if (totalItems != null) {
1330 _json["totalItems"] = totalItems; 1380 _json["totalItems"] = totalItems;
1331 } 1381 }
1332 return _json; 1382 return _json;
1333 } 1383 }
1334 } 1384 }
1335 1385
1336 /** People who reshared this activity. */ 1386 /// People who reshared this activity.
1337 class ActivityObjectResharers { 1387 class ActivityObjectResharers {
1338 /** The URL for the collection of resharers. */ 1388 /// The URL for the collection of resharers.
1339 core.String selfLink; 1389 core.String selfLink;
1340 /** Total number of people who reshared this activity. */ 1390
1391 /// Total number of people who reshared this activity.
1341 core.int totalItems; 1392 core.int totalItems;
1342 1393
1343 ActivityObjectResharers(); 1394 ActivityObjectResharers();
1344 1395
1345 ActivityObjectResharers.fromJson(core.Map _json) { 1396 ActivityObjectResharers.fromJson(core.Map _json) {
1346 if (_json.containsKey("selfLink")) { 1397 if (_json.containsKey("selfLink")) {
1347 selfLink = _json["selfLink"]; 1398 selfLink = _json["selfLink"];
1348 } 1399 }
1349 if (_json.containsKey("totalItems")) { 1400 if (_json.containsKey("totalItems")) {
1350 totalItems = _json["totalItems"]; 1401 totalItems = _json["totalItems"];
1351 } 1402 }
1352 } 1403 }
1353 1404
1354 core.Map<core.String, core.Object> toJson() { 1405 core.Map<core.String, core.Object> toJson() {
1355 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1406 final core.Map<core.String, core.Object> _json =
1407 new core.Map<core.String, core.Object>();
1356 if (selfLink != null) { 1408 if (selfLink != null) {
1357 _json["selfLink"] = selfLink; 1409 _json["selfLink"] = selfLink;
1358 } 1410 }
1359 if (totalItems != null) { 1411 if (totalItems != null) {
1360 _json["totalItems"] = totalItems; 1412 _json["totalItems"] = totalItems;
1361 } 1413 }
1362 return _json; 1414 return _json;
1363 } 1415 }
1364 } 1416 }
1365 1417
1366 /** The object of this activity. */ 1418 /// The object of this activity.
1367 class ActivityObject { 1419 class ActivityObject {
1368 /** 1420 /// If this activity's object is itself another activity, such as when a
1369 * If this activity's object is itself another activity, such as when a person 1421 /// person reshares an activity, this property specifies the original
1370 * reshares an activity, this property specifies the original activity's 1422 /// activity's actor.
1371 * actor.
1372 */
1373 ActivityObjectActor actor; 1423 ActivityObjectActor actor;
1374 /** The media objects attached to this activity. */ 1424
1425 /// The media objects attached to this activity.
1375 core.List<ActivityObjectAttachments> attachments; 1426 core.List<ActivityObjectAttachments> attachments;
1376 /** The HTML-formatted content, which is suitable for display. */ 1427
1428 /// The HTML-formatted content, which is suitable for display.
1377 core.String content; 1429 core.String content;
1378 /** 1430
1379 * The ID of the object. When resharing an activity, this is the ID of the 1431 /// The ID of the object. When resharing an activity, this is the ID of the
1380 * activity that is being reshared. 1432 /// activity that is being reshared.
1381 */
1382 core.String id; 1433 core.String id;
1383 /** 1434
1384 * The type of the object. Possible values include, but are not limited to, 1435 /// The type of the object. Possible values include, but are not limited to,
1385 * the following values: 1436 /// the following values:
1386 * - "note" - Textual content. 1437 /// - "note" - Textual content.
1387 * - "activity" - A Google+ activity. 1438 /// - "activity" - A Google+ activity.
1388 */
1389 core.String objectType; 1439 core.String objectType;
1390 /** 1440
1391 * The content (text) as provided by the author, which is stored without any 1441 /// The content (text) as provided by the author, which is stored without any
1392 * HTML formatting. When creating or updating an activity, this value must be 1442 /// HTML formatting. When creating or updating an activity, this value must
1393 * supplied as plain text in the request. 1443 /// be supplied as plain text in the request.
1394 */
1395 core.String originalContent; 1444 core.String originalContent;
1396 /** People who +1'd this activity. */ 1445
1446 /// People who +1'd this activity.
1397 ActivityObjectPlusoners plusoners; 1447 ActivityObjectPlusoners plusoners;
1398 /** Comments in reply to this activity. */ 1448
1449 /// Comments in reply to this activity.
1399 ActivityObjectReplies replies; 1450 ActivityObjectReplies replies;
1400 /** People who reshared this activity. */ 1451
1452 /// People who reshared this activity.
1401 ActivityObjectResharers resharers; 1453 ActivityObjectResharers resharers;
1402 /** The URL that points to the linked resource. */ 1454
1455 /// The URL that points to the linked resource.
1403 core.String url; 1456 core.String url;
1404 1457
1405 ActivityObject(); 1458 ActivityObject();
1406 1459
1407 ActivityObject.fromJson(core.Map _json) { 1460 ActivityObject.fromJson(core.Map _json) {
1408 if (_json.containsKey("actor")) { 1461 if (_json.containsKey("actor")) {
1409 actor = new ActivityObjectActor.fromJson(_json["actor"]); 1462 actor = new ActivityObjectActor.fromJson(_json["actor"]);
1410 } 1463 }
1411 if (_json.containsKey("attachments")) { 1464 if (_json.containsKey("attachments")) {
1412 attachments = _json["attachments"].map((value) => new ActivityObjectAttach ments.fromJson(value)).toList(); 1465 attachments = _json["attachments"]
1466 .map((value) => new ActivityObjectAttachments.fromJson(value))
1467 .toList();
1413 } 1468 }
1414 if (_json.containsKey("content")) { 1469 if (_json.containsKey("content")) {
1415 content = _json["content"]; 1470 content = _json["content"];
1416 } 1471 }
1417 if (_json.containsKey("id")) { 1472 if (_json.containsKey("id")) {
1418 id = _json["id"]; 1473 id = _json["id"];
1419 } 1474 }
1420 if (_json.containsKey("objectType")) { 1475 if (_json.containsKey("objectType")) {
1421 objectType = _json["objectType"]; 1476 objectType = _json["objectType"];
1422 } 1477 }
1423 if (_json.containsKey("originalContent")) { 1478 if (_json.containsKey("originalContent")) {
1424 originalContent = _json["originalContent"]; 1479 originalContent = _json["originalContent"];
1425 } 1480 }
1426 if (_json.containsKey("plusoners")) { 1481 if (_json.containsKey("plusoners")) {
1427 plusoners = new ActivityObjectPlusoners.fromJson(_json["plusoners"]); 1482 plusoners = new ActivityObjectPlusoners.fromJson(_json["plusoners"]);
1428 } 1483 }
1429 if (_json.containsKey("replies")) { 1484 if (_json.containsKey("replies")) {
1430 replies = new ActivityObjectReplies.fromJson(_json["replies"]); 1485 replies = new ActivityObjectReplies.fromJson(_json["replies"]);
1431 } 1486 }
1432 if (_json.containsKey("resharers")) { 1487 if (_json.containsKey("resharers")) {
1433 resharers = new ActivityObjectResharers.fromJson(_json["resharers"]); 1488 resharers = new ActivityObjectResharers.fromJson(_json["resharers"]);
1434 } 1489 }
1435 if (_json.containsKey("url")) { 1490 if (_json.containsKey("url")) {
1436 url = _json["url"]; 1491 url = _json["url"];
1437 } 1492 }
1438 } 1493 }
1439 1494
1440 core.Map<core.String, core.Object> toJson() { 1495 core.Map<core.String, core.Object> toJson() {
1441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1496 final core.Map<core.String, core.Object> _json =
1497 new core.Map<core.String, core.Object>();
1442 if (actor != null) { 1498 if (actor != null) {
1443 _json["actor"] = (actor).toJson(); 1499 _json["actor"] = (actor).toJson();
1444 } 1500 }
1445 if (attachments != null) { 1501 if (attachments != null) {
1446 _json["attachments"] = attachments.map((value) => (value).toJson()).toList (); 1502 _json["attachments"] =
1503 attachments.map((value) => (value).toJson()).toList();
1447 } 1504 }
1448 if (content != null) { 1505 if (content != null) {
1449 _json["content"] = content; 1506 _json["content"] = content;
1450 } 1507 }
1451 if (id != null) { 1508 if (id != null) {
1452 _json["id"] = id; 1509 _json["id"] = id;
1453 } 1510 }
1454 if (objectType != null) { 1511 if (objectType != null) {
1455 _json["objectType"] = objectType; 1512 _json["objectType"] = objectType;
1456 } 1513 }
1457 if (originalContent != null) { 1514 if (originalContent != null) {
1458 _json["originalContent"] = originalContent; 1515 _json["originalContent"] = originalContent;
1459 } 1516 }
1460 if (plusoners != null) { 1517 if (plusoners != null) {
1461 _json["plusoners"] = (plusoners).toJson(); 1518 _json["plusoners"] = (plusoners).toJson();
1462 } 1519 }
1463 if (replies != null) { 1520 if (replies != null) {
1464 _json["replies"] = (replies).toJson(); 1521 _json["replies"] = (replies).toJson();
1465 } 1522 }
1466 if (resharers != null) { 1523 if (resharers != null) {
1467 _json["resharers"] = (resharers).toJson(); 1524 _json["resharers"] = (resharers).toJson();
1468 } 1525 }
1469 if (url != null) { 1526 if (url != null) {
1470 _json["url"] = url; 1527 _json["url"] = url;
1471 } 1528 }
1472 return _json; 1529 return _json;
1473 } 1530 }
1474 } 1531 }
1475 1532
1476 /** The service provider that initially published this activity. */ 1533 /// The service provider that initially published this activity.
1477 class ActivityProvider { 1534 class ActivityProvider {
1478 /** Name of the service provider. */ 1535 /// Name of the service provider.
1479 core.String title; 1536 core.String title;
1480 1537
1481 ActivityProvider(); 1538 ActivityProvider();
1482 1539
1483 ActivityProvider.fromJson(core.Map _json) { 1540 ActivityProvider.fromJson(core.Map _json) {
1484 if (_json.containsKey("title")) { 1541 if (_json.containsKey("title")) {
1485 title = _json["title"]; 1542 title = _json["title"];
1486 } 1543 }
1487 } 1544 }
1488 1545
1489 core.Map<core.String, core.Object> toJson() { 1546 core.Map<core.String, core.Object> toJson() {
1490 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1547 final core.Map<core.String, core.Object> _json =
1548 new core.Map<core.String, core.Object>();
1491 if (title != null) { 1549 if (title != null) {
1492 _json["title"] = title; 1550 _json["title"] = title;
1493 } 1551 }
1494 return _json; 1552 return _json;
1495 } 1553 }
1496 } 1554 }
1497 1555
1498 class Activity { 1556 class Activity {
1499 /** Identifies who has access to see this activity. */ 1557 /// Identifies who has access to see this activity.
1500 Acl access; 1558 Acl access;
1501 /** The person who performed this activity. */ 1559
1560 /// The person who performed this activity.
1502 ActivityActor actor; 1561 ActivityActor actor;
1503 /** Street address where this activity occurred. */ 1562
1563 /// Street address where this activity occurred.
1504 core.String address; 1564 core.String address;
1505 /** 1565
1506 * Additional content added by the person who shared this activity, applicable 1566 /// Additional content added by the person who shared this activity,
1507 * only when resharing an activity. 1567 /// applicable only when resharing an activity.
1508 */
1509 core.String annotation; 1568 core.String annotation;
1510 /** 1569
1511 * If this activity is a crosspost from another system, this property 1570 /// If this activity is a crosspost from another system, this property
1512 * specifies the ID of the original activity. 1571 /// specifies the ID of the original activity.
1513 */
1514 core.String crosspostSource; 1572 core.String crosspostSource;
1515 /** ETag of this response for caching purposes. */ 1573
1574 /// ETag of this response for caching purposes.
1516 core.String etag; 1575 core.String etag;
1517 /** 1576
1518 * Latitude and longitude where this activity occurred. Format is latitude 1577 /// Latitude and longitude where this activity occurred. Format is latitude
1519 * followed by longitude, space separated. 1578 /// followed by longitude, space separated.
1520 */
1521 core.String geocode; 1579 core.String geocode;
1522 /** The ID of this activity. */ 1580
1581 /// The ID of this activity.
1523 core.String id; 1582 core.String id;
1524 /** Identifies this resource as an activity. Value: "plus#activity". */ 1583
1584 /// Identifies this resource as an activity. Value: "plus#activity".
1525 core.String kind; 1585 core.String kind;
1526 /** The location where this activity occurred. */ 1586
1587 /// The location where this activity occurred.
1527 Place location; 1588 Place location;
1528 /** The object of this activity. */ 1589
1590 /// The object of this activity.
1529 ActivityObject object; 1591 ActivityObject object;
1530 /** ID of the place where this activity occurred. */ 1592
1593 /// ID of the place where this activity occurred.
1531 core.String placeId; 1594 core.String placeId;
1532 /** Name of the place where this activity occurred. */ 1595
1596 /// Name of the place where this activity occurred.
1533 core.String placeName; 1597 core.String placeName;
1534 /** The service provider that initially published this activity. */ 1598
1599 /// The service provider that initially published this activity.
1535 ActivityProvider provider; 1600 ActivityProvider provider;
1536 /** 1601
1537 * The time at which this activity was initially published. Formatted as an 1602 /// The time at which this activity was initially published. Formatted as an
1538 * RFC 3339 timestamp. 1603 /// RFC 3339 timestamp.
1539 */
1540 core.DateTime published; 1604 core.DateTime published;
1541 /** 1605
1542 * Radius, in meters, of the region where this activity occurred, centered at 1606 /// Radius, in meters, of the region where this activity occurred, centered
1543 * the latitude and longitude identified in geocode. 1607 /// at the latitude and longitude identified in geocode.
1544 */
1545 core.String radius; 1608 core.String radius;
1546 /** Title of this activity. */ 1609
1610 /// Title of this activity.
1547 core.String title; 1611 core.String title;
1548 /** 1612
1549 * The time at which this activity was last updated. Formatted as an RFC 3339 1613 /// The time at which this activity was last updated. Formatted as an RFC
1550 * timestamp. 1614 /// 3339 timestamp.
1551 */
1552 core.DateTime updated; 1615 core.DateTime updated;
1553 /** The link to this activity. */ 1616
1617 /// The link to this activity.
1554 core.String url; 1618 core.String url;
1555 /** 1619
1556 * This activity's verb, which indicates the action that was performed. 1620 /// This activity's verb, which indicates the action that was performed.
1557 * Possible values include, but are not limited to, the following values: 1621 /// Possible values include, but are not limited to, the following values:
1558 * - "post" - Publish content to the stream. 1622 /// - "post" - Publish content to the stream.
1559 * - "share" - Reshare an activity. 1623 /// - "share" - Reshare an activity.
1560 */
1561 core.String verb; 1624 core.String verb;
1562 1625
1563 Activity(); 1626 Activity();
1564 1627
1565 Activity.fromJson(core.Map _json) { 1628 Activity.fromJson(core.Map _json) {
1566 if (_json.containsKey("access")) { 1629 if (_json.containsKey("access")) {
1567 access = new Acl.fromJson(_json["access"]); 1630 access = new Acl.fromJson(_json["access"]);
1568 } 1631 }
1569 if (_json.containsKey("actor")) { 1632 if (_json.containsKey("actor")) {
1570 actor = new ActivityActor.fromJson(_json["actor"]); 1633 actor = new ActivityActor.fromJson(_json["actor"]);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 } 1682 }
1620 if (_json.containsKey("url")) { 1683 if (_json.containsKey("url")) {
1621 url = _json["url"]; 1684 url = _json["url"];
1622 } 1685 }
1623 if (_json.containsKey("verb")) { 1686 if (_json.containsKey("verb")) {
1624 verb = _json["verb"]; 1687 verb = _json["verb"];
1625 } 1688 }
1626 } 1689 }
1627 1690
1628 core.Map<core.String, core.Object> toJson() { 1691 core.Map<core.String, core.Object> toJson() {
1629 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1692 final core.Map<core.String, core.Object> _json =
1693 new core.Map<core.String, core.Object>();
1630 if (access != null) { 1694 if (access != null) {
1631 _json["access"] = (access).toJson(); 1695 _json["access"] = (access).toJson();
1632 } 1696 }
1633 if (actor != null) { 1697 if (actor != null) {
1634 _json["actor"] = (actor).toJson(); 1698 _json["actor"] = (actor).toJson();
1635 } 1699 }
1636 if (address != null) { 1700 if (address != null) {
1637 _json["address"] = address; 1701 _json["address"] = address;
1638 } 1702 }
1639 if (annotation != null) { 1703 if (annotation != null) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 _json["url"] = url; 1749 _json["url"] = url;
1686 } 1750 }
1687 if (verb != null) { 1751 if (verb != null) {
1688 _json["verb"] = verb; 1752 _json["verb"] = verb;
1689 } 1753 }
1690 return _json; 1754 return _json;
1691 } 1755 }
1692 } 1756 }
1693 1757
1694 class ActivityFeed { 1758 class ActivityFeed {
1695 /** ETag of this response for caching purposes. */ 1759 /// ETag of this response for caching purposes.
1696 core.String etag; 1760 core.String etag;
1697 /** The ID of this collection of activities. Deprecated. */ 1761
1762 /// The ID of this collection of activities. Deprecated.
1698 core.String id; 1763 core.String id;
1699 /** The activities in this page of results. */ 1764
1765 /// The activities in this page of results.
1700 core.List<Activity> items; 1766 core.List<Activity> items;
1701 /** 1767
1702 * Identifies this resource as a collection of activities. Value: 1768 /// Identifies this resource as a collection of activities. Value:
1703 * "plus#activityFeed". 1769 /// "plus#activityFeed".
1704 */
1705 core.String kind; 1770 core.String kind;
1706 /** Link to the next page of activities. */ 1771
1772 /// Link to the next page of activities.
1707 core.String nextLink; 1773 core.String nextLink;
1708 /** 1774
1709 * The continuation token, which is used to page through large result sets. 1775 /// The continuation token, which is used to page through large result sets.
1710 * Provide this value in a subsequent request to return the next page of 1776 /// Provide this value in a subsequent request to return the next page of
1711 * results. 1777 /// results.
1712 */
1713 core.String nextPageToken; 1778 core.String nextPageToken;
1714 /** Link to this activity resource. */ 1779
1780 /// Link to this activity resource.
1715 core.String selfLink; 1781 core.String selfLink;
1716 /** 1782
1717 * The title of this collection of activities, which is a truncated portion of 1783 /// The title of this collection of activities, which is a truncated portion
1718 * the content. 1784 /// of the content.
1719 */
1720 core.String title; 1785 core.String title;
1721 /** 1786
1722 * The time at which this collection of activities was last updated. Formatted 1787 /// The time at which this collection of activities was last updated.
1723 * as an RFC 3339 timestamp. 1788 /// Formatted as an RFC 3339 timestamp.
1724 */
1725 core.DateTime updated; 1789 core.DateTime updated;
1726 1790
1727 ActivityFeed(); 1791 ActivityFeed();
1728 1792
1729 ActivityFeed.fromJson(core.Map _json) { 1793 ActivityFeed.fromJson(core.Map _json) {
1730 if (_json.containsKey("etag")) { 1794 if (_json.containsKey("etag")) {
1731 etag = _json["etag"]; 1795 etag = _json["etag"];
1732 } 1796 }
1733 if (_json.containsKey("id")) { 1797 if (_json.containsKey("id")) {
1734 id = _json["id"]; 1798 id = _json["id"];
1735 } 1799 }
1736 if (_json.containsKey("items")) { 1800 if (_json.containsKey("items")) {
1737 items = _json["items"].map((value) => new Activity.fromJson(value)).toList (); 1801 items =
1802 _json["items"].map((value) => new Activity.fromJson(value)).toList();
1738 } 1803 }
1739 if (_json.containsKey("kind")) { 1804 if (_json.containsKey("kind")) {
1740 kind = _json["kind"]; 1805 kind = _json["kind"];
1741 } 1806 }
1742 if (_json.containsKey("nextLink")) { 1807 if (_json.containsKey("nextLink")) {
1743 nextLink = _json["nextLink"]; 1808 nextLink = _json["nextLink"];
1744 } 1809 }
1745 if (_json.containsKey("nextPageToken")) { 1810 if (_json.containsKey("nextPageToken")) {
1746 nextPageToken = _json["nextPageToken"]; 1811 nextPageToken = _json["nextPageToken"];
1747 } 1812 }
1748 if (_json.containsKey("selfLink")) { 1813 if (_json.containsKey("selfLink")) {
1749 selfLink = _json["selfLink"]; 1814 selfLink = _json["selfLink"];
1750 } 1815 }
1751 if (_json.containsKey("title")) { 1816 if (_json.containsKey("title")) {
1752 title = _json["title"]; 1817 title = _json["title"];
1753 } 1818 }
1754 if (_json.containsKey("updated")) { 1819 if (_json.containsKey("updated")) {
1755 updated = core.DateTime.parse(_json["updated"]); 1820 updated = core.DateTime.parse(_json["updated"]);
1756 } 1821 }
1757 } 1822 }
1758 1823
1759 core.Map<core.String, core.Object> toJson() { 1824 core.Map<core.String, core.Object> toJson() {
1760 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1825 final core.Map<core.String, core.Object> _json =
1826 new core.Map<core.String, core.Object>();
1761 if (etag != null) { 1827 if (etag != null) {
1762 _json["etag"] = etag; 1828 _json["etag"] = etag;
1763 } 1829 }
1764 if (id != null) { 1830 if (id != null) {
1765 _json["id"] = id; 1831 _json["id"] = id;
1766 } 1832 }
1767 if (items != null) { 1833 if (items != null) {
1768 _json["items"] = items.map((value) => (value).toJson()).toList(); 1834 _json["items"] = items.map((value) => (value).toJson()).toList();
1769 } 1835 }
1770 if (kind != null) { 1836 if (kind != null) {
(...skipping 11 matching lines...) Expand all
1782 if (title != null) { 1848 if (title != null) {
1783 _json["title"] = title; 1849 _json["title"] = title;
1784 } 1850 }
1785 if (updated != null) { 1851 if (updated != null) {
1786 _json["updated"] = (updated).toIso8601String(); 1852 _json["updated"] = (updated).toIso8601String();
1787 } 1853 }
1788 return _json; 1854 return _json;
1789 } 1855 }
1790 } 1856 }
1791 1857
1792 /** Actor info specific to YouTube clients. */ 1858 /// Actor info specific to YouTube clients.
1793 class CommentActorClientSpecificActorInfoYoutubeActorInfo { 1859 class CommentActorClientSpecificActorInfoYoutubeActorInfo {
1794 /** ID of the YouTube channel owned by the Actor. */ 1860 /// ID of the YouTube channel owned by the Actor.
1795 core.String channelId; 1861 core.String channelId;
1796 1862
1797 CommentActorClientSpecificActorInfoYoutubeActorInfo(); 1863 CommentActorClientSpecificActorInfoYoutubeActorInfo();
1798 1864
1799 CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json) { 1865 CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json) {
1800 if (_json.containsKey("channelId")) { 1866 if (_json.containsKey("channelId")) {
1801 channelId = _json["channelId"]; 1867 channelId = _json["channelId"];
1802 } 1868 }
1803 } 1869 }
1804 1870
1805 core.Map<core.String, core.Object> toJson() { 1871 core.Map<core.String, core.Object> toJson() {
1806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1872 final core.Map<core.String, core.Object> _json =
1873 new core.Map<core.String, core.Object>();
1807 if (channelId != null) { 1874 if (channelId != null) {
1808 _json["channelId"] = channelId; 1875 _json["channelId"] = channelId;
1809 } 1876 }
1810 return _json; 1877 return _json;
1811 } 1878 }
1812 } 1879 }
1813 1880
1814 /** Actor info specific to particular clients. */ 1881 /// Actor info specific to particular clients.
1815 class CommentActorClientSpecificActorInfo { 1882 class CommentActorClientSpecificActorInfo {
1816 /** Actor info specific to YouTube clients. */ 1883 /// Actor info specific to YouTube clients.
1817 CommentActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; 1884 CommentActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo;
1818 1885
1819 CommentActorClientSpecificActorInfo(); 1886 CommentActorClientSpecificActorInfo();
1820 1887
1821 CommentActorClientSpecificActorInfo.fromJson(core.Map _json) { 1888 CommentActorClientSpecificActorInfo.fromJson(core.Map _json) {
1822 if (_json.containsKey("youtubeActorInfo")) { 1889 if (_json.containsKey("youtubeActorInfo")) {
1823 youtubeActorInfo = new CommentActorClientSpecificActorInfoYoutubeActorInfo .fromJson(_json["youtubeActorInfo"]); 1890 youtubeActorInfo =
1891 new CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson(
1892 _json["youtubeActorInfo"]);
1824 } 1893 }
1825 } 1894 }
1826 1895
1827 core.Map<core.String, core.Object> toJson() { 1896 core.Map<core.String, core.Object> toJson() {
1828 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1897 final core.Map<core.String, core.Object> _json =
1898 new core.Map<core.String, core.Object>();
1829 if (youtubeActorInfo != null) { 1899 if (youtubeActorInfo != null) {
1830 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); 1900 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson();
1831 } 1901 }
1832 return _json; 1902 return _json;
1833 } 1903 }
1834 } 1904 }
1835 1905
1836 /** The image representation of this actor. */ 1906 /// The image representation of this actor.
1837 class CommentActorImage { 1907 class CommentActorImage {
1838 /** 1908 /// The URL of the actor's profile photo. To resize the image and crop it to
1839 * The URL of the actor's profile photo. To resize the image and crop it to a 1909 /// a square, append the query string ?sz=x, where x is the dimension in
1840 * square, append the query string ?sz=x, where x is the dimension in pixels 1910 /// pixels of each side.
1841 * of each side.
1842 */
1843 core.String url; 1911 core.String url;
1844 1912
1845 CommentActorImage(); 1913 CommentActorImage();
1846 1914
1847 CommentActorImage.fromJson(core.Map _json) { 1915 CommentActorImage.fromJson(core.Map _json) {
1848 if (_json.containsKey("url")) { 1916 if (_json.containsKey("url")) {
1849 url = _json["url"]; 1917 url = _json["url"];
1850 } 1918 }
1851 } 1919 }
1852 1920
1853 core.Map<core.String, core.Object> toJson() { 1921 core.Map<core.String, core.Object> toJson() {
1854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1922 final core.Map<core.String, core.Object> _json =
1923 new core.Map<core.String, core.Object>();
1855 if (url != null) { 1924 if (url != null) {
1856 _json["url"] = url; 1925 _json["url"] = url;
1857 } 1926 }
1858 return _json; 1927 return _json;
1859 } 1928 }
1860 } 1929 }
1861 1930
1862 /** Verification status of actor. */ 1931 /// Verification status of actor.
1863 class CommentActorVerification { 1932 class CommentActorVerification {
1864 /** Verification for one-time or manual processes. */ 1933 /// Verification for one-time or manual processes.
1865 core.String adHocVerified; 1934 core.String adHocVerified;
1866 1935
1867 CommentActorVerification(); 1936 CommentActorVerification();
1868 1937
1869 CommentActorVerification.fromJson(core.Map _json) { 1938 CommentActorVerification.fromJson(core.Map _json) {
1870 if (_json.containsKey("adHocVerified")) { 1939 if (_json.containsKey("adHocVerified")) {
1871 adHocVerified = _json["adHocVerified"]; 1940 adHocVerified = _json["adHocVerified"];
1872 } 1941 }
1873 } 1942 }
1874 1943
1875 core.Map<core.String, core.Object> toJson() { 1944 core.Map<core.String, core.Object> toJson() {
1876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1945 final core.Map<core.String, core.Object> _json =
1946 new core.Map<core.String, core.Object>();
1877 if (adHocVerified != null) { 1947 if (adHocVerified != null) {
1878 _json["adHocVerified"] = adHocVerified; 1948 _json["adHocVerified"] = adHocVerified;
1879 } 1949 }
1880 return _json; 1950 return _json;
1881 } 1951 }
1882 } 1952 }
1883 1953
1884 /** The person who posted this comment. */ 1954 /// The person who posted this comment.
1885 class CommentActor { 1955 class CommentActor {
1886 /** Actor info specific to particular clients. */ 1956 /// Actor info specific to particular clients.
1887 CommentActorClientSpecificActorInfo clientSpecificActorInfo; 1957 CommentActorClientSpecificActorInfo clientSpecificActorInfo;
1888 /** The name of this actor, suitable for display. */ 1958
1959 /// The name of this actor, suitable for display.
1889 core.String displayName; 1960 core.String displayName;
1890 /** The ID of the actor. */ 1961
1962 /// The ID of the actor.
1891 core.String id; 1963 core.String id;
1892 /** The image representation of this actor. */ 1964
1965 /// The image representation of this actor.
1893 CommentActorImage image; 1966 CommentActorImage image;
1894 /** A link to the Person resource for this actor. */ 1967
1968 /// A link to the Person resource for this actor.
1895 core.String url; 1969 core.String url;
1896 /** Verification status of actor. */ 1970
1971 /// Verification status of actor.
1897 CommentActorVerification verification; 1972 CommentActorVerification verification;
1898 1973
1899 CommentActor(); 1974 CommentActor();
1900 1975
1901 CommentActor.fromJson(core.Map _json) { 1976 CommentActor.fromJson(core.Map _json) {
1902 if (_json.containsKey("clientSpecificActorInfo")) { 1977 if (_json.containsKey("clientSpecificActorInfo")) {
1903 clientSpecificActorInfo = new CommentActorClientSpecificActorInfo.fromJson (_json["clientSpecificActorInfo"]); 1978 clientSpecificActorInfo =
1979 new CommentActorClientSpecificActorInfo.fromJson(
1980 _json["clientSpecificActorInfo"]);
1904 } 1981 }
1905 if (_json.containsKey("displayName")) { 1982 if (_json.containsKey("displayName")) {
1906 displayName = _json["displayName"]; 1983 displayName = _json["displayName"];
1907 } 1984 }
1908 if (_json.containsKey("id")) { 1985 if (_json.containsKey("id")) {
1909 id = _json["id"]; 1986 id = _json["id"];
1910 } 1987 }
1911 if (_json.containsKey("image")) { 1988 if (_json.containsKey("image")) {
1912 image = new CommentActorImage.fromJson(_json["image"]); 1989 image = new CommentActorImage.fromJson(_json["image"]);
1913 } 1990 }
1914 if (_json.containsKey("url")) { 1991 if (_json.containsKey("url")) {
1915 url = _json["url"]; 1992 url = _json["url"];
1916 } 1993 }
1917 if (_json.containsKey("verification")) { 1994 if (_json.containsKey("verification")) {
1918 verification = new CommentActorVerification.fromJson(_json["verification"] ); 1995 verification =
1996 new CommentActorVerification.fromJson(_json["verification"]);
1919 } 1997 }
1920 } 1998 }
1921 1999
1922 core.Map<core.String, core.Object> toJson() { 2000 core.Map<core.String, core.Object> toJson() {
1923 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2001 final core.Map<core.String, core.Object> _json =
2002 new core.Map<core.String, core.Object>();
1924 if (clientSpecificActorInfo != null) { 2003 if (clientSpecificActorInfo != null) {
1925 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); 2004 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson();
1926 } 2005 }
1927 if (displayName != null) { 2006 if (displayName != null) {
1928 _json["displayName"] = displayName; 2007 _json["displayName"] = displayName;
1929 } 2008 }
1930 if (id != null) { 2009 if (id != null) {
1931 _json["id"] = id; 2010 _json["id"] = id;
1932 } 2011 }
1933 if (image != null) { 2012 if (image != null) {
1934 _json["image"] = (image).toJson(); 2013 _json["image"] = (image).toJson();
1935 } 2014 }
1936 if (url != null) { 2015 if (url != null) {
1937 _json["url"] = url; 2016 _json["url"] = url;
1938 } 2017 }
1939 if (verification != null) { 2018 if (verification != null) {
1940 _json["verification"] = (verification).toJson(); 2019 _json["verification"] = (verification).toJson();
1941 } 2020 }
1942 return _json; 2021 return _json;
1943 } 2022 }
1944 } 2023 }
1945 2024
1946 class CommentInReplyTo { 2025 class CommentInReplyTo {
1947 /** The ID of the activity. */ 2026 /// The ID of the activity.
1948 core.String id; 2027 core.String id;
1949 /** The URL of the activity. */ 2028
2029 /// The URL of the activity.
1950 core.String url; 2030 core.String url;
1951 2031
1952 CommentInReplyTo(); 2032 CommentInReplyTo();
1953 2033
1954 CommentInReplyTo.fromJson(core.Map _json) { 2034 CommentInReplyTo.fromJson(core.Map _json) {
1955 if (_json.containsKey("id")) { 2035 if (_json.containsKey("id")) {
1956 id = _json["id"]; 2036 id = _json["id"];
1957 } 2037 }
1958 if (_json.containsKey("url")) { 2038 if (_json.containsKey("url")) {
1959 url = _json["url"]; 2039 url = _json["url"];
1960 } 2040 }
1961 } 2041 }
1962 2042
1963 core.Map<core.String, core.Object> toJson() { 2043 core.Map<core.String, core.Object> toJson() {
1964 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2044 final core.Map<core.String, core.Object> _json =
2045 new core.Map<core.String, core.Object>();
1965 if (id != null) { 2046 if (id != null) {
1966 _json["id"] = id; 2047 _json["id"] = id;
1967 } 2048 }
1968 if (url != null) { 2049 if (url != null) {
1969 _json["url"] = url; 2050 _json["url"] = url;
1970 } 2051 }
1971 return _json; 2052 return _json;
1972 } 2053 }
1973 } 2054 }
1974 2055
1975 /** The object of this comment. */ 2056 /// The object of this comment.
1976 class CommentObject { 2057 class CommentObject {
1977 /** The HTML-formatted content, suitable for display. */ 2058 /// The HTML-formatted content, suitable for display.
1978 core.String content; 2059 core.String content;
1979 /** 2060
1980 * The object type of this comment. Possible values are: 2061 /// The object type of this comment. Possible values are:
1981 * - "comment" - A comment in reply to an activity. 2062 /// - "comment" - A comment in reply to an activity.
1982 */
1983 core.String objectType; 2063 core.String objectType;
1984 /** 2064
1985 * The content (text) as provided by the author, stored without any HTML 2065 /// The content (text) as provided by the author, stored without any HTML
1986 * formatting. When creating or updating a comment, this value must be 2066 /// formatting. When creating or updating a comment, this value must be
1987 * supplied as plain text in the request. 2067 /// supplied as plain text in the request.
1988 */
1989 core.String originalContent; 2068 core.String originalContent;
1990 2069
1991 CommentObject(); 2070 CommentObject();
1992 2071
1993 CommentObject.fromJson(core.Map _json) { 2072 CommentObject.fromJson(core.Map _json) {
1994 if (_json.containsKey("content")) { 2073 if (_json.containsKey("content")) {
1995 content = _json["content"]; 2074 content = _json["content"];
1996 } 2075 }
1997 if (_json.containsKey("objectType")) { 2076 if (_json.containsKey("objectType")) {
1998 objectType = _json["objectType"]; 2077 objectType = _json["objectType"];
1999 } 2078 }
2000 if (_json.containsKey("originalContent")) { 2079 if (_json.containsKey("originalContent")) {
2001 originalContent = _json["originalContent"]; 2080 originalContent = _json["originalContent"];
2002 } 2081 }
2003 } 2082 }
2004 2083
2005 core.Map<core.String, core.Object> toJson() { 2084 core.Map<core.String, core.Object> toJson() {
2006 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2085 final core.Map<core.String, core.Object> _json =
2086 new core.Map<core.String, core.Object>();
2007 if (content != null) { 2087 if (content != null) {
2008 _json["content"] = content; 2088 _json["content"] = content;
2009 } 2089 }
2010 if (objectType != null) { 2090 if (objectType != null) {
2011 _json["objectType"] = objectType; 2091 _json["objectType"] = objectType;
2012 } 2092 }
2013 if (originalContent != null) { 2093 if (originalContent != null) {
2014 _json["originalContent"] = originalContent; 2094 _json["originalContent"] = originalContent;
2015 } 2095 }
2016 return _json; 2096 return _json;
2017 } 2097 }
2018 } 2098 }
2019 2099
2020 /** People who +1'd this comment. */ 2100 /// People who +1'd this comment.
2021 class CommentPlusoners { 2101 class CommentPlusoners {
2022 /** Total number of people who +1'd this comment. */ 2102 /// Total number of people who +1'd this comment.
2023 core.int totalItems; 2103 core.int totalItems;
2024 2104
2025 CommentPlusoners(); 2105 CommentPlusoners();
2026 2106
2027 CommentPlusoners.fromJson(core.Map _json) { 2107 CommentPlusoners.fromJson(core.Map _json) {
2028 if (_json.containsKey("totalItems")) { 2108 if (_json.containsKey("totalItems")) {
2029 totalItems = _json["totalItems"]; 2109 totalItems = _json["totalItems"];
2030 } 2110 }
2031 } 2111 }
2032 2112
2033 core.Map<core.String, core.Object> toJson() { 2113 core.Map<core.String, core.Object> toJson() {
2034 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2114 final core.Map<core.String, core.Object> _json =
2115 new core.Map<core.String, core.Object>();
2035 if (totalItems != null) { 2116 if (totalItems != null) {
2036 _json["totalItems"] = totalItems; 2117 _json["totalItems"] = totalItems;
2037 } 2118 }
2038 return _json; 2119 return _json;
2039 } 2120 }
2040 } 2121 }
2041 2122
2042 class Comment { 2123 class Comment {
2043 /** The person who posted this comment. */ 2124 /// The person who posted this comment.
2044 CommentActor actor; 2125 CommentActor actor;
2045 /** ETag of this response for caching purposes. */ 2126
2127 /// ETag of this response for caching purposes.
2046 core.String etag; 2128 core.String etag;
2047 /** The ID of this comment. */ 2129
2130 /// The ID of this comment.
2048 core.String id; 2131 core.String id;
2049 /** The activity this comment replied to. */ 2132
2133 /// The activity this comment replied to.
2050 core.List<CommentInReplyTo> inReplyTo; 2134 core.List<CommentInReplyTo> inReplyTo;
2051 /** Identifies this resource as a comment. Value: "plus#comment". */ 2135
2136 /// Identifies this resource as a comment. Value: "plus#comment".
2052 core.String kind; 2137 core.String kind;
2053 /** The object of this comment. */ 2138
2139 /// The object of this comment.
2054 CommentObject object; 2140 CommentObject object;
2055 /** People who +1'd this comment. */ 2141
2142 /// People who +1'd this comment.
2056 CommentPlusoners plusoners; 2143 CommentPlusoners plusoners;
2057 /** 2144
2058 * The time at which this comment was initially published. Formatted as an RFC 2145 /// The time at which this comment was initially published. Formatted as an
2059 * 3339 timestamp. 2146 /// RFC 3339 timestamp.
2060 */
2061 core.DateTime published; 2147 core.DateTime published;
2062 /** Link to this comment resource. */ 2148
2149 /// Link to this comment resource.
2063 core.String selfLink; 2150 core.String selfLink;
2064 /** 2151
2065 * The time at which this comment was last updated. Formatted as an RFC 3339 2152 /// The time at which this comment was last updated. Formatted as an RFC 3339
2066 * timestamp. 2153 /// timestamp.
2067 */
2068 core.DateTime updated; 2154 core.DateTime updated;
2069 /** 2155
2070 * This comment's verb, indicating what action was performed. Possible values 2156 /// This comment's verb, indicating what action was performed. Possible
2071 * are: 2157 /// values are:
2072 * - "post" - Publish content to the stream. 2158 /// - "post" - Publish content to the stream.
2073 */
2074 core.String verb; 2159 core.String verb;
2075 2160
2076 Comment(); 2161 Comment();
2077 2162
2078 Comment.fromJson(core.Map _json) { 2163 Comment.fromJson(core.Map _json) {
2079 if (_json.containsKey("actor")) { 2164 if (_json.containsKey("actor")) {
2080 actor = new CommentActor.fromJson(_json["actor"]); 2165 actor = new CommentActor.fromJson(_json["actor"]);
2081 } 2166 }
2082 if (_json.containsKey("etag")) { 2167 if (_json.containsKey("etag")) {
2083 etag = _json["etag"]; 2168 etag = _json["etag"];
2084 } 2169 }
2085 if (_json.containsKey("id")) { 2170 if (_json.containsKey("id")) {
2086 id = _json["id"]; 2171 id = _json["id"];
2087 } 2172 }
2088 if (_json.containsKey("inReplyTo")) { 2173 if (_json.containsKey("inReplyTo")) {
2089 inReplyTo = _json["inReplyTo"].map((value) => new CommentInReplyTo.fromJso n(value)).toList(); 2174 inReplyTo = _json["inReplyTo"]
2175 .map((value) => new CommentInReplyTo.fromJson(value))
2176 .toList();
2090 } 2177 }
2091 if (_json.containsKey("kind")) { 2178 if (_json.containsKey("kind")) {
2092 kind = _json["kind"]; 2179 kind = _json["kind"];
2093 } 2180 }
2094 if (_json.containsKey("object")) { 2181 if (_json.containsKey("object")) {
2095 object = new CommentObject.fromJson(_json["object"]); 2182 object = new CommentObject.fromJson(_json["object"]);
2096 } 2183 }
2097 if (_json.containsKey("plusoners")) { 2184 if (_json.containsKey("plusoners")) {
2098 plusoners = new CommentPlusoners.fromJson(_json["plusoners"]); 2185 plusoners = new CommentPlusoners.fromJson(_json["plusoners"]);
2099 } 2186 }
2100 if (_json.containsKey("published")) { 2187 if (_json.containsKey("published")) {
2101 published = core.DateTime.parse(_json["published"]); 2188 published = core.DateTime.parse(_json["published"]);
2102 } 2189 }
2103 if (_json.containsKey("selfLink")) { 2190 if (_json.containsKey("selfLink")) {
2104 selfLink = _json["selfLink"]; 2191 selfLink = _json["selfLink"];
2105 } 2192 }
2106 if (_json.containsKey("updated")) { 2193 if (_json.containsKey("updated")) {
2107 updated = core.DateTime.parse(_json["updated"]); 2194 updated = core.DateTime.parse(_json["updated"]);
2108 } 2195 }
2109 if (_json.containsKey("verb")) { 2196 if (_json.containsKey("verb")) {
2110 verb = _json["verb"]; 2197 verb = _json["verb"];
2111 } 2198 }
2112 } 2199 }
2113 2200
2114 core.Map<core.String, core.Object> toJson() { 2201 core.Map<core.String, core.Object> toJson() {
2115 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2202 final core.Map<core.String, core.Object> _json =
2203 new core.Map<core.String, core.Object>();
2116 if (actor != null) { 2204 if (actor != null) {
2117 _json["actor"] = (actor).toJson(); 2205 _json["actor"] = (actor).toJson();
2118 } 2206 }
2119 if (etag != null) { 2207 if (etag != null) {
2120 _json["etag"] = etag; 2208 _json["etag"] = etag;
2121 } 2209 }
2122 if (id != null) { 2210 if (id != null) {
2123 _json["id"] = id; 2211 _json["id"] = id;
2124 } 2212 }
2125 if (inReplyTo != null) { 2213 if (inReplyTo != null) {
(...skipping 18 matching lines...) Expand all
2144 _json["updated"] = (updated).toIso8601String(); 2232 _json["updated"] = (updated).toIso8601String();
2145 } 2233 }
2146 if (verb != null) { 2234 if (verb != null) {
2147 _json["verb"] = verb; 2235 _json["verb"] = verb;
2148 } 2236 }
2149 return _json; 2237 return _json;
2150 } 2238 }
2151 } 2239 }
2152 2240
2153 class CommentFeed { 2241 class CommentFeed {
2154 /** ETag of this response for caching purposes. */ 2242 /// ETag of this response for caching purposes.
2155 core.String etag; 2243 core.String etag;
2156 /** The ID of this collection of comments. */ 2244
2245 /// The ID of this collection of comments.
2157 core.String id; 2246 core.String id;
2158 /** The comments in this page of results. */ 2247
2248 /// The comments in this page of results.
2159 core.List<Comment> items; 2249 core.List<Comment> items;
2160 /** 2250
2161 * Identifies this resource as a collection of comments. Value: 2251 /// Identifies this resource as a collection of comments. Value:
2162 * "plus#commentFeed". 2252 /// "plus#commentFeed".
2163 */
2164 core.String kind; 2253 core.String kind;
2165 /** Link to the next page of activities. */ 2254
2255 /// Link to the next page of activities.
2166 core.String nextLink; 2256 core.String nextLink;
2167 /** 2257
2168 * The continuation token, which is used to page through large result sets. 2258 /// The continuation token, which is used to page through large result sets.
2169 * Provide this value in a subsequent request to return the next page of 2259 /// Provide this value in a subsequent request to return the next page of
2170 * results. 2260 /// results.
2171 */
2172 core.String nextPageToken; 2261 core.String nextPageToken;
2173 /** The title of this collection of comments. */ 2262
2263 /// The title of this collection of comments.
2174 core.String title; 2264 core.String title;
2175 /** 2265
2176 * The time at which this collection of comments was last updated. Formatted 2266 /// The time at which this collection of comments was last updated. Formatted
2177 * as an RFC 3339 timestamp. 2267 /// as an RFC 3339 timestamp.
2178 */
2179 core.DateTime updated; 2268 core.DateTime updated;
2180 2269
2181 CommentFeed(); 2270 CommentFeed();
2182 2271
2183 CommentFeed.fromJson(core.Map _json) { 2272 CommentFeed.fromJson(core.Map _json) {
2184 if (_json.containsKey("etag")) { 2273 if (_json.containsKey("etag")) {
2185 etag = _json["etag"]; 2274 etag = _json["etag"];
2186 } 2275 }
2187 if (_json.containsKey("id")) { 2276 if (_json.containsKey("id")) {
2188 id = _json["id"]; 2277 id = _json["id"];
2189 } 2278 }
2190 if (_json.containsKey("items")) { 2279 if (_json.containsKey("items")) {
2191 items = _json["items"].map((value) => new Comment.fromJson(value)).toList( ); 2280 items =
2281 _json["items"].map((value) => new Comment.fromJson(value)).toList();
2192 } 2282 }
2193 if (_json.containsKey("kind")) { 2283 if (_json.containsKey("kind")) {
2194 kind = _json["kind"]; 2284 kind = _json["kind"];
2195 } 2285 }
2196 if (_json.containsKey("nextLink")) { 2286 if (_json.containsKey("nextLink")) {
2197 nextLink = _json["nextLink"]; 2287 nextLink = _json["nextLink"];
2198 } 2288 }
2199 if (_json.containsKey("nextPageToken")) { 2289 if (_json.containsKey("nextPageToken")) {
2200 nextPageToken = _json["nextPageToken"]; 2290 nextPageToken = _json["nextPageToken"];
2201 } 2291 }
2202 if (_json.containsKey("title")) { 2292 if (_json.containsKey("title")) {
2203 title = _json["title"]; 2293 title = _json["title"];
2204 } 2294 }
2205 if (_json.containsKey("updated")) { 2295 if (_json.containsKey("updated")) {
2206 updated = core.DateTime.parse(_json["updated"]); 2296 updated = core.DateTime.parse(_json["updated"]);
2207 } 2297 }
2208 } 2298 }
2209 2299
2210 core.Map<core.String, core.Object> toJson() { 2300 core.Map<core.String, core.Object> toJson() {
2211 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2301 final core.Map<core.String, core.Object> _json =
2302 new core.Map<core.String, core.Object>();
2212 if (etag != null) { 2303 if (etag != null) {
2213 _json["etag"] = etag; 2304 _json["etag"] = etag;
2214 } 2305 }
2215 if (id != null) { 2306 if (id != null) {
2216 _json["id"] = id; 2307 _json["id"] = id;
2217 } 2308 }
2218 if (items != null) { 2309 if (items != null) {
2219 _json["items"] = items.map((value) => (value).toJson()).toList(); 2310 _json["items"] = items.map((value) => (value).toJson()).toList();
2220 } 2311 }
2221 if (kind != null) { 2312 if (kind != null) {
2222 _json["kind"] = kind; 2313 _json["kind"] = kind;
2223 } 2314 }
2224 if (nextLink != null) { 2315 if (nextLink != null) {
2225 _json["nextLink"] = nextLink; 2316 _json["nextLink"] = nextLink;
2226 } 2317 }
2227 if (nextPageToken != null) { 2318 if (nextPageToken != null) {
2228 _json["nextPageToken"] = nextPageToken; 2319 _json["nextPageToken"] = nextPageToken;
2229 } 2320 }
2230 if (title != null) { 2321 if (title != null) {
2231 _json["title"] = title; 2322 _json["title"] = title;
2232 } 2323 }
2233 if (updated != null) { 2324 if (updated != null) {
2234 _json["updated"] = (updated).toIso8601String(); 2325 _json["updated"] = (updated).toIso8601String();
2235 } 2326 }
2236 return _json; 2327 return _json;
2237 } 2328 }
2238 } 2329 }
2239 2330
2240 class PeopleFeed { 2331 class PeopleFeed {
2241 /** ETag of this response for caching purposes. */ 2332 /// ETag of this response for caching purposes.
2242 core.String etag; 2333 core.String etag;
2243 /** 2334
2244 * The people in this page of results. Each item includes the id, displayName, 2335 /// The people in this page of results. Each item includes the id,
2245 * image, and url for the person. To retrieve additional profile data, see the 2336 /// displayName, image, and url for the person. To retrieve additional
2246 * people.get method. 2337 /// profile data, see the people.get method.
2247 */
2248 core.List<Person> items; 2338 core.List<Person> items;
2249 /** 2339
2250 * Identifies this resource as a collection of people. Value: 2340 /// Identifies this resource as a collection of people. Value:
2251 * "plus#peopleFeed". 2341 /// "plus#peopleFeed".
2252 */
2253 core.String kind; 2342 core.String kind;
2254 /** 2343
2255 * The continuation token, which is used to page through large result sets. 2344 /// The continuation token, which is used to page through large result sets.
2256 * Provide this value in a subsequent request to return the next page of 2345 /// Provide this value in a subsequent request to return the next page of
2257 * results. 2346 /// results.
2258 */
2259 core.String nextPageToken; 2347 core.String nextPageToken;
2260 /** Link to this resource. */ 2348
2349 /// Link to this resource.
2261 core.String selfLink; 2350 core.String selfLink;
2262 /** The title of this collection of people. */ 2351
2352 /// The title of this collection of people.
2263 core.String title; 2353 core.String title;
2264 /** 2354
2265 * The total number of people available in this list. The number of people in 2355 /// The total number of people available in this list. The number of people
2266 * a response might be smaller due to paging. This might not be set for all 2356 /// in a response might be smaller due to paging. This might not be set for
2267 * collections. 2357 /// all collections.
2268 */
2269 core.int totalItems; 2358 core.int totalItems;
2270 2359
2271 PeopleFeed(); 2360 PeopleFeed();
2272 2361
2273 PeopleFeed.fromJson(core.Map _json) { 2362 PeopleFeed.fromJson(core.Map _json) {
2274 if (_json.containsKey("etag")) { 2363 if (_json.containsKey("etag")) {
2275 etag = _json["etag"]; 2364 etag = _json["etag"];
2276 } 2365 }
2277 if (_json.containsKey("items")) { 2366 if (_json.containsKey("items")) {
2278 items = _json["items"].map((value) => new Person.fromJson(value)).toList() ; 2367 items =
2368 _json["items"].map((value) => new Person.fromJson(value)).toList();
2279 } 2369 }
2280 if (_json.containsKey("kind")) { 2370 if (_json.containsKey("kind")) {
2281 kind = _json["kind"]; 2371 kind = _json["kind"];
2282 } 2372 }
2283 if (_json.containsKey("nextPageToken")) { 2373 if (_json.containsKey("nextPageToken")) {
2284 nextPageToken = _json["nextPageToken"]; 2374 nextPageToken = _json["nextPageToken"];
2285 } 2375 }
2286 if (_json.containsKey("selfLink")) { 2376 if (_json.containsKey("selfLink")) {
2287 selfLink = _json["selfLink"]; 2377 selfLink = _json["selfLink"];
2288 } 2378 }
2289 if (_json.containsKey("title")) { 2379 if (_json.containsKey("title")) {
2290 title = _json["title"]; 2380 title = _json["title"];
2291 } 2381 }
2292 if (_json.containsKey("totalItems")) { 2382 if (_json.containsKey("totalItems")) {
2293 totalItems = _json["totalItems"]; 2383 totalItems = _json["totalItems"];
2294 } 2384 }
2295 } 2385 }
2296 2386
2297 core.Map<core.String, core.Object> toJson() { 2387 core.Map<core.String, core.Object> toJson() {
2298 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2388 final core.Map<core.String, core.Object> _json =
2389 new core.Map<core.String, core.Object>();
2299 if (etag != null) { 2390 if (etag != null) {
2300 _json["etag"] = etag; 2391 _json["etag"] = etag;
2301 } 2392 }
2302 if (items != null) { 2393 if (items != null) {
2303 _json["items"] = items.map((value) => (value).toJson()).toList(); 2394 _json["items"] = items.map((value) => (value).toJson()).toList();
2304 } 2395 }
2305 if (kind != null) { 2396 if (kind != null) {
2306 _json["kind"] = kind; 2397 _json["kind"] = kind;
2307 } 2398 }
2308 if (nextPageToken != null) { 2399 if (nextPageToken != null) {
2309 _json["nextPageToken"] = nextPageToken; 2400 _json["nextPageToken"] = nextPageToken;
2310 } 2401 }
2311 if (selfLink != null) { 2402 if (selfLink != null) {
2312 _json["selfLink"] = selfLink; 2403 _json["selfLink"] = selfLink;
2313 } 2404 }
2314 if (title != null) { 2405 if (title != null) {
2315 _json["title"] = title; 2406 _json["title"] = title;
2316 } 2407 }
2317 if (totalItems != null) { 2408 if (totalItems != null) {
2318 _json["totalItems"] = totalItems; 2409 _json["totalItems"] = totalItems;
2319 } 2410 }
2320 return _json; 2411 return _json;
2321 } 2412 }
2322 } 2413 }
2323 2414
2324 /** 2415 /// The age range of the person. Valid ranges are 17 or younger, 18 to 20, and
2325 * The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 2416 /// 21 or older. Age is determined from the user's birthday using Western age
2326 * or older. Age is determined from the user's birthday using Western age 2417 /// reckoning.
2327 * reckoning.
2328 */
2329 class PersonAgeRange { 2418 class PersonAgeRange {
2330 /** 2419 /// The age range's upper bound, if any. Possible values include, but are not
2331 * The age range's upper bound, if any. Possible values include, but are not 2420 /// limited to, the following:
2332 * limited to, the following: 2421 /// - "17" - for age 17
2333 * - "17" - for age 17 2422 /// - "20" - for age 20
2334 * - "20" - for age 20
2335 */
2336 core.int max; 2423 core.int max;
2337 /** 2424
2338 * The age range's lower bound, if any. Possible values include, but are not 2425 /// The age range's lower bound, if any. Possible values include, but are not
2339 * limited to, the following: 2426 /// limited to, the following:
2340 * - "21" - for age 21 2427 /// - "21" - for age 21
2341 * - "18" - for age 18 2428 /// - "18" - for age 18
2342 */
2343 core.int min; 2429 core.int min;
2344 2430
2345 PersonAgeRange(); 2431 PersonAgeRange();
2346 2432
2347 PersonAgeRange.fromJson(core.Map _json) { 2433 PersonAgeRange.fromJson(core.Map _json) {
2348 if (_json.containsKey("max")) { 2434 if (_json.containsKey("max")) {
2349 max = _json["max"]; 2435 max = _json["max"];
2350 } 2436 }
2351 if (_json.containsKey("min")) { 2437 if (_json.containsKey("min")) {
2352 min = _json["min"]; 2438 min = _json["min"];
2353 } 2439 }
2354 } 2440 }
2355 2441
2356 core.Map<core.String, core.Object> toJson() { 2442 core.Map<core.String, core.Object> toJson() {
2357 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2443 final core.Map<core.String, core.Object> _json =
2444 new core.Map<core.String, core.Object>();
2358 if (max != null) { 2445 if (max != null) {
2359 _json["max"] = max; 2446 _json["max"] = max;
2360 } 2447 }
2361 if (min != null) { 2448 if (min != null) {
2362 _json["min"] = min; 2449 _json["min"] = min;
2363 } 2450 }
2364 return _json; 2451 return _json;
2365 } 2452 }
2366 } 2453 }
2367 2454
2368 /** Extra information about the cover photo. */ 2455 /// Extra information about the cover photo.
2369 class PersonCoverCoverInfo { 2456 class PersonCoverCoverInfo {
2370 /** 2457 /// The difference between the left position of the cover image and the
2371 * The difference between the left position of the cover image and the actual 2458 /// actual displayed cover image. Only valid for banner layout.
2372 * displayed cover image. Only valid for banner layout.
2373 */
2374 core.int leftImageOffset; 2459 core.int leftImageOffset;
2375 /** 2460
2376 * The difference between the top position of the cover image and the actual 2461 /// The difference between the top position of the cover image and the actual
2377 * displayed cover image. Only valid for banner layout. 2462 /// displayed cover image. Only valid for banner layout.
2378 */
2379 core.int topImageOffset; 2463 core.int topImageOffset;
2380 2464
2381 PersonCoverCoverInfo(); 2465 PersonCoverCoverInfo();
2382 2466
2383 PersonCoverCoverInfo.fromJson(core.Map _json) { 2467 PersonCoverCoverInfo.fromJson(core.Map _json) {
2384 if (_json.containsKey("leftImageOffset")) { 2468 if (_json.containsKey("leftImageOffset")) {
2385 leftImageOffset = _json["leftImageOffset"]; 2469 leftImageOffset = _json["leftImageOffset"];
2386 } 2470 }
2387 if (_json.containsKey("topImageOffset")) { 2471 if (_json.containsKey("topImageOffset")) {
2388 topImageOffset = _json["topImageOffset"]; 2472 topImageOffset = _json["topImageOffset"];
2389 } 2473 }
2390 } 2474 }
2391 2475
2392 core.Map<core.String, core.Object> toJson() { 2476 core.Map<core.String, core.Object> toJson() {
2393 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2477 final core.Map<core.String, core.Object> _json =
2478 new core.Map<core.String, core.Object>();
2394 if (leftImageOffset != null) { 2479 if (leftImageOffset != null) {
2395 _json["leftImageOffset"] = leftImageOffset; 2480 _json["leftImageOffset"] = leftImageOffset;
2396 } 2481 }
2397 if (topImageOffset != null) { 2482 if (topImageOffset != null) {
2398 _json["topImageOffset"] = topImageOffset; 2483 _json["topImageOffset"] = topImageOffset;
2399 } 2484 }
2400 return _json; 2485 return _json;
2401 } 2486 }
2402 } 2487 }
2403 2488
2404 /** The person's primary cover image. */ 2489 /// The person's primary cover image.
2405 class PersonCoverCoverPhoto { 2490 class PersonCoverCoverPhoto {
2406 /** The height of the image. */ 2491 /// The height of the image.
2407 core.int height; 2492 core.int height;
2408 /** The URL of the image. */ 2493
2494 /// The URL of the image.
2409 core.String url; 2495 core.String url;
2410 /** The width of the image. */ 2496
2497 /// The width of the image.
2411 core.int width; 2498 core.int width;
2412 2499
2413 PersonCoverCoverPhoto(); 2500 PersonCoverCoverPhoto();
2414 2501
2415 PersonCoverCoverPhoto.fromJson(core.Map _json) { 2502 PersonCoverCoverPhoto.fromJson(core.Map _json) {
2416 if (_json.containsKey("height")) { 2503 if (_json.containsKey("height")) {
2417 height = _json["height"]; 2504 height = _json["height"];
2418 } 2505 }
2419 if (_json.containsKey("url")) { 2506 if (_json.containsKey("url")) {
2420 url = _json["url"]; 2507 url = _json["url"];
2421 } 2508 }
2422 if (_json.containsKey("width")) { 2509 if (_json.containsKey("width")) {
2423 width = _json["width"]; 2510 width = _json["width"];
2424 } 2511 }
2425 } 2512 }
2426 2513
2427 core.Map<core.String, core.Object> toJson() { 2514 core.Map<core.String, core.Object> toJson() {
2428 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2515 final core.Map<core.String, core.Object> _json =
2516 new core.Map<core.String, core.Object>();
2429 if (height != null) { 2517 if (height != null) {
2430 _json["height"] = height; 2518 _json["height"] = height;
2431 } 2519 }
2432 if (url != null) { 2520 if (url != null) {
2433 _json["url"] = url; 2521 _json["url"] = url;
2434 } 2522 }
2435 if (width != null) { 2523 if (width != null) {
2436 _json["width"] = width; 2524 _json["width"] = width;
2437 } 2525 }
2438 return _json; 2526 return _json;
2439 } 2527 }
2440 } 2528 }
2441 2529
2442 /** The cover photo content. */ 2530 /// The cover photo content.
2443 class PersonCover { 2531 class PersonCover {
2444 /** Extra information about the cover photo. */ 2532 /// Extra information about the cover photo.
2445 PersonCoverCoverInfo coverInfo; 2533 PersonCoverCoverInfo coverInfo;
2446 /** The person's primary cover image. */ 2534
2535 /// The person's primary cover image.
2447 PersonCoverCoverPhoto coverPhoto; 2536 PersonCoverCoverPhoto coverPhoto;
2448 /** 2537
2449 * The layout of the cover art. Possible values include, but are not limited 2538 /// The layout of the cover art. Possible values include, but are not limited
2450 * to, the following values: 2539 /// to, the following values:
2451 * - "banner" - One large image banner. 2540 /// - "banner" - One large image banner.
2452 */
2453 core.String layout; 2541 core.String layout;
2454 2542
2455 PersonCover(); 2543 PersonCover();
2456 2544
2457 PersonCover.fromJson(core.Map _json) { 2545 PersonCover.fromJson(core.Map _json) {
2458 if (_json.containsKey("coverInfo")) { 2546 if (_json.containsKey("coverInfo")) {
2459 coverInfo = new PersonCoverCoverInfo.fromJson(_json["coverInfo"]); 2547 coverInfo = new PersonCoverCoverInfo.fromJson(_json["coverInfo"]);
2460 } 2548 }
2461 if (_json.containsKey("coverPhoto")) { 2549 if (_json.containsKey("coverPhoto")) {
2462 coverPhoto = new PersonCoverCoverPhoto.fromJson(_json["coverPhoto"]); 2550 coverPhoto = new PersonCoverCoverPhoto.fromJson(_json["coverPhoto"]);
2463 } 2551 }
2464 if (_json.containsKey("layout")) { 2552 if (_json.containsKey("layout")) {
2465 layout = _json["layout"]; 2553 layout = _json["layout"];
2466 } 2554 }
2467 } 2555 }
2468 2556
2469 core.Map<core.String, core.Object> toJson() { 2557 core.Map<core.String, core.Object> toJson() {
2470 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2558 final core.Map<core.String, core.Object> _json =
2559 new core.Map<core.String, core.Object>();
2471 if (coverInfo != null) { 2560 if (coverInfo != null) {
2472 _json["coverInfo"] = (coverInfo).toJson(); 2561 _json["coverInfo"] = (coverInfo).toJson();
2473 } 2562 }
2474 if (coverPhoto != null) { 2563 if (coverPhoto != null) {
2475 _json["coverPhoto"] = (coverPhoto).toJson(); 2564 _json["coverPhoto"] = (coverPhoto).toJson();
2476 } 2565 }
2477 if (layout != null) { 2566 if (layout != null) {
2478 _json["layout"] = layout; 2567 _json["layout"] = layout;
2479 } 2568 }
2480 return _json; 2569 return _json;
2481 } 2570 }
2482 } 2571 }
2483 2572
2484 class PersonEmails { 2573 class PersonEmails {
2485 /** 2574 /// The type of address. Possible values include, but are not limited to, the
2486 * The type of address. Possible values include, but are not limited to, the 2575 /// following values:
2487 * following values: 2576 /// - "account" - Google account email address.
2488 * - "account" - Google account email address. 2577 /// - "home" - Home email address.
2489 * - "home" - Home email address. 2578 /// - "work" - Work email address.
2490 * - "work" - Work email address. 2579 /// - "other" - Other.
2491 * - "other" - Other.
2492 */
2493 core.String type; 2580 core.String type;
2494 /** The email address. */ 2581
2582 /// The email address.
2495 core.String value; 2583 core.String value;
2496 2584
2497 PersonEmails(); 2585 PersonEmails();
2498 2586
2499 PersonEmails.fromJson(core.Map _json) { 2587 PersonEmails.fromJson(core.Map _json) {
2500 if (_json.containsKey("type")) { 2588 if (_json.containsKey("type")) {
2501 type = _json["type"]; 2589 type = _json["type"];
2502 } 2590 }
2503 if (_json.containsKey("value")) { 2591 if (_json.containsKey("value")) {
2504 value = _json["value"]; 2592 value = _json["value"];
2505 } 2593 }
2506 } 2594 }
2507 2595
2508 core.Map<core.String, core.Object> toJson() { 2596 core.Map<core.String, core.Object> toJson() {
2509 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2597 final core.Map<core.String, core.Object> _json =
2598 new core.Map<core.String, core.Object>();
2510 if (type != null) { 2599 if (type != null) {
2511 _json["type"] = type; 2600 _json["type"] = type;
2512 } 2601 }
2513 if (value != null) { 2602 if (value != null) {
2514 _json["value"] = value; 2603 _json["value"] = value;
2515 } 2604 }
2516 return _json; 2605 return _json;
2517 } 2606 }
2518 } 2607 }
2519 2608
2520 /** The representation of the person's profile photo. */ 2609 /// The representation of the person's profile photo.
2521 class PersonImage { 2610 class PersonImage {
2522 /** Whether the person's profile photo is the default one */ 2611 /// Whether the person's profile photo is the default one
2523 core.bool isDefault; 2612 core.bool isDefault;
2524 /** 2613
2525 * The URL of the person's profile photo. To resize the image and crop it to a 2614 /// The URL of the person's profile photo. To resize the image and crop it to
2526 * square, append the query string ?sz=x, where x is the dimension in pixels 2615 /// a square, append the query string ?sz=x, where x is the dimension in
2527 * of each side. 2616 /// pixels of each side.
2528 */
2529 core.String url; 2617 core.String url;
2530 2618
2531 PersonImage(); 2619 PersonImage();
2532 2620
2533 PersonImage.fromJson(core.Map _json) { 2621 PersonImage.fromJson(core.Map _json) {
2534 if (_json.containsKey("isDefault")) { 2622 if (_json.containsKey("isDefault")) {
2535 isDefault = _json["isDefault"]; 2623 isDefault = _json["isDefault"];
2536 } 2624 }
2537 if (_json.containsKey("url")) { 2625 if (_json.containsKey("url")) {
2538 url = _json["url"]; 2626 url = _json["url"];
2539 } 2627 }
2540 } 2628 }
2541 2629
2542 core.Map<core.String, core.Object> toJson() { 2630 core.Map<core.String, core.Object> toJson() {
2543 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2631 final core.Map<core.String, core.Object> _json =
2632 new core.Map<core.String, core.Object>();
2544 if (isDefault != null) { 2633 if (isDefault != null) {
2545 _json["isDefault"] = isDefault; 2634 _json["isDefault"] = isDefault;
2546 } 2635 }
2547 if (url != null) { 2636 if (url != null) {
2548 _json["url"] = url; 2637 _json["url"] = url;
2549 } 2638 }
2550 return _json; 2639 return _json;
2551 } 2640 }
2552 } 2641 }
2553 2642
2554 /** 2643 /// An object representation of the individual components of a person's name.
2555 * An object representation of the individual components of a person's name.
2556 */
2557 class PersonName { 2644 class PersonName {
2558 /** The family name (last name) of this person. */ 2645 /// The family name (last name) of this person.
2559 core.String familyName; 2646 core.String familyName;
2560 /** The full name of this person, including middle names, suffixes, etc. */ 2647
2648 /// The full name of this person, including middle names, suffixes, etc.
2561 core.String formatted; 2649 core.String formatted;
2562 /** The given name (first name) of this person. */ 2650
2651 /// The given name (first name) of this person.
2563 core.String givenName; 2652 core.String givenName;
2564 /** The honorific prefixes (such as "Dr." or "Mrs.") for this person. */ 2653
2654 /// The honorific prefixes (such as "Dr." or "Mrs.") for this person.
2565 core.String honorificPrefix; 2655 core.String honorificPrefix;
2566 /** The honorific suffixes (such as "Jr.") for this person. */ 2656
2657 /// The honorific suffixes (such as "Jr.") for this person.
2567 core.String honorificSuffix; 2658 core.String honorificSuffix;
2568 /** The middle name of this person. */ 2659
2660 /// The middle name of this person.
2569 core.String middleName; 2661 core.String middleName;
2570 2662
2571 PersonName(); 2663 PersonName();
2572 2664
2573 PersonName.fromJson(core.Map _json) { 2665 PersonName.fromJson(core.Map _json) {
2574 if (_json.containsKey("familyName")) { 2666 if (_json.containsKey("familyName")) {
2575 familyName = _json["familyName"]; 2667 familyName = _json["familyName"];
2576 } 2668 }
2577 if (_json.containsKey("formatted")) { 2669 if (_json.containsKey("formatted")) {
2578 formatted = _json["formatted"]; 2670 formatted = _json["formatted"];
2579 } 2671 }
2580 if (_json.containsKey("givenName")) { 2672 if (_json.containsKey("givenName")) {
2581 givenName = _json["givenName"]; 2673 givenName = _json["givenName"];
2582 } 2674 }
2583 if (_json.containsKey("honorificPrefix")) { 2675 if (_json.containsKey("honorificPrefix")) {
2584 honorificPrefix = _json["honorificPrefix"]; 2676 honorificPrefix = _json["honorificPrefix"];
2585 } 2677 }
2586 if (_json.containsKey("honorificSuffix")) { 2678 if (_json.containsKey("honorificSuffix")) {
2587 honorificSuffix = _json["honorificSuffix"]; 2679 honorificSuffix = _json["honorificSuffix"];
2588 } 2680 }
2589 if (_json.containsKey("middleName")) { 2681 if (_json.containsKey("middleName")) {
2590 middleName = _json["middleName"]; 2682 middleName = _json["middleName"];
2591 } 2683 }
2592 } 2684 }
2593 2685
2594 core.Map<core.String, core.Object> toJson() { 2686 core.Map<core.String, core.Object> toJson() {
2595 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2687 final core.Map<core.String, core.Object> _json =
2688 new core.Map<core.String, core.Object>();
2596 if (familyName != null) { 2689 if (familyName != null) {
2597 _json["familyName"] = familyName; 2690 _json["familyName"] = familyName;
2598 } 2691 }
2599 if (formatted != null) { 2692 if (formatted != null) {
2600 _json["formatted"] = formatted; 2693 _json["formatted"] = formatted;
2601 } 2694 }
2602 if (givenName != null) { 2695 if (givenName != null) {
2603 _json["givenName"] = givenName; 2696 _json["givenName"] = givenName;
2604 } 2697 }
2605 if (honorificPrefix != null) { 2698 if (honorificPrefix != null) {
2606 _json["honorificPrefix"] = honorificPrefix; 2699 _json["honorificPrefix"] = honorificPrefix;
2607 } 2700 }
2608 if (honorificSuffix != null) { 2701 if (honorificSuffix != null) {
2609 _json["honorificSuffix"] = honorificSuffix; 2702 _json["honorificSuffix"] = honorificSuffix;
2610 } 2703 }
2611 if (middleName != null) { 2704 if (middleName != null) {
2612 _json["middleName"] = middleName; 2705 _json["middleName"] = middleName;
2613 } 2706 }
2614 return _json; 2707 return _json;
2615 } 2708 }
2616 } 2709 }
2617 2710
2618 class PersonOrganizations { 2711 class PersonOrganizations {
2619 /** The department within the organization. Deprecated. */ 2712 /// The department within the organization. Deprecated.
2620 core.String department; 2713 core.String department;
2621 /** 2714
2622 * A short description of the person's role in this organization. Deprecated. 2715 /// A short description of the person's role in this organization.
2623 */ 2716 /// Deprecated.
2624 core.String description; 2717 core.String description;
2625 /** The date that the person left this organization. */ 2718
2719 /// The date that the person left this organization.
2626 core.String endDate; 2720 core.String endDate;
2627 /** The location of this organization. Deprecated. */ 2721
2722 /// The location of this organization. Deprecated.
2628 core.String location; 2723 core.String location;
2629 /** The name of the organization. */ 2724
2725 /// The name of the organization.
2630 core.String name; 2726 core.String name;
2631 /** 2727
2632 * If "true", indicates this organization is the person's primary one, which 2728 /// If "true", indicates this organization is the person's primary one, which
2633 * is typically interpreted as the current one. 2729 /// is typically interpreted as the current one.
2634 */
2635 core.bool primary; 2730 core.bool primary;
2636 /** The date that the person joined this organization. */ 2731
2732 /// The date that the person joined this organization.
2637 core.String startDate; 2733 core.String startDate;
2638 /** The person's job title or role within the organization. */ 2734
2735 /// The person's job title or role within the organization.
2639 core.String title; 2736 core.String title;
2640 /** 2737
2641 * The type of organization. Possible values include, but are not limited to, 2738 /// The type of organization. Possible values include, but are not limited
2642 * the following values: 2739 /// to, the following values:
2643 * - "work" - Work. 2740 /// - "work" - Work.
2644 * - "school" - School. 2741 /// - "school" - School.
2645 */
2646 core.String type; 2742 core.String type;
2647 2743
2648 PersonOrganizations(); 2744 PersonOrganizations();
2649 2745
2650 PersonOrganizations.fromJson(core.Map _json) { 2746 PersonOrganizations.fromJson(core.Map _json) {
2651 if (_json.containsKey("department")) { 2747 if (_json.containsKey("department")) {
2652 department = _json["department"]; 2748 department = _json["department"];
2653 } 2749 }
2654 if (_json.containsKey("description")) { 2750 if (_json.containsKey("description")) {
2655 description = _json["description"]; 2751 description = _json["description"];
(...skipping 15 matching lines...) Expand all
2671 } 2767 }
2672 if (_json.containsKey("title")) { 2768 if (_json.containsKey("title")) {
2673 title = _json["title"]; 2769 title = _json["title"];
2674 } 2770 }
2675 if (_json.containsKey("type")) { 2771 if (_json.containsKey("type")) {
2676 type = _json["type"]; 2772 type = _json["type"];
2677 } 2773 }
2678 } 2774 }
2679 2775
2680 core.Map<core.String, core.Object> toJson() { 2776 core.Map<core.String, core.Object> toJson() {
2681 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2777 final core.Map<core.String, core.Object> _json =
2778 new core.Map<core.String, core.Object>();
2682 if (department != null) { 2779 if (department != null) {
2683 _json["department"] = department; 2780 _json["department"] = department;
2684 } 2781 }
2685 if (description != null) { 2782 if (description != null) {
2686 _json["description"] = description; 2783 _json["description"] = description;
2687 } 2784 }
2688 if (endDate != null) { 2785 if (endDate != null) {
2689 _json["endDate"] = endDate; 2786 _json["endDate"] = endDate;
2690 } 2787 }
2691 if (location != null) { 2788 if (location != null) {
(...skipping 12 matching lines...) Expand all
2704 _json["title"] = title; 2801 _json["title"] = title;
2705 } 2802 }
2706 if (type != null) { 2803 if (type != null) {
2707 _json["type"] = type; 2804 _json["type"] = type;
2708 } 2805 }
2709 return _json; 2806 return _json;
2710 } 2807 }
2711 } 2808 }
2712 2809
2713 class PersonPlacesLived { 2810 class PersonPlacesLived {
2714 /** If "true", this place of residence is this person's primary residence. */ 2811 /// If "true", this place of residence is this person's primary residence.
2715 core.bool primary; 2812 core.bool primary;
2716 /** 2813
2717 * A place where this person has lived. For example: "Seattle, WA", "Near 2814 /// A place where this person has lived. For example: "Seattle, WA", "Near
2718 * Toronto". 2815 /// Toronto".
2719 */
2720 core.String value; 2816 core.String value;
2721 2817
2722 PersonPlacesLived(); 2818 PersonPlacesLived();
2723 2819
2724 PersonPlacesLived.fromJson(core.Map _json) { 2820 PersonPlacesLived.fromJson(core.Map _json) {
2725 if (_json.containsKey("primary")) { 2821 if (_json.containsKey("primary")) {
2726 primary = _json["primary"]; 2822 primary = _json["primary"];
2727 } 2823 }
2728 if (_json.containsKey("value")) { 2824 if (_json.containsKey("value")) {
2729 value = _json["value"]; 2825 value = _json["value"];
2730 } 2826 }
2731 } 2827 }
2732 2828
2733 core.Map<core.String, core.Object> toJson() { 2829 core.Map<core.String, core.Object> toJson() {
2734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2830 final core.Map<core.String, core.Object> _json =
2831 new core.Map<core.String, core.Object>();
2735 if (primary != null) { 2832 if (primary != null) {
2736 _json["primary"] = primary; 2833 _json["primary"] = primary;
2737 } 2834 }
2738 if (value != null) { 2835 if (value != null) {
2739 _json["value"] = value; 2836 _json["value"] = value;
2740 } 2837 }
2741 return _json; 2838 return _json;
2742 } 2839 }
2743 } 2840 }
2744 2841
2745 class PersonUrls { 2842 class PersonUrls {
2746 /** The label of the URL. */ 2843 /// The label of the URL.
2747 core.String label; 2844 core.String label;
2748 /** 2845
2749 * The type of URL. Possible values include, but are not limited to, the 2846 /// The type of URL. Possible values include, but are not limited to, the
2750 * following values: 2847 /// following values:
2751 * - "otherProfile" - URL for another profile. 2848 /// - "otherProfile" - URL for another profile.
2752 * - "contributor" - URL to a site for which this person is a contributor. 2849 /// - "contributor" - URL to a site for which this person is a contributor.
2753 * - "website" - URL for this Google+ Page's primary website. 2850 /// - "website" - URL for this Google+ Page's primary website.
2754 * - "other" - Other URL. 2851 /// - "other" - Other URL.
2755 */
2756 core.String type; 2852 core.String type;
2757 /** The URL value. */ 2853
2854 /// The URL value.
2758 core.String value; 2855 core.String value;
2759 2856
2760 PersonUrls(); 2857 PersonUrls();
2761 2858
2762 PersonUrls.fromJson(core.Map _json) { 2859 PersonUrls.fromJson(core.Map _json) {
2763 if (_json.containsKey("label")) { 2860 if (_json.containsKey("label")) {
2764 label = _json["label"]; 2861 label = _json["label"];
2765 } 2862 }
2766 if (_json.containsKey("type")) { 2863 if (_json.containsKey("type")) {
2767 type = _json["type"]; 2864 type = _json["type"];
2768 } 2865 }
2769 if (_json.containsKey("value")) { 2866 if (_json.containsKey("value")) {
2770 value = _json["value"]; 2867 value = _json["value"];
2771 } 2868 }
2772 } 2869 }
2773 2870
2774 core.Map<core.String, core.Object> toJson() { 2871 core.Map<core.String, core.Object> toJson() {
2775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2872 final core.Map<core.String, core.Object> _json =
2873 new core.Map<core.String, core.Object>();
2776 if (label != null) { 2874 if (label != null) {
2777 _json["label"] = label; 2875 _json["label"] = label;
2778 } 2876 }
2779 if (type != null) { 2877 if (type != null) {
2780 _json["type"] = type; 2878 _json["type"] = type;
2781 } 2879 }
2782 if (value != null) { 2880 if (value != null) {
2783 _json["value"] = value; 2881 _json["value"] = value;
2784 } 2882 }
2785 return _json; 2883 return _json;
2786 } 2884 }
2787 } 2885 }
2788 2886
2789 class Person { 2887 class Person {
2790 /** A short biography for this person. */ 2888 /// A short biography for this person.
2791 core.String aboutMe; 2889 core.String aboutMe;
2792 /** 2890
2793 * The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 2891 /// The age range of the person. Valid ranges are 17 or younger, 18 to 20,
2794 * 21 or older. Age is determined from the user's birthday using Western age 2892 /// and 21 or older. Age is determined from the user's birthday using Western
2795 * reckoning. 2893 /// age reckoning.
2796 */
2797 PersonAgeRange ageRange; 2894 PersonAgeRange ageRange;
2798 /** The person's date of birth, represented as YYYY-MM-DD. */ 2895
2896 /// The person's date of birth, represented as YYYY-MM-DD.
2799 core.String birthday; 2897 core.String birthday;
2800 /** The "bragging rights" line of this person. */ 2898
2899 /// The "bragging rights" line of this person.
2801 core.String braggingRights; 2900 core.String braggingRights;
2802 /** 2901
2803 * For followers who are visible, the number of people who have added this 2902 /// For followers who are visible, the number of people who have added this
2804 * person or page to a circle. 2903 /// person or page to a circle.
2805 */
2806 core.int circledByCount; 2904 core.int circledByCount;
2807 /** The cover photo content. */ 2905
2906 /// The cover photo content.
2808 PersonCover cover; 2907 PersonCover cover;
2809 /** (this field is not currently used) */ 2908
2909 /// (this field is not currently used)
2810 core.String currentLocation; 2910 core.String currentLocation;
2811 /** The name of this person, which is suitable for display. */ 2911
2912 /// The name of this person, which is suitable for display.
2812 core.String displayName; 2913 core.String displayName;
2813 /** 2914
2814 * The hosted domain name for the user's Google Apps account. For instance, 2915 /// The hosted domain name for the user's Google Apps account. For instance,
2815 * example.com. The plus.profile.emails.read or email scope is needed to get 2916 /// example.com. The plus.profile.emails.read or email scope is needed to get
2816 * this domain name. 2917 /// this domain name.
2817 */
2818 core.String domain; 2918 core.String domain;
2819 /** 2919
2820 * A list of email addresses that this person has, including their Google 2920 /// A list of email addresses that this person has, including their Google
2821 * account email address, and the public verified email addresses on their 2921 /// account email address, and the public verified email addresses on their
2822 * Google+ profile. The plus.profile.emails.read scope is needed to retrieve 2922 /// Google+ profile. The plus.profile.emails.read scope is needed to retrieve
2823 * these email addresses, or the email scope can be used to retrieve just the 2923 /// these email addresses, or the email scope can be used to retrieve just
2824 * Google account email address. 2924 /// the Google account email address.
2825 */
2826 core.List<PersonEmails> emails; 2925 core.List<PersonEmails> emails;
2827 /** ETag of this response for caching purposes. */ 2926
2927 /// ETag of this response for caching purposes.
2828 core.String etag; 2928 core.String etag;
2829 /** 2929
2830 * The person's gender. Possible values include, but are not limited to, the 2930 /// The person's gender. Possible values include, but are not limited to, the
2831 * following values: 2931 /// following values:
2832 * - "male" - Male gender. 2932 /// - "male" - Male gender.
2833 * - "female" - Female gender. 2933 /// - "female" - Female gender.
2834 * - "other" - Other. 2934 /// - "other" - Other.
2835 */
2836 core.String gender; 2935 core.String gender;
2837 /** The ID of this person. */ 2936
2937 /// The ID of this person.
2838 core.String id; 2938 core.String id;
2839 /** The representation of the person's profile photo. */ 2939
2940 /// The representation of the person's profile photo.
2840 PersonImage image; 2941 PersonImage image;
2841 /** Whether this user has signed up for Google+. */ 2942
2943 /// Whether this user has signed up for Google+.
2842 core.bool isPlusUser; 2944 core.bool isPlusUser;
2843 /** Identifies this resource as a person. Value: "plus#person". */ 2945
2946 /// Identifies this resource as a person. Value: "plus#person".
2844 core.String kind; 2947 core.String kind;
2845 /** The user's preferred language for rendering. */ 2948
2949 /// The user's preferred language for rendering.
2846 core.String language; 2950 core.String language;
2847 /** 2951
2848 * An object representation of the individual components of a person's name. 2952 /// An object representation of the individual components of a person's name.
2849 */
2850 PersonName name; 2953 PersonName name;
2851 /** The nickname of this person. */ 2954
2955 /// The nickname of this person.
2852 core.String nickname; 2956 core.String nickname;
2853 /** 2957
2854 * Type of person within Google+. Possible values include, but are not limited 2958 /// Type of person within Google+. Possible values include, but are not
2855 * to, the following values: 2959 /// limited to, the following values:
2856 * - "person" - represents an actual person. 2960 /// - "person" - represents an actual person.
2857 * - "page" - represents a page. 2961 /// - "page" - represents a page.
2858 */
2859 core.String objectType; 2962 core.String objectType;
2860 /** The occupation of this person. */ 2963
2964 /// The occupation of this person.
2861 core.String occupation; 2965 core.String occupation;
2862 /** 2966
2863 * A list of current or past organizations with which this person is 2967 /// A list of current or past organizations with which this person is
2864 * associated. 2968 /// associated.
2865 */
2866 core.List<PersonOrganizations> organizations; 2969 core.List<PersonOrganizations> organizations;
2867 /** A list of places where this person has lived. */ 2970
2971 /// A list of places where this person has lived.
2868 core.List<PersonPlacesLived> placesLived; 2972 core.List<PersonPlacesLived> placesLived;
2869 /** If a Google+ Page, the number of people who have +1'd this page. */ 2973
2974 /// If a Google+ Page, the number of people who have +1'd this page.
2870 core.int plusOneCount; 2975 core.int plusOneCount;
2871 /** 2976
2872 * The person's relationship status. Possible values include, but are not 2977 /// The person's relationship status. Possible values include, but are not
2873 * limited to, the following values: 2978 /// limited to, the following values:
2874 * - "single" - Person is single. 2979 /// - "single" - Person is single.
2875 * - "in_a_relationship" - Person is in a relationship. 2980 /// - "in_a_relationship" - Person is in a relationship.
2876 * - "engaged" - Person is engaged. 2981 /// - "engaged" - Person is engaged.
2877 * - "married" - Person is married. 2982 /// - "married" - Person is married.
2878 * - "its_complicated" - The relationship is complicated. 2983 /// - "its_complicated" - The relationship is complicated.
2879 * - "open_relationship" - Person is in an open relationship. 2984 /// - "open_relationship" - Person is in an open relationship.
2880 * - "widowed" - Person is widowed. 2985 /// - "widowed" - Person is widowed.
2881 * - "in_domestic_partnership" - Person is in a domestic partnership. 2986 /// - "in_domestic_partnership" - Person is in a domestic partnership.
2882 * - "in_civil_union" - Person is in a civil union. 2987 /// - "in_civil_union" - Person is in a civil union.
2883 */
2884 core.String relationshipStatus; 2988 core.String relationshipStatus;
2885 /** The person's skills. */ 2989
2990 /// The person's skills.
2886 core.String skills; 2991 core.String skills;
2887 /** The brief description (tagline) of this person. */ 2992
2993 /// The brief description (tagline) of this person.
2888 core.String tagline; 2994 core.String tagline;
2889 /** The URL of this person's profile. */ 2995
2996 /// The URL of this person's profile.
2890 core.String url; 2997 core.String url;
2891 /** A list of URLs for this person. */ 2998
2999 /// A list of URLs for this person.
2892 core.List<PersonUrls> urls; 3000 core.List<PersonUrls> urls;
2893 /** Whether the person or Google+ Page has been verified. */ 3001
3002 /// Whether the person or Google+ Page has been verified.
2894 core.bool verified; 3003 core.bool verified;
2895 3004
2896 Person(); 3005 Person();
2897 3006
2898 Person.fromJson(core.Map _json) { 3007 Person.fromJson(core.Map _json) {
2899 if (_json.containsKey("aboutMe")) { 3008 if (_json.containsKey("aboutMe")) {
2900 aboutMe = _json["aboutMe"]; 3009 aboutMe = _json["aboutMe"];
2901 } 3010 }
2902 if (_json.containsKey("ageRange")) { 3011 if (_json.containsKey("ageRange")) {
2903 ageRange = new PersonAgeRange.fromJson(_json["ageRange"]); 3012 ageRange = new PersonAgeRange.fromJson(_json["ageRange"]);
(...skipping 13 matching lines...) Expand all
2917 if (_json.containsKey("currentLocation")) { 3026 if (_json.containsKey("currentLocation")) {
2918 currentLocation = _json["currentLocation"]; 3027 currentLocation = _json["currentLocation"];
2919 } 3028 }
2920 if (_json.containsKey("displayName")) { 3029 if (_json.containsKey("displayName")) {
2921 displayName = _json["displayName"]; 3030 displayName = _json["displayName"];
2922 } 3031 }
2923 if (_json.containsKey("domain")) { 3032 if (_json.containsKey("domain")) {
2924 domain = _json["domain"]; 3033 domain = _json["domain"];
2925 } 3034 }
2926 if (_json.containsKey("emails")) { 3035 if (_json.containsKey("emails")) {
2927 emails = _json["emails"].map((value) => new PersonEmails.fromJson(value)). toList(); 3036 emails = _json["emails"]
3037 .map((value) => new PersonEmails.fromJson(value))
3038 .toList();
2928 } 3039 }
2929 if (_json.containsKey("etag")) { 3040 if (_json.containsKey("etag")) {
2930 etag = _json["etag"]; 3041 etag = _json["etag"];
2931 } 3042 }
2932 if (_json.containsKey("gender")) { 3043 if (_json.containsKey("gender")) {
2933 gender = _json["gender"]; 3044 gender = _json["gender"];
2934 } 3045 }
2935 if (_json.containsKey("id")) { 3046 if (_json.containsKey("id")) {
2936 id = _json["id"]; 3047 id = _json["id"];
2937 } 3048 }
(...skipping 15 matching lines...) Expand all
2953 if (_json.containsKey("nickname")) { 3064 if (_json.containsKey("nickname")) {
2954 nickname = _json["nickname"]; 3065 nickname = _json["nickname"];
2955 } 3066 }
2956 if (_json.containsKey("objectType")) { 3067 if (_json.containsKey("objectType")) {
2957 objectType = _json["objectType"]; 3068 objectType = _json["objectType"];
2958 } 3069 }
2959 if (_json.containsKey("occupation")) { 3070 if (_json.containsKey("occupation")) {
2960 occupation = _json["occupation"]; 3071 occupation = _json["occupation"];
2961 } 3072 }
2962 if (_json.containsKey("organizations")) { 3073 if (_json.containsKey("organizations")) {
2963 organizations = _json["organizations"].map((value) => new PersonOrganizati ons.fromJson(value)).toList(); 3074 organizations = _json["organizations"]
3075 .map((value) => new PersonOrganizations.fromJson(value))
3076 .toList();
2964 } 3077 }
2965 if (_json.containsKey("placesLived")) { 3078 if (_json.containsKey("placesLived")) {
2966 placesLived = _json["placesLived"].map((value) => new PersonPlacesLived.fr omJson(value)).toList(); 3079 placesLived = _json["placesLived"]
3080 .map((value) => new PersonPlacesLived.fromJson(value))
3081 .toList();
2967 } 3082 }
2968 if (_json.containsKey("plusOneCount")) { 3083 if (_json.containsKey("plusOneCount")) {
2969 plusOneCount = _json["plusOneCount"]; 3084 plusOneCount = _json["plusOneCount"];
2970 } 3085 }
2971 if (_json.containsKey("relationshipStatus")) { 3086 if (_json.containsKey("relationshipStatus")) {
2972 relationshipStatus = _json["relationshipStatus"]; 3087 relationshipStatus = _json["relationshipStatus"];
2973 } 3088 }
2974 if (_json.containsKey("skills")) { 3089 if (_json.containsKey("skills")) {
2975 skills = _json["skills"]; 3090 skills = _json["skills"];
2976 } 3091 }
2977 if (_json.containsKey("tagline")) { 3092 if (_json.containsKey("tagline")) {
2978 tagline = _json["tagline"]; 3093 tagline = _json["tagline"];
2979 } 3094 }
2980 if (_json.containsKey("url")) { 3095 if (_json.containsKey("url")) {
2981 url = _json["url"]; 3096 url = _json["url"];
2982 } 3097 }
2983 if (_json.containsKey("urls")) { 3098 if (_json.containsKey("urls")) {
2984 urls = _json["urls"].map((value) => new PersonUrls.fromJson(value)).toList (); 3099 urls =
3100 _json["urls"].map((value) => new PersonUrls.fromJson(value)).toList();
2985 } 3101 }
2986 if (_json.containsKey("verified")) { 3102 if (_json.containsKey("verified")) {
2987 verified = _json["verified"]; 3103 verified = _json["verified"];
2988 } 3104 }
2989 } 3105 }
2990 3106
2991 core.Map<core.String, core.Object> toJson() { 3107 core.Map<core.String, core.Object> toJson() {
2992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3108 final core.Map<core.String, core.Object> _json =
3109 new core.Map<core.String, core.Object>();
2993 if (aboutMe != null) { 3110 if (aboutMe != null) {
2994 _json["aboutMe"] = aboutMe; 3111 _json["aboutMe"] = aboutMe;
2995 } 3112 }
2996 if (ageRange != null) { 3113 if (ageRange != null) {
2997 _json["ageRange"] = (ageRange).toJson(); 3114 _json["ageRange"] = (ageRange).toJson();
2998 } 3115 }
2999 if (birthday != null) { 3116 if (birthday != null) {
3000 _json["birthday"] = birthday; 3117 _json["birthday"] = birthday;
3001 } 3118 }
3002 if (braggingRights != null) { 3119 if (braggingRights != null) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
3047 if (nickname != null) { 3164 if (nickname != null) {
3048 _json["nickname"] = nickname; 3165 _json["nickname"] = nickname;
3049 } 3166 }
3050 if (objectType != null) { 3167 if (objectType != null) {
3051 _json["objectType"] = objectType; 3168 _json["objectType"] = objectType;
3052 } 3169 }
3053 if (occupation != null) { 3170 if (occupation != null) {
3054 _json["occupation"] = occupation; 3171 _json["occupation"] = occupation;
3055 } 3172 }
3056 if (organizations != null) { 3173 if (organizations != null) {
3057 _json["organizations"] = organizations.map((value) => (value).toJson()).to List(); 3174 _json["organizations"] =
3175 organizations.map((value) => (value).toJson()).toList();
3058 } 3176 }
3059 if (placesLived != null) { 3177 if (placesLived != null) {
3060 _json["placesLived"] = placesLived.map((value) => (value).toJson()).toList (); 3178 _json["placesLived"] =
3179 placesLived.map((value) => (value).toJson()).toList();
3061 } 3180 }
3062 if (plusOneCount != null) { 3181 if (plusOneCount != null) {
3063 _json["plusOneCount"] = plusOneCount; 3182 _json["plusOneCount"] = plusOneCount;
3064 } 3183 }
3065 if (relationshipStatus != null) { 3184 if (relationshipStatus != null) {
3066 _json["relationshipStatus"] = relationshipStatus; 3185 _json["relationshipStatus"] = relationshipStatus;
3067 } 3186 }
3068 if (skills != null) { 3187 if (skills != null) {
3069 _json["skills"] = skills; 3188 _json["skills"] = skills;
3070 } 3189 }
3071 if (tagline != null) { 3190 if (tagline != null) {
3072 _json["tagline"] = tagline; 3191 _json["tagline"] = tagline;
3073 } 3192 }
3074 if (url != null) { 3193 if (url != null) {
3075 _json["url"] = url; 3194 _json["url"] = url;
3076 } 3195 }
3077 if (urls != null) { 3196 if (urls != null) {
3078 _json["urls"] = urls.map((value) => (value).toJson()).toList(); 3197 _json["urls"] = urls.map((value) => (value).toJson()).toList();
3079 } 3198 }
3080 if (verified != null) { 3199 if (verified != null) {
3081 _json["verified"] = verified; 3200 _json["verified"] = verified;
3082 } 3201 }
3083 return _json; 3202 return _json;
3084 } 3203 }
3085 } 3204 }
3086 3205
3087 /** The physical address of the place. */ 3206 /// The physical address of the place.
3088 class PlaceAddress { 3207 class PlaceAddress {
3089 /** The formatted address for display. */ 3208 /// The formatted address for display.
3090 core.String formatted; 3209 core.String formatted;
3091 3210
3092 PlaceAddress(); 3211 PlaceAddress();
3093 3212
3094 PlaceAddress.fromJson(core.Map _json) { 3213 PlaceAddress.fromJson(core.Map _json) {
3095 if (_json.containsKey("formatted")) { 3214 if (_json.containsKey("formatted")) {
3096 formatted = _json["formatted"]; 3215 formatted = _json["formatted"];
3097 } 3216 }
3098 } 3217 }
3099 3218
3100 core.Map<core.String, core.Object> toJson() { 3219 core.Map<core.String, core.Object> toJson() {
3101 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3220 final core.Map<core.String, core.Object> _json =
3221 new core.Map<core.String, core.Object>();
3102 if (formatted != null) { 3222 if (formatted != null) {
3103 _json["formatted"] = formatted; 3223 _json["formatted"] = formatted;
3104 } 3224 }
3105 return _json; 3225 return _json;
3106 } 3226 }
3107 } 3227 }
3108 3228
3109 /** The position of the place. */ 3229 /// The position of the place.
3110 class PlacePosition { 3230 class PlacePosition {
3111 /** The latitude of this position. */ 3231 /// The latitude of this position.
3112 core.double latitude; 3232 core.double latitude;
3113 /** The longitude of this position. */ 3233
3234 /// The longitude of this position.
3114 core.double longitude; 3235 core.double longitude;
3115 3236
3116 PlacePosition(); 3237 PlacePosition();
3117 3238
3118 PlacePosition.fromJson(core.Map _json) { 3239 PlacePosition.fromJson(core.Map _json) {
3119 if (_json.containsKey("latitude")) { 3240 if (_json.containsKey("latitude")) {
3120 latitude = _json["latitude"]; 3241 latitude = _json["latitude"];
3121 } 3242 }
3122 if (_json.containsKey("longitude")) { 3243 if (_json.containsKey("longitude")) {
3123 longitude = _json["longitude"]; 3244 longitude = _json["longitude"];
3124 } 3245 }
3125 } 3246 }
3126 3247
3127 core.Map<core.String, core.Object> toJson() { 3248 core.Map<core.String, core.Object> toJson() {
3128 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3249 final core.Map<core.String, core.Object> _json =
3250 new core.Map<core.String, core.Object>();
3129 if (latitude != null) { 3251 if (latitude != null) {
3130 _json["latitude"] = latitude; 3252 _json["latitude"] = latitude;
3131 } 3253 }
3132 if (longitude != null) { 3254 if (longitude != null) {
3133 _json["longitude"] = longitude; 3255 _json["longitude"] = longitude;
3134 } 3256 }
3135 return _json; 3257 return _json;
3136 } 3258 }
3137 } 3259 }
3138 3260
3139 class Place { 3261 class Place {
3140 /** The physical address of the place. */ 3262 /// The physical address of the place.
3141 PlaceAddress address; 3263 PlaceAddress address;
3142 /** The display name of the place. */ 3264
3265 /// The display name of the place.
3143 core.String displayName; 3266 core.String displayName;
3144 /** The id of the place. */ 3267
3268 /// The id of the place.
3145 core.String id; 3269 core.String id;
3146 /** Identifies this resource as a place. Value: "plus#place". */ 3270
3271 /// Identifies this resource as a place. Value: "plus#place".
3147 core.String kind; 3272 core.String kind;
3148 /** The position of the place. */ 3273
3274 /// The position of the place.
3149 PlacePosition position; 3275 PlacePosition position;
3150 3276
3151 Place(); 3277 Place();
3152 3278
3153 Place.fromJson(core.Map _json) { 3279 Place.fromJson(core.Map _json) {
3154 if (_json.containsKey("address")) { 3280 if (_json.containsKey("address")) {
3155 address = new PlaceAddress.fromJson(_json["address"]); 3281 address = new PlaceAddress.fromJson(_json["address"]);
3156 } 3282 }
3157 if (_json.containsKey("displayName")) { 3283 if (_json.containsKey("displayName")) {
3158 displayName = _json["displayName"]; 3284 displayName = _json["displayName"];
3159 } 3285 }
3160 if (_json.containsKey("id")) { 3286 if (_json.containsKey("id")) {
3161 id = _json["id"]; 3287 id = _json["id"];
3162 } 3288 }
3163 if (_json.containsKey("kind")) { 3289 if (_json.containsKey("kind")) {
3164 kind = _json["kind"]; 3290 kind = _json["kind"];
3165 } 3291 }
3166 if (_json.containsKey("position")) { 3292 if (_json.containsKey("position")) {
3167 position = new PlacePosition.fromJson(_json["position"]); 3293 position = new PlacePosition.fromJson(_json["position"]);
3168 } 3294 }
3169 } 3295 }
3170 3296
3171 core.Map<core.String, core.Object> toJson() { 3297 core.Map<core.String, core.Object> toJson() {
3172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3298 final core.Map<core.String, core.Object> _json =
3299 new core.Map<core.String, core.Object>();
3173 if (address != null) { 3300 if (address != null) {
3174 _json["address"] = (address).toJson(); 3301 _json["address"] = (address).toJson();
3175 } 3302 }
3176 if (displayName != null) { 3303 if (displayName != null) {
3177 _json["displayName"] = displayName; 3304 _json["displayName"] = displayName;
3178 } 3305 }
3179 if (id != null) { 3306 if (id != null) {
3180 _json["id"] = id; 3307 _json["id"] = id;
3181 } 3308 }
3182 if (kind != null) { 3309 if (kind != null) {
3183 _json["kind"] = kind; 3310 _json["kind"] = kind;
3184 } 3311 }
3185 if (position != null) { 3312 if (position != null) {
3186 _json["position"] = (position).toJson(); 3313 _json["position"] = (position).toJson();
3187 } 3314 }
3188 return _json; 3315 return _json;
3189 } 3316 }
3190 } 3317 }
3191 3318
3192 class PlusAclentryResource { 3319 class PlusAclentryResource {
3193 /** A descriptive name for this entry. Suitable for display. */ 3320 /// A descriptive name for this entry. Suitable for display.
3194 core.String displayName; 3321 core.String displayName;
3195 /** 3322
3196 * The ID of the entry. For entries of type "person" or "circle", this is the 3323 /// The ID of the entry. For entries of type "person" or "circle", this is
3197 * ID of the resource. For other types, this property is not set. 3324 /// the ID of the resource. For other types, this property is not set.
3198 */
3199 core.String id; 3325 core.String id;
3200 /** 3326
3201 * The type of entry describing to whom access is granted. Possible values 3327 /// The type of entry describing to whom access is granted. Possible values
3202 * are: 3328 /// are:
3203 * - "person" - Access to an individual. 3329 /// - "person" - Access to an individual.
3204 * - "circle" - Access to members of a circle. 3330 /// - "circle" - Access to members of a circle.
3205 * - "myCircles" - Access to members of all the person's circles. 3331 /// - "myCircles" - Access to members of all the person's circles.
3206 * - "extendedCircles" - Access to members of all the person's circles, plus 3332 /// - "extendedCircles" - Access to members of all the person's circles, plus
3207 * all of the people in their circles. 3333 /// all of the people in their circles.
3208 * - "domain" - Access to members of the person's Google Apps domain. 3334 /// - "domain" - Access to members of the person's Google Apps domain.
3209 * - "public" - Access to anyone on the web. 3335 /// - "public" - Access to anyone on the web.
3210 */
3211 core.String type; 3336 core.String type;
3212 3337
3213 PlusAclentryResource(); 3338 PlusAclentryResource();
3214 3339
3215 PlusAclentryResource.fromJson(core.Map _json) { 3340 PlusAclentryResource.fromJson(core.Map _json) {
3216 if (_json.containsKey("displayName")) { 3341 if (_json.containsKey("displayName")) {
3217 displayName = _json["displayName"]; 3342 displayName = _json["displayName"];
3218 } 3343 }
3219 if (_json.containsKey("id")) { 3344 if (_json.containsKey("id")) {
3220 id = _json["id"]; 3345 id = _json["id"];
3221 } 3346 }
3222 if (_json.containsKey("type")) { 3347 if (_json.containsKey("type")) {
3223 type = _json["type"]; 3348 type = _json["type"];
3224 } 3349 }
3225 } 3350 }
3226 3351
3227 core.Map<core.String, core.Object> toJson() { 3352 core.Map<core.String, core.Object> toJson() {
3228 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3353 final core.Map<core.String, core.Object> _json =
3354 new core.Map<core.String, core.Object>();
3229 if (displayName != null) { 3355 if (displayName != null) {
3230 _json["displayName"] = displayName; 3356 _json["displayName"] = displayName;
3231 } 3357 }
3232 if (id != null) { 3358 if (id != null) {
3233 _json["id"] = id; 3359 _json["id"] = id;
3234 } 3360 }
3235 if (type != null) { 3361 if (type != null) {
3236 _json["type"] = type; 3362 _json["type"] = type;
3237 } 3363 }
3238 return _json; 3364 return _json;
3239 } 3365 }
3240 } 3366 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/playmoviespartner/v1.dart ('k') | generated/googleapis/lib/plusdomains/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698