| 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 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 /** |
| 611 * A boolean which indicates whether the specified User was deleted. If true, |
| 612 * name, photo and permission_id will be omitted. |
| 613 */ |
| 614 core.bool isDeleted; |
| 610 /** The displayable name of the user. */ | 615 /** The displayable name of the user. */ |
| 611 core.String name; | 616 core.String name; |
| 612 /** | 617 /** |
| 618 * 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 |
| 620 * resource. |
| 621 */ |
| 622 core.String permissionId; |
| 623 /** |
| 613 * The profile photo of the user. Not present if the user has no profile | 624 * The profile photo of the user. Not present if the user has no profile |
| 614 * photo. | 625 * photo. |
| 615 */ | 626 */ |
| 616 Photo photo; | 627 Photo photo; |
| 617 | 628 |
| 618 User(); | 629 User(); |
| 619 | 630 |
| 620 User.fromJson(core.Map _json) { | 631 User.fromJson(core.Map _json) { |
| 632 if (_json.containsKey("isDeleted")) { |
| 633 isDeleted = _json["isDeleted"]; |
| 634 } |
| 621 if (_json.containsKey("name")) { | 635 if (_json.containsKey("name")) { |
| 622 name = _json["name"]; | 636 name = _json["name"]; |
| 623 } | 637 } |
| 638 if (_json.containsKey("permissionId")) { |
| 639 permissionId = _json["permissionId"]; |
| 640 } |
| 624 if (_json.containsKey("photo")) { | 641 if (_json.containsKey("photo")) { |
| 625 photo = new Photo.fromJson(_json["photo"]); | 642 photo = new Photo.fromJson(_json["photo"]); |
| 626 } | 643 } |
| 627 } | 644 } |
| 628 | 645 |
| 629 core.Map toJson() { | 646 core.Map toJson() { |
| 630 var _json = new core.Map(); | 647 var _json = new core.Map(); |
| 648 if (isDeleted != null) { |
| 649 _json["isDeleted"] = isDeleted; |
| 650 } |
| 631 if (name != null) { | 651 if (name != null) { |
| 632 _json["name"] = name; | 652 _json["name"] = name; |
| 633 } | 653 } |
| 654 if (permissionId != null) { |
| 655 _json["permissionId"] = permissionId; |
| 656 } |
| 634 if (photo != null) { | 657 if (photo != null) { |
| 635 _json["photo"] = (photo).toJson(); | 658 _json["photo"] = (photo).toJson(); |
| 636 } | 659 } |
| 637 return _json; | 660 return _json; |
| 638 } | 661 } |
| 639 } | 662 } |
| OLD | NEW |