| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 } | 605 } |
| 606 } | 606 } |
| 607 | 607 |
| 608 /** A representation of a user. */ | 608 /** A representation of a user. */ |
| 609 class User { | 609 class User { |
| 610 /** | 610 /** |
| 611 * A boolean which indicates whether the specified User was deleted. If true, | 611 * A boolean which indicates whether the specified User was deleted. If true, |
| 612 * name, photo and permission_id will be omitted. | 612 * name, photo and permission_id will be omitted. |
| 613 */ | 613 */ |
| 614 core.bool isDeleted; | 614 core.bool isDeleted; |
| 615 /** Whether the user is the authenticated user. */ |
| 616 core.bool isMe; |
| 615 /** The displayable name of the user. */ | 617 /** The displayable name of the user. */ |
| 616 core.String name; | 618 core.String name; |
| 617 /** | 619 /** |
| 618 * The permission ID associated with this user. Equivalent to the Drive API's | 620 * The permission ID associated with this user. Equivalent to the Drive API's |
| 619 * permission ID for this user, returned as part of the Drive Permissions | 621 * permission ID for this user, returned as part of the Drive Permissions |
| 620 * resource. | 622 * resource. |
| 621 */ | 623 */ |
| 622 core.String permissionId; | 624 core.String permissionId; |
| 623 /** | 625 /** |
| 624 * The profile photo of the user. Not present if the user has no profile | 626 * The profile photo of the user. Not present if the user has no profile |
| 625 * photo. | 627 * photo. |
| 626 */ | 628 */ |
| 627 Photo photo; | 629 Photo photo; |
| 628 | 630 |
| 629 User(); | 631 User(); |
| 630 | 632 |
| 631 User.fromJson(core.Map _json) { | 633 User.fromJson(core.Map _json) { |
| 632 if (_json.containsKey("isDeleted")) { | 634 if (_json.containsKey("isDeleted")) { |
| 633 isDeleted = _json["isDeleted"]; | 635 isDeleted = _json["isDeleted"]; |
| 634 } | 636 } |
| 637 if (_json.containsKey("isMe")) { |
| 638 isMe = _json["isMe"]; |
| 639 } |
| 635 if (_json.containsKey("name")) { | 640 if (_json.containsKey("name")) { |
| 636 name = _json["name"]; | 641 name = _json["name"]; |
| 637 } | 642 } |
| 638 if (_json.containsKey("permissionId")) { | 643 if (_json.containsKey("permissionId")) { |
| 639 permissionId = _json["permissionId"]; | 644 permissionId = _json["permissionId"]; |
| 640 } | 645 } |
| 641 if (_json.containsKey("photo")) { | 646 if (_json.containsKey("photo")) { |
| 642 photo = new Photo.fromJson(_json["photo"]); | 647 photo = new Photo.fromJson(_json["photo"]); |
| 643 } | 648 } |
| 644 } | 649 } |
| 645 | 650 |
| 646 core.Map toJson() { | 651 core.Map toJson() { |
| 647 var _json = new core.Map(); | 652 var _json = new core.Map(); |
| 648 if (isDeleted != null) { | 653 if (isDeleted != null) { |
| 649 _json["isDeleted"] = isDeleted; | 654 _json["isDeleted"] = isDeleted; |
| 650 } | 655 } |
| 656 if (isMe != null) { |
| 657 _json["isMe"] = isMe; |
| 658 } |
| 651 if (name != null) { | 659 if (name != null) { |
| 652 _json["name"] = name; | 660 _json["name"] = name; |
| 653 } | 661 } |
| 654 if (permissionId != null) { | 662 if (permissionId != null) { |
| 655 _json["permissionId"] = permissionId; | 663 _json["permissionId"] = permissionId; |
| 656 } | 664 } |
| 657 if (photo != null) { | 665 if (photo != null) { |
| 658 _json["photo"] = (photo).toJson(); | 666 _json["photo"] = (photo).toJson(); |
| 659 } | 667 } |
| 660 return _json; | 668 return _json; |
| 661 } | 669 } |
| 662 } | 670 } |
| OLD | NEW |