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

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

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « generated/googleapis/lib/appengine/v1.dart ('k') | generated/googleapis/lib/appstate/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.appsactivity.v1; 3 library googleapis.appsactivity.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 Activity.fromJson(core.Map _json) { 152 Activity.fromJson(core.Map _json) {
153 if (_json.containsKey("combinedEvent")) { 153 if (_json.containsKey("combinedEvent")) {
154 combinedEvent = new Event.fromJson(_json["combinedEvent"]); 154 combinedEvent = new Event.fromJson(_json["combinedEvent"]);
155 } 155 }
156 if (_json.containsKey("singleEvents")) { 156 if (_json.containsKey("singleEvents")) {
157 singleEvents = _json["singleEvents"].map((value) => new Event.fromJson(val ue)).toList(); 157 singleEvents = _json["singleEvents"].map((value) => new Event.fromJson(val ue)).toList();
158 } 158 }
159 } 159 }
160 160
161 core.Map toJson() { 161 core.Map<core.String, core.Object> toJson() {
162 var _json = new core.Map(); 162 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
163 if (combinedEvent != null) { 163 if (combinedEvent != null) {
164 _json["combinedEvent"] = (combinedEvent).toJson(); 164 _json["combinedEvent"] = (combinedEvent).toJson();
165 } 165 }
166 if (singleEvents != null) { 166 if (singleEvents != null) {
167 _json["singleEvents"] = singleEvents.map((value) => (value).toJson()).toLi st(); 167 _json["singleEvents"] = singleEvents.map((value) => (value).toJson()).toLi st();
168 } 168 }
169 return _json; 169 return _json;
170 } 170 }
171 } 171 }
172 172
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 rename = new Rename.fromJson(_json["rename"]); 245 rename = new Rename.fromJson(_json["rename"]);
246 } 246 }
247 if (_json.containsKey("target")) { 247 if (_json.containsKey("target")) {
248 target = new Target.fromJson(_json["target"]); 248 target = new Target.fromJson(_json["target"]);
249 } 249 }
250 if (_json.containsKey("user")) { 250 if (_json.containsKey("user")) {
251 user = new User.fromJson(_json["user"]); 251 user = new User.fromJson(_json["user"]);
252 } 252 }
253 } 253 }
254 254
255 core.Map toJson() { 255 core.Map<core.String, core.Object> toJson() {
256 var _json = new core.Map(); 256 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
257 if (additionalEventTypes != null) { 257 if (additionalEventTypes != null) {
258 _json["additionalEventTypes"] = additionalEventTypes; 258 _json["additionalEventTypes"] = additionalEventTypes;
259 } 259 }
260 if (eventTimeMillis != null) { 260 if (eventTimeMillis != null) {
261 _json["eventTimeMillis"] = eventTimeMillis; 261 _json["eventTimeMillis"] = eventTimeMillis;
262 } 262 }
263 if (fromUserDeletion != null) { 263 if (fromUserDeletion != null) {
264 _json["fromUserDeletion"] = fromUserDeletion; 264 _json["fromUserDeletion"] = fromUserDeletion;
265 } 265 }
266 if (move != null) { 266 if (move != null) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 299
300 ListActivitiesResponse.fromJson(core.Map _json) { 300 ListActivitiesResponse.fromJson(core.Map _json) {
301 if (_json.containsKey("activities")) { 301 if (_json.containsKey("activities")) {
302 activities = _json["activities"].map((value) => new Activity.fromJson(valu e)).toList(); 302 activities = _json["activities"].map((value) => new Activity.fromJson(valu e)).toList();
303 } 303 }
304 if (_json.containsKey("nextPageToken")) { 304 if (_json.containsKey("nextPageToken")) {
305 nextPageToken = _json["nextPageToken"]; 305 nextPageToken = _json["nextPageToken"];
306 } 306 }
307 } 307 }
308 308
309 core.Map toJson() { 309 core.Map<core.String, core.Object> toJson() {
310 var _json = new core.Map(); 310 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
311 if (activities != null) { 311 if (activities != null) {
312 _json["activities"] = activities.map((value) => (value).toJson()).toList() ; 312 _json["activities"] = activities.map((value) => (value).toJson()).toList() ;
313 } 313 }
314 if (nextPageToken != null) { 314 if (nextPageToken != null) {
315 _json["nextPageToken"] = nextPageToken; 315 _json["nextPageToken"] = nextPageToken;
316 } 316 }
317 return _json; 317 return _json;
318 } 318 }
319 } 319 }
320 320
(...skipping 11 matching lines...) Expand all
332 332
333 Move.fromJson(core.Map _json) { 333 Move.fromJson(core.Map _json) {
334 if (_json.containsKey("addedParents")) { 334 if (_json.containsKey("addedParents")) {
335 addedParents = _json["addedParents"].map((value) => new Parent.fromJson(va lue)).toList(); 335 addedParents = _json["addedParents"].map((value) => new Parent.fromJson(va lue)).toList();
336 } 336 }
337 if (_json.containsKey("removedParents")) { 337 if (_json.containsKey("removedParents")) {
338 removedParents = _json["removedParents"].map((value) => new Parent.fromJso n(value)).toList(); 338 removedParents = _json["removedParents"].map((value) => new Parent.fromJso n(value)).toList();
339 } 339 }
340 } 340 }
341 341
342 core.Map toJson() { 342 core.Map<core.String, core.Object> toJson() {
343 var _json = new core.Map(); 343 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
344 if (addedParents != null) { 344 if (addedParents != null) {
345 _json["addedParents"] = addedParents.map((value) => (value).toJson()).toLi st(); 345 _json["addedParents"] = addedParents.map((value) => (value).toJson()).toLi st();
346 } 346 }
347 if (removedParents != null) { 347 if (removedParents != null) {
348 _json["removedParents"] = removedParents.map((value) => (value).toJson()). toList(); 348 _json["removedParents"] = removedParents.map((value) => (value).toJson()). toList();
349 } 349 }
350 return _json; 350 return _json;
351 } 351 }
352 } 352 }
353 353
(...skipping 16 matching lines...) Expand all
370 id = _json["id"]; 370 id = _json["id"];
371 } 371 }
372 if (_json.containsKey("isRoot")) { 372 if (_json.containsKey("isRoot")) {
373 isRoot = _json["isRoot"]; 373 isRoot = _json["isRoot"];
374 } 374 }
375 if (_json.containsKey("title")) { 375 if (_json.containsKey("title")) {
376 title = _json["title"]; 376 title = _json["title"];
377 } 377 }
378 } 378 }
379 379
380 core.Map toJson() { 380 core.Map<core.String, core.Object> toJson() {
381 var _json = new core.Map(); 381 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
382 if (id != null) { 382 if (id != null) {
383 _json["id"] = id; 383 _json["id"] = id;
384 } 384 }
385 if (isRoot != null) { 385 if (isRoot != null) {
386 _json["isRoot"] = isRoot; 386 _json["isRoot"] = isRoot;
387 } 387 }
388 if (title != null) { 388 if (title != null) {
389 _json["title"] = title; 389 _json["title"] = title;
390 } 390 }
391 return _json; 391 return _json;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 type = _json["type"]; 445 type = _json["type"];
446 } 446 }
447 if (_json.containsKey("user")) { 447 if (_json.containsKey("user")) {
448 user = new User.fromJson(_json["user"]); 448 user = new User.fromJson(_json["user"]);
449 } 449 }
450 if (_json.containsKey("withLink")) { 450 if (_json.containsKey("withLink")) {
451 withLink = _json["withLink"]; 451 withLink = _json["withLink"];
452 } 452 }
453 } 453 }
454 454
455 core.Map toJson() { 455 core.Map<core.String, core.Object> toJson() {
456 var _json = new core.Map(); 456 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
457 if (name != null) { 457 if (name != null) {
458 _json["name"] = name; 458 _json["name"] = name;
459 } 459 }
460 if (permissionId != null) { 460 if (permissionId != null) {
461 _json["permissionId"] = permissionId; 461 _json["permissionId"] = permissionId;
462 } 462 }
463 if (role != null) { 463 if (role != null) {
464 _json["role"] = role; 464 _json["role"] = role;
465 } 465 }
466 if (type != null) { 466 if (type != null) {
(...skipping 23 matching lines...) Expand all
490 490
491 PermissionChange.fromJson(core.Map _json) { 491 PermissionChange.fromJson(core.Map _json) {
492 if (_json.containsKey("addedPermissions")) { 492 if (_json.containsKey("addedPermissions")) {
493 addedPermissions = _json["addedPermissions"].map((value) => new Permission .fromJson(value)).toList(); 493 addedPermissions = _json["addedPermissions"].map((value) => new Permission .fromJson(value)).toList();
494 } 494 }
495 if (_json.containsKey("removedPermissions")) { 495 if (_json.containsKey("removedPermissions")) {
496 removedPermissions = _json["removedPermissions"].map((value) => new Permis sion.fromJson(value)).toList(); 496 removedPermissions = _json["removedPermissions"].map((value) => new Permis sion.fromJson(value)).toList();
497 } 497 }
498 } 498 }
499 499
500 core.Map toJson() { 500 core.Map<core.String, core.Object> toJson() {
501 var _json = new core.Map(); 501 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
502 if (addedPermissions != null) { 502 if (addedPermissions != null) {
503 _json["addedPermissions"] = addedPermissions.map((value) => (value).toJson ()).toList(); 503 _json["addedPermissions"] = addedPermissions.map((value) => (value).toJson ()).toList();
504 } 504 }
505 if (removedPermissions != null) { 505 if (removedPermissions != null) {
506 _json["removedPermissions"] = removedPermissions.map((value) => (value).to Json()).toList(); 506 _json["removedPermissions"] = removedPermissions.map((value) => (value).to Json()).toList();
507 } 507 }
508 return _json; 508 return _json;
509 } 509 }
510 } 510 }
511 511
512 /** Photo information for a user. */ 512 /** Photo information for a user. */
513 class Photo { 513 class Photo {
514 /** The URL of the photo. */ 514 /** The URL of the photo. */
515 core.String url; 515 core.String url;
516 516
517 Photo(); 517 Photo();
518 518
519 Photo.fromJson(core.Map _json) { 519 Photo.fromJson(core.Map _json) {
520 if (_json.containsKey("url")) { 520 if (_json.containsKey("url")) {
521 url = _json["url"]; 521 url = _json["url"];
522 } 522 }
523 } 523 }
524 524
525 core.Map toJson() { 525 core.Map<core.String, core.Object> toJson() {
526 var _json = new core.Map(); 526 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
527 if (url != null) { 527 if (url != null) {
528 _json["url"] = url; 528 _json["url"] = url;
529 } 529 }
530 return _json; 530 return _json;
531 } 531 }
532 } 532 }
533 533
534 /** Contains information about a renametype event. */ 534 /** Contains information about a renametype event. */
535 class Rename { 535 class Rename {
536 /** The new title. */ 536 /** The new title. */
537 core.String newTitle; 537 core.String newTitle;
538 /** The old title. */ 538 /** The old title. */
539 core.String oldTitle; 539 core.String oldTitle;
540 540
541 Rename(); 541 Rename();
542 542
543 Rename.fromJson(core.Map _json) { 543 Rename.fromJson(core.Map _json) {
544 if (_json.containsKey("newTitle")) { 544 if (_json.containsKey("newTitle")) {
545 newTitle = _json["newTitle"]; 545 newTitle = _json["newTitle"];
546 } 546 }
547 if (_json.containsKey("oldTitle")) { 547 if (_json.containsKey("oldTitle")) {
548 oldTitle = _json["oldTitle"]; 548 oldTitle = _json["oldTitle"];
549 } 549 }
550 } 550 }
551 551
552 core.Map toJson() { 552 core.Map<core.String, core.Object> toJson() {
553 var _json = new core.Map(); 553 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
554 if (newTitle != null) { 554 if (newTitle != null) {
555 _json["newTitle"] = newTitle; 555 _json["newTitle"] = newTitle;
556 } 556 }
557 if (oldTitle != null) { 557 if (oldTitle != null) {
558 _json["oldTitle"] = oldTitle; 558 _json["oldTitle"] = oldTitle;
559 } 559 }
560 return _json; 560 return _json;
561 } 561 }
562 } 562 }
563 563
(...skipping 19 matching lines...) Expand all
583 id = _json["id"]; 583 id = _json["id"];
584 } 584 }
585 if (_json.containsKey("mimeType")) { 585 if (_json.containsKey("mimeType")) {
586 mimeType = _json["mimeType"]; 586 mimeType = _json["mimeType"];
587 } 587 }
588 if (_json.containsKey("name")) { 588 if (_json.containsKey("name")) {
589 name = _json["name"]; 589 name = _json["name"];
590 } 590 }
591 } 591 }
592 592
593 core.Map toJson() { 593 core.Map<core.String, core.Object> toJson() {
594 var _json = new core.Map(); 594 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
595 if (id != null) { 595 if (id != null) {
596 _json["id"] = id; 596 _json["id"] = id;
597 } 597 }
598 if (mimeType != null) { 598 if (mimeType != null) {
599 _json["mimeType"] = mimeType; 599 _json["mimeType"] = mimeType;
600 } 600 }
601 if (name != null) { 601 if (name != null) {
602 _json["name"] = name; 602 _json["name"] = name;
603 } 603 }
604 return _json; 604 return _json;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 name = _json["name"]; 641 name = _json["name"];
642 } 642 }
643 if (_json.containsKey("permissionId")) { 643 if (_json.containsKey("permissionId")) {
644 permissionId = _json["permissionId"]; 644 permissionId = _json["permissionId"];
645 } 645 }
646 if (_json.containsKey("photo")) { 646 if (_json.containsKey("photo")) {
647 photo = new Photo.fromJson(_json["photo"]); 647 photo = new Photo.fromJson(_json["photo"]);
648 } 648 }
649 } 649 }
650 650
651 core.Map toJson() { 651 core.Map<core.String, core.Object> toJson() {
652 var _json = new core.Map(); 652 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
653 if (isDeleted != null) { 653 if (isDeleted != null) {
654 _json["isDeleted"] = isDeleted; 654 _json["isDeleted"] = isDeleted;
655 } 655 }
656 if (isMe != null) { 656 if (isMe != null) {
657 _json["isMe"] = isMe; 657 _json["isMe"] = isMe;
658 } 658 }
659 if (name != null) { 659 if (name != null) {
660 _json["name"] = name; 660 _json["name"] = name;
661 } 661 }
662 if (permissionId != null) { 662 if (permissionId != null) {
663 _json["permissionId"] = permissionId; 663 _json["permissionId"] = permissionId;
664 } 664 }
665 if (photo != null) { 665 if (photo != null) {
666 _json["photo"] = (photo).toJson(); 666 _json["photo"] = (photo).toJson();
667 } 667 }
668 return _json; 668 return _json;
669 } 669 }
670 } 670 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/appengine/v1.dart ('k') | generated/googleapis/lib/appstate/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698