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.gmail.v1; | 3 library googleapis.gmail.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 3341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3352 disposition = _json["disposition"]; | 3352 disposition = _json["disposition"]; |
3353 } | 3353 } |
3354 if (_json.containsKey("emailAddress")) { | 3354 if (_json.containsKey("emailAddress")) { |
3355 emailAddress = _json["emailAddress"]; | 3355 emailAddress = _json["emailAddress"]; |
3356 } | 3356 } |
3357 if (_json.containsKey("enabled")) { | 3357 if (_json.containsKey("enabled")) { |
3358 enabled = _json["enabled"]; | 3358 enabled = _json["enabled"]; |
3359 } | 3359 } |
3360 } | 3360 } |
3361 | 3361 |
3362 core.Map toJson() { | 3362 core.Map<core.String, core.Object> toJson() { |
3363 var _json = new core.Map(); | 3363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3364 if (disposition != null) { | 3364 if (disposition != null) { |
3365 _json["disposition"] = disposition; | 3365 _json["disposition"] = disposition; |
3366 } | 3366 } |
3367 if (emailAddress != null) { | 3367 if (emailAddress != null) { |
3368 _json["emailAddress"] = emailAddress; | 3368 _json["emailAddress"] = emailAddress; |
3369 } | 3369 } |
3370 if (enabled != null) { | 3370 if (enabled != null) { |
3371 _json["enabled"] = enabled; | 3371 _json["enabled"] = enabled; |
3372 } | 3372 } |
3373 return _json; | 3373 return _json; |
3374 } | 3374 } |
3375 } | 3375 } |
3376 | 3376 |
3377 class BatchDeleteMessagesRequest { | 3377 class BatchDeleteMessagesRequest { |
3378 /** The IDs of the messages to delete. */ | 3378 /** The IDs of the messages to delete. */ |
3379 core.List<core.String> ids; | 3379 core.List<core.String> ids; |
3380 | 3380 |
3381 BatchDeleteMessagesRequest(); | 3381 BatchDeleteMessagesRequest(); |
3382 | 3382 |
3383 BatchDeleteMessagesRequest.fromJson(core.Map _json) { | 3383 BatchDeleteMessagesRequest.fromJson(core.Map _json) { |
3384 if (_json.containsKey("ids")) { | 3384 if (_json.containsKey("ids")) { |
3385 ids = _json["ids"]; | 3385 ids = _json["ids"]; |
3386 } | 3386 } |
3387 } | 3387 } |
3388 | 3388 |
3389 core.Map toJson() { | 3389 core.Map<core.String, core.Object> toJson() { |
3390 var _json = new core.Map(); | 3390 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3391 if (ids != null) { | 3391 if (ids != null) { |
3392 _json["ids"] = ids; | 3392 _json["ids"] = ids; |
3393 } | 3393 } |
3394 return _json; | 3394 return _json; |
3395 } | 3395 } |
3396 } | 3396 } |
3397 | 3397 |
3398 class BatchModifyMessagesRequest { | 3398 class BatchModifyMessagesRequest { |
3399 /** A list of label IDs to add to messages. */ | 3399 /** A list of label IDs to add to messages. */ |
3400 core.List<core.String> addLabelIds; | 3400 core.List<core.String> addLabelIds; |
(...skipping 12 matching lines...) Expand all Loading... |
3413 addLabelIds = _json["addLabelIds"]; | 3413 addLabelIds = _json["addLabelIds"]; |
3414 } | 3414 } |
3415 if (_json.containsKey("ids")) { | 3415 if (_json.containsKey("ids")) { |
3416 ids = _json["ids"]; | 3416 ids = _json["ids"]; |
3417 } | 3417 } |
3418 if (_json.containsKey("removeLabelIds")) { | 3418 if (_json.containsKey("removeLabelIds")) { |
3419 removeLabelIds = _json["removeLabelIds"]; | 3419 removeLabelIds = _json["removeLabelIds"]; |
3420 } | 3420 } |
3421 } | 3421 } |
3422 | 3422 |
3423 core.Map toJson() { | 3423 core.Map<core.String, core.Object> toJson() { |
3424 var _json = new core.Map(); | 3424 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3425 if (addLabelIds != null) { | 3425 if (addLabelIds != null) { |
3426 _json["addLabelIds"] = addLabelIds; | 3426 _json["addLabelIds"] = addLabelIds; |
3427 } | 3427 } |
3428 if (ids != null) { | 3428 if (ids != null) { |
3429 _json["ids"] = ids; | 3429 _json["ids"] = ids; |
3430 } | 3430 } |
3431 if (removeLabelIds != null) { | 3431 if (removeLabelIds != null) { |
3432 _json["removeLabelIds"] = removeLabelIds; | 3432 _json["removeLabelIds"] = removeLabelIds; |
3433 } | 3433 } |
3434 return _json; | 3434 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
3446 | 3446 |
3447 Draft.fromJson(core.Map _json) { | 3447 Draft.fromJson(core.Map _json) { |
3448 if (_json.containsKey("id")) { | 3448 if (_json.containsKey("id")) { |
3449 id = _json["id"]; | 3449 id = _json["id"]; |
3450 } | 3450 } |
3451 if (_json.containsKey("message")) { | 3451 if (_json.containsKey("message")) { |
3452 message = new Message.fromJson(_json["message"]); | 3452 message = new Message.fromJson(_json["message"]); |
3453 } | 3453 } |
3454 } | 3454 } |
3455 | 3455 |
3456 core.Map toJson() { | 3456 core.Map<core.String, core.Object> toJson() { |
3457 var _json = new core.Map(); | 3457 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3458 if (id != null) { | 3458 if (id != null) { |
3459 _json["id"] = id; | 3459 _json["id"] = id; |
3460 } | 3460 } |
3461 if (message != null) { | 3461 if (message != null) { |
3462 _json["message"] = (message).toJson(); | 3462 _json["message"] = (message).toJson(); |
3463 } | 3463 } |
3464 return _json; | 3464 return _json; |
3465 } | 3465 } |
3466 } | 3466 } |
3467 | 3467 |
(...skipping 16 matching lines...) Expand all Loading... |
3484 action = new FilterAction.fromJson(_json["action"]); | 3484 action = new FilterAction.fromJson(_json["action"]); |
3485 } | 3485 } |
3486 if (_json.containsKey("criteria")) { | 3486 if (_json.containsKey("criteria")) { |
3487 criteria = new FilterCriteria.fromJson(_json["criteria"]); | 3487 criteria = new FilterCriteria.fromJson(_json["criteria"]); |
3488 } | 3488 } |
3489 if (_json.containsKey("id")) { | 3489 if (_json.containsKey("id")) { |
3490 id = _json["id"]; | 3490 id = _json["id"]; |
3491 } | 3491 } |
3492 } | 3492 } |
3493 | 3493 |
3494 core.Map toJson() { | 3494 core.Map<core.String, core.Object> toJson() { |
3495 var _json = new core.Map(); | 3495 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3496 if (action != null) { | 3496 if (action != null) { |
3497 _json["action"] = (action).toJson(); | 3497 _json["action"] = (action).toJson(); |
3498 } | 3498 } |
3499 if (criteria != null) { | 3499 if (criteria != null) { |
3500 _json["criteria"] = (criteria).toJson(); | 3500 _json["criteria"] = (criteria).toJson(); |
3501 } | 3501 } |
3502 if (id != null) { | 3502 if (id != null) { |
3503 _json["id"] = id; | 3503 _json["id"] = id; |
3504 } | 3504 } |
3505 return _json; | 3505 return _json; |
(...skipping 16 matching lines...) Expand all Loading... |
3522 addLabelIds = _json["addLabelIds"]; | 3522 addLabelIds = _json["addLabelIds"]; |
3523 } | 3523 } |
3524 if (_json.containsKey("forward")) { | 3524 if (_json.containsKey("forward")) { |
3525 forward = _json["forward"]; | 3525 forward = _json["forward"]; |
3526 } | 3526 } |
3527 if (_json.containsKey("removeLabelIds")) { | 3527 if (_json.containsKey("removeLabelIds")) { |
3528 removeLabelIds = _json["removeLabelIds"]; | 3528 removeLabelIds = _json["removeLabelIds"]; |
3529 } | 3529 } |
3530 } | 3530 } |
3531 | 3531 |
3532 core.Map toJson() { | 3532 core.Map<core.String, core.Object> toJson() { |
3533 var _json = new core.Map(); | 3533 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3534 if (addLabelIds != null) { | 3534 if (addLabelIds != null) { |
3535 _json["addLabelIds"] = addLabelIds; | 3535 _json["addLabelIds"] = addLabelIds; |
3536 } | 3536 } |
3537 if (forward != null) { | 3537 if (forward != null) { |
3538 _json["forward"] = forward; | 3538 _json["forward"] = forward; |
3539 } | 3539 } |
3540 if (removeLabelIds != null) { | 3540 if (removeLabelIds != null) { |
3541 _json["removeLabelIds"] = removeLabelIds; | 3541 _json["removeLabelIds"] = removeLabelIds; |
3542 } | 3542 } |
3543 return _json; | 3543 return _json; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3615 sizeComparison = _json["sizeComparison"]; | 3615 sizeComparison = _json["sizeComparison"]; |
3616 } | 3616 } |
3617 if (_json.containsKey("subject")) { | 3617 if (_json.containsKey("subject")) { |
3618 subject = _json["subject"]; | 3618 subject = _json["subject"]; |
3619 } | 3619 } |
3620 if (_json.containsKey("to")) { | 3620 if (_json.containsKey("to")) { |
3621 to = _json["to"]; | 3621 to = _json["to"]; |
3622 } | 3622 } |
3623 } | 3623 } |
3624 | 3624 |
3625 core.Map toJson() { | 3625 core.Map<core.String, core.Object> toJson() { |
3626 var _json = new core.Map(); | 3626 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3627 if (excludeChats != null) { | 3627 if (excludeChats != null) { |
3628 _json["excludeChats"] = excludeChats; | 3628 _json["excludeChats"] = excludeChats; |
3629 } | 3629 } |
3630 if (from != null) { | 3630 if (from != null) { |
3631 _json["from"] = from; | 3631 _json["from"] = from; |
3632 } | 3632 } |
3633 if (hasAttachment != null) { | 3633 if (hasAttachment != null) { |
3634 _json["hasAttachment"] = hasAttachment; | 3634 _json["hasAttachment"] = hasAttachment; |
3635 } | 3635 } |
3636 if (negatedQuery != null) { | 3636 if (negatedQuery != null) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3673 | 3673 |
3674 ForwardingAddress.fromJson(core.Map _json) { | 3674 ForwardingAddress.fromJson(core.Map _json) { |
3675 if (_json.containsKey("forwardingEmail")) { | 3675 if (_json.containsKey("forwardingEmail")) { |
3676 forwardingEmail = _json["forwardingEmail"]; | 3676 forwardingEmail = _json["forwardingEmail"]; |
3677 } | 3677 } |
3678 if (_json.containsKey("verificationStatus")) { | 3678 if (_json.containsKey("verificationStatus")) { |
3679 verificationStatus = _json["verificationStatus"]; | 3679 verificationStatus = _json["verificationStatus"]; |
3680 } | 3680 } |
3681 } | 3681 } |
3682 | 3682 |
3683 core.Map toJson() { | 3683 core.Map<core.String, core.Object> toJson() { |
3684 var _json = new core.Map(); | 3684 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3685 if (forwardingEmail != null) { | 3685 if (forwardingEmail != null) { |
3686 _json["forwardingEmail"] = forwardingEmail; | 3686 _json["forwardingEmail"] = forwardingEmail; |
3687 } | 3687 } |
3688 if (verificationStatus != null) { | 3688 if (verificationStatus != null) { |
3689 _json["verificationStatus"] = verificationStatus; | 3689 _json["verificationStatus"] = verificationStatus; |
3690 } | 3690 } |
3691 return _json; | 3691 return _json; |
3692 } | 3692 } |
3693 } | 3693 } |
3694 | 3694 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3732 messages = _json["messages"].map((value) => new Message.fromJson(value)).t
oList(); | 3732 messages = _json["messages"].map((value) => new Message.fromJson(value)).t
oList(); |
3733 } | 3733 } |
3734 if (_json.containsKey("messagesAdded")) { | 3734 if (_json.containsKey("messagesAdded")) { |
3735 messagesAdded = _json["messagesAdded"].map((value) => new HistoryMessageAd
ded.fromJson(value)).toList(); | 3735 messagesAdded = _json["messagesAdded"].map((value) => new HistoryMessageAd
ded.fromJson(value)).toList(); |
3736 } | 3736 } |
3737 if (_json.containsKey("messagesDeleted")) { | 3737 if (_json.containsKey("messagesDeleted")) { |
3738 messagesDeleted = _json["messagesDeleted"].map((value) => new HistoryMessa
geDeleted.fromJson(value)).toList(); | 3738 messagesDeleted = _json["messagesDeleted"].map((value) => new HistoryMessa
geDeleted.fromJson(value)).toList(); |
3739 } | 3739 } |
3740 } | 3740 } |
3741 | 3741 |
3742 core.Map toJson() { | 3742 core.Map<core.String, core.Object> toJson() { |
3743 var _json = new core.Map(); | 3743 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3744 if (id != null) { | 3744 if (id != null) { |
3745 _json["id"] = id; | 3745 _json["id"] = id; |
3746 } | 3746 } |
3747 if (labelsAdded != null) { | 3747 if (labelsAdded != null) { |
3748 _json["labelsAdded"] = labelsAdded.map((value) => (value).toJson()).toList
(); | 3748 _json["labelsAdded"] = labelsAdded.map((value) => (value).toJson()).toList
(); |
3749 } | 3749 } |
3750 if (labelsRemoved != null) { | 3750 if (labelsRemoved != null) { |
3751 _json["labelsRemoved"] = labelsRemoved.map((value) => (value).toJson()).to
List(); | 3751 _json["labelsRemoved"] = labelsRemoved.map((value) => (value).toJson()).to
List(); |
3752 } | 3752 } |
3753 if (messages != null) { | 3753 if (messages != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
3772 | 3772 |
3773 HistoryLabelAdded.fromJson(core.Map _json) { | 3773 HistoryLabelAdded.fromJson(core.Map _json) { |
3774 if (_json.containsKey("labelIds")) { | 3774 if (_json.containsKey("labelIds")) { |
3775 labelIds = _json["labelIds"]; | 3775 labelIds = _json["labelIds"]; |
3776 } | 3776 } |
3777 if (_json.containsKey("message")) { | 3777 if (_json.containsKey("message")) { |
3778 message = new Message.fromJson(_json["message"]); | 3778 message = new Message.fromJson(_json["message"]); |
3779 } | 3779 } |
3780 } | 3780 } |
3781 | 3781 |
3782 core.Map toJson() { | 3782 core.Map<core.String, core.Object> toJson() { |
3783 var _json = new core.Map(); | 3783 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3784 if (labelIds != null) { | 3784 if (labelIds != null) { |
3785 _json["labelIds"] = labelIds; | 3785 _json["labelIds"] = labelIds; |
3786 } | 3786 } |
3787 if (message != null) { | 3787 if (message != null) { |
3788 _json["message"] = (message).toJson(); | 3788 _json["message"] = (message).toJson(); |
3789 } | 3789 } |
3790 return _json; | 3790 return _json; |
3791 } | 3791 } |
3792 } | 3792 } |
3793 | 3793 |
3794 class HistoryLabelRemoved { | 3794 class HistoryLabelRemoved { |
3795 /** Label IDs removed from the message. */ | 3795 /** Label IDs removed from the message. */ |
3796 core.List<core.String> labelIds; | 3796 core.List<core.String> labelIds; |
3797 Message message; | 3797 Message message; |
3798 | 3798 |
3799 HistoryLabelRemoved(); | 3799 HistoryLabelRemoved(); |
3800 | 3800 |
3801 HistoryLabelRemoved.fromJson(core.Map _json) { | 3801 HistoryLabelRemoved.fromJson(core.Map _json) { |
3802 if (_json.containsKey("labelIds")) { | 3802 if (_json.containsKey("labelIds")) { |
3803 labelIds = _json["labelIds"]; | 3803 labelIds = _json["labelIds"]; |
3804 } | 3804 } |
3805 if (_json.containsKey("message")) { | 3805 if (_json.containsKey("message")) { |
3806 message = new Message.fromJson(_json["message"]); | 3806 message = new Message.fromJson(_json["message"]); |
3807 } | 3807 } |
3808 } | 3808 } |
3809 | 3809 |
3810 core.Map toJson() { | 3810 core.Map<core.String, core.Object> toJson() { |
3811 var _json = new core.Map(); | 3811 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3812 if (labelIds != null) { | 3812 if (labelIds != null) { |
3813 _json["labelIds"] = labelIds; | 3813 _json["labelIds"] = labelIds; |
3814 } | 3814 } |
3815 if (message != null) { | 3815 if (message != null) { |
3816 _json["message"] = (message).toJson(); | 3816 _json["message"] = (message).toJson(); |
3817 } | 3817 } |
3818 return _json; | 3818 return _json; |
3819 } | 3819 } |
3820 } | 3820 } |
3821 | 3821 |
3822 class HistoryMessageAdded { | 3822 class HistoryMessageAdded { |
3823 Message message; | 3823 Message message; |
3824 | 3824 |
3825 HistoryMessageAdded(); | 3825 HistoryMessageAdded(); |
3826 | 3826 |
3827 HistoryMessageAdded.fromJson(core.Map _json) { | 3827 HistoryMessageAdded.fromJson(core.Map _json) { |
3828 if (_json.containsKey("message")) { | 3828 if (_json.containsKey("message")) { |
3829 message = new Message.fromJson(_json["message"]); | 3829 message = new Message.fromJson(_json["message"]); |
3830 } | 3830 } |
3831 } | 3831 } |
3832 | 3832 |
3833 core.Map toJson() { | 3833 core.Map<core.String, core.Object> toJson() { |
3834 var _json = new core.Map(); | 3834 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3835 if (message != null) { | 3835 if (message != null) { |
3836 _json["message"] = (message).toJson(); | 3836 _json["message"] = (message).toJson(); |
3837 } | 3837 } |
3838 return _json; | 3838 return _json; |
3839 } | 3839 } |
3840 } | 3840 } |
3841 | 3841 |
3842 class HistoryMessageDeleted { | 3842 class HistoryMessageDeleted { |
3843 Message message; | 3843 Message message; |
3844 | 3844 |
3845 HistoryMessageDeleted(); | 3845 HistoryMessageDeleted(); |
3846 | 3846 |
3847 HistoryMessageDeleted.fromJson(core.Map _json) { | 3847 HistoryMessageDeleted.fromJson(core.Map _json) { |
3848 if (_json.containsKey("message")) { | 3848 if (_json.containsKey("message")) { |
3849 message = new Message.fromJson(_json["message"]); | 3849 message = new Message.fromJson(_json["message"]); |
3850 } | 3850 } |
3851 } | 3851 } |
3852 | 3852 |
3853 core.Map toJson() { | 3853 core.Map<core.String, core.Object> toJson() { |
3854 var _json = new core.Map(); | 3854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3855 if (message != null) { | 3855 if (message != null) { |
3856 _json["message"] = (message).toJson(); | 3856 _json["message"] = (message).toJson(); |
3857 } | 3857 } |
3858 return _json; | 3858 return _json; |
3859 } | 3859 } |
3860 } | 3860 } |
3861 | 3861 |
3862 /** IMAP settings for an account. */ | 3862 /** IMAP settings for an account. */ |
3863 class ImapSettings { | 3863 class ImapSettings { |
3864 /** | 3864 /** |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3896 enabled = _json["enabled"]; | 3896 enabled = _json["enabled"]; |
3897 } | 3897 } |
3898 if (_json.containsKey("expungeBehavior")) { | 3898 if (_json.containsKey("expungeBehavior")) { |
3899 expungeBehavior = _json["expungeBehavior"]; | 3899 expungeBehavior = _json["expungeBehavior"]; |
3900 } | 3900 } |
3901 if (_json.containsKey("maxFolderSize")) { | 3901 if (_json.containsKey("maxFolderSize")) { |
3902 maxFolderSize = _json["maxFolderSize"]; | 3902 maxFolderSize = _json["maxFolderSize"]; |
3903 } | 3903 } |
3904 } | 3904 } |
3905 | 3905 |
3906 core.Map toJson() { | 3906 core.Map<core.String, core.Object> toJson() { |
3907 var _json = new core.Map(); | 3907 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3908 if (autoExpunge != null) { | 3908 if (autoExpunge != null) { |
3909 _json["autoExpunge"] = autoExpunge; | 3909 _json["autoExpunge"] = autoExpunge; |
3910 } | 3910 } |
3911 if (enabled != null) { | 3911 if (enabled != null) { |
3912 _json["enabled"] = enabled; | 3912 _json["enabled"] = enabled; |
3913 } | 3913 } |
3914 if (expungeBehavior != null) { | 3914 if (expungeBehavior != null) { |
3915 _json["expungeBehavior"] = expungeBehavior; | 3915 _json["expungeBehavior"] = expungeBehavior; |
3916 } | 3916 } |
3917 if (maxFolderSize != null) { | 3917 if (maxFolderSize != null) { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3992 threadsTotal = _json["threadsTotal"]; | 3992 threadsTotal = _json["threadsTotal"]; |
3993 } | 3993 } |
3994 if (_json.containsKey("threadsUnread")) { | 3994 if (_json.containsKey("threadsUnread")) { |
3995 threadsUnread = _json["threadsUnread"]; | 3995 threadsUnread = _json["threadsUnread"]; |
3996 } | 3996 } |
3997 if (_json.containsKey("type")) { | 3997 if (_json.containsKey("type")) { |
3998 type = _json["type"]; | 3998 type = _json["type"]; |
3999 } | 3999 } |
4000 } | 4000 } |
4001 | 4001 |
4002 core.Map toJson() { | 4002 core.Map<core.String, core.Object> toJson() { |
4003 var _json = new core.Map(); | 4003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4004 if (id != null) { | 4004 if (id != null) { |
4005 _json["id"] = id; | 4005 _json["id"] = id; |
4006 } | 4006 } |
4007 if (labelListVisibility != null) { | 4007 if (labelListVisibility != null) { |
4008 _json["labelListVisibility"] = labelListVisibility; | 4008 _json["labelListVisibility"] = labelListVisibility; |
4009 } | 4009 } |
4010 if (messageListVisibility != null) { | 4010 if (messageListVisibility != null) { |
4011 _json["messageListVisibility"] = messageListVisibility; | 4011 _json["messageListVisibility"] = messageListVisibility; |
4012 } | 4012 } |
4013 if (messagesTotal != null) { | 4013 if (messagesTotal != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4047 drafts = _json["drafts"].map((value) => new Draft.fromJson(value)).toList(
); | 4047 drafts = _json["drafts"].map((value) => new Draft.fromJson(value)).toList(
); |
4048 } | 4048 } |
4049 if (_json.containsKey("nextPageToken")) { | 4049 if (_json.containsKey("nextPageToken")) { |
4050 nextPageToken = _json["nextPageToken"]; | 4050 nextPageToken = _json["nextPageToken"]; |
4051 } | 4051 } |
4052 if (_json.containsKey("resultSizeEstimate")) { | 4052 if (_json.containsKey("resultSizeEstimate")) { |
4053 resultSizeEstimate = _json["resultSizeEstimate"]; | 4053 resultSizeEstimate = _json["resultSizeEstimate"]; |
4054 } | 4054 } |
4055 } | 4055 } |
4056 | 4056 |
4057 core.Map toJson() { | 4057 core.Map<core.String, core.Object> toJson() { |
4058 var _json = new core.Map(); | 4058 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4059 if (drafts != null) { | 4059 if (drafts != null) { |
4060 _json["drafts"] = drafts.map((value) => (value).toJson()).toList(); | 4060 _json["drafts"] = drafts.map((value) => (value).toJson()).toList(); |
4061 } | 4061 } |
4062 if (nextPageToken != null) { | 4062 if (nextPageToken != null) { |
4063 _json["nextPageToken"] = nextPageToken; | 4063 _json["nextPageToken"] = nextPageToken; |
4064 } | 4064 } |
4065 if (resultSizeEstimate != null) { | 4065 if (resultSizeEstimate != null) { |
4066 _json["resultSizeEstimate"] = resultSizeEstimate; | 4066 _json["resultSizeEstimate"] = resultSizeEstimate; |
4067 } | 4067 } |
4068 return _json; | 4068 return _json; |
4069 } | 4069 } |
4070 } | 4070 } |
4071 | 4071 |
4072 /** Response for the ListFilters method. */ | 4072 /** Response for the ListFilters method. */ |
4073 class ListFiltersResponse { | 4073 class ListFiltersResponse { |
4074 /** List of a user's filters. */ | 4074 /** List of a user's filters. */ |
4075 core.List<Filter> filter; | 4075 core.List<Filter> filter; |
4076 | 4076 |
4077 ListFiltersResponse(); | 4077 ListFiltersResponse(); |
4078 | 4078 |
4079 ListFiltersResponse.fromJson(core.Map _json) { | 4079 ListFiltersResponse.fromJson(core.Map _json) { |
4080 if (_json.containsKey("filter")) { | 4080 if (_json.containsKey("filter")) { |
4081 filter = _json["filter"].map((value) => new Filter.fromJson(value)).toList
(); | 4081 filter = _json["filter"].map((value) => new Filter.fromJson(value)).toList
(); |
4082 } | 4082 } |
4083 } | 4083 } |
4084 | 4084 |
4085 core.Map toJson() { | 4085 core.Map<core.String, core.Object> toJson() { |
4086 var _json = new core.Map(); | 4086 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4087 if (filter != null) { | 4087 if (filter != null) { |
4088 _json["filter"] = filter.map((value) => (value).toJson()).toList(); | 4088 _json["filter"] = filter.map((value) => (value).toJson()).toList(); |
4089 } | 4089 } |
4090 return _json; | 4090 return _json; |
4091 } | 4091 } |
4092 } | 4092 } |
4093 | 4093 |
4094 /** Response for the ListForwardingAddresses method. */ | 4094 /** Response for the ListForwardingAddresses method. */ |
4095 class ListForwardingAddressesResponse { | 4095 class ListForwardingAddressesResponse { |
4096 /** List of addresses that may be used for forwarding. */ | 4096 /** List of addresses that may be used for forwarding. */ |
4097 core.List<ForwardingAddress> forwardingAddresses; | 4097 core.List<ForwardingAddress> forwardingAddresses; |
4098 | 4098 |
4099 ListForwardingAddressesResponse(); | 4099 ListForwardingAddressesResponse(); |
4100 | 4100 |
4101 ListForwardingAddressesResponse.fromJson(core.Map _json) { | 4101 ListForwardingAddressesResponse.fromJson(core.Map _json) { |
4102 if (_json.containsKey("forwardingAddresses")) { | 4102 if (_json.containsKey("forwardingAddresses")) { |
4103 forwardingAddresses = _json["forwardingAddresses"].map((value) => new Forw
ardingAddress.fromJson(value)).toList(); | 4103 forwardingAddresses = _json["forwardingAddresses"].map((value) => new Forw
ardingAddress.fromJson(value)).toList(); |
4104 } | 4104 } |
4105 } | 4105 } |
4106 | 4106 |
4107 core.Map toJson() { | 4107 core.Map<core.String, core.Object> toJson() { |
4108 var _json = new core.Map(); | 4108 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4109 if (forwardingAddresses != null) { | 4109 if (forwardingAddresses != null) { |
4110 _json["forwardingAddresses"] = forwardingAddresses.map((value) => (value).
toJson()).toList(); | 4110 _json["forwardingAddresses"] = forwardingAddresses.map((value) => (value).
toJson()).toList(); |
4111 } | 4111 } |
4112 return _json; | 4112 return _json; |
4113 } | 4113 } |
4114 } | 4114 } |
4115 | 4115 |
4116 class ListHistoryResponse { | 4116 class ListHistoryResponse { |
4117 /** | 4117 /** |
4118 * List of history records. Any messages contained in the response will | 4118 * List of history records. Any messages contained in the response will |
(...skipping 12 matching lines...) Expand all Loading... |
4131 history = _json["history"].map((value) => new History.fromJson(value)).toL
ist(); | 4131 history = _json["history"].map((value) => new History.fromJson(value)).toL
ist(); |
4132 } | 4132 } |
4133 if (_json.containsKey("historyId")) { | 4133 if (_json.containsKey("historyId")) { |
4134 historyId = _json["historyId"]; | 4134 historyId = _json["historyId"]; |
4135 } | 4135 } |
4136 if (_json.containsKey("nextPageToken")) { | 4136 if (_json.containsKey("nextPageToken")) { |
4137 nextPageToken = _json["nextPageToken"]; | 4137 nextPageToken = _json["nextPageToken"]; |
4138 } | 4138 } |
4139 } | 4139 } |
4140 | 4140 |
4141 core.Map toJson() { | 4141 core.Map<core.String, core.Object> toJson() { |
4142 var _json = new core.Map(); | 4142 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4143 if (history != null) { | 4143 if (history != null) { |
4144 _json["history"] = history.map((value) => (value).toJson()).toList(); | 4144 _json["history"] = history.map((value) => (value).toJson()).toList(); |
4145 } | 4145 } |
4146 if (historyId != null) { | 4146 if (historyId != null) { |
4147 _json["historyId"] = historyId; | 4147 _json["historyId"] = historyId; |
4148 } | 4148 } |
4149 if (nextPageToken != null) { | 4149 if (nextPageToken != null) { |
4150 _json["nextPageToken"] = nextPageToken; | 4150 _json["nextPageToken"] = nextPageToken; |
4151 } | 4151 } |
4152 return _json; | 4152 return _json; |
4153 } | 4153 } |
4154 } | 4154 } |
4155 | 4155 |
4156 class ListLabelsResponse { | 4156 class ListLabelsResponse { |
4157 /** List of labels. */ | 4157 /** List of labels. */ |
4158 core.List<Label> labels; | 4158 core.List<Label> labels; |
4159 | 4159 |
4160 ListLabelsResponse(); | 4160 ListLabelsResponse(); |
4161 | 4161 |
4162 ListLabelsResponse.fromJson(core.Map _json) { | 4162 ListLabelsResponse.fromJson(core.Map _json) { |
4163 if (_json.containsKey("labels")) { | 4163 if (_json.containsKey("labels")) { |
4164 labels = _json["labels"].map((value) => new Label.fromJson(value)).toList(
); | 4164 labels = _json["labels"].map((value) => new Label.fromJson(value)).toList(
); |
4165 } | 4165 } |
4166 } | 4166 } |
4167 | 4167 |
4168 core.Map toJson() { | 4168 core.Map<core.String, core.Object> toJson() { |
4169 var _json = new core.Map(); | 4169 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4170 if (labels != null) { | 4170 if (labels != null) { |
4171 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 4171 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
4172 } | 4172 } |
4173 return _json; | 4173 return _json; |
4174 } | 4174 } |
4175 } | 4175 } |
4176 | 4176 |
4177 class ListMessagesResponse { | 4177 class ListMessagesResponse { |
4178 /** List of messages. */ | 4178 /** List of messages. */ |
4179 core.List<Message> messages; | 4179 core.List<Message> messages; |
4180 /** Token to retrieve the next page of results in the list. */ | 4180 /** Token to retrieve the next page of results in the list. */ |
4181 core.String nextPageToken; | 4181 core.String nextPageToken; |
4182 /** Estimated total number of results. */ | 4182 /** Estimated total number of results. */ |
4183 core.int resultSizeEstimate; | 4183 core.int resultSizeEstimate; |
4184 | 4184 |
4185 ListMessagesResponse(); | 4185 ListMessagesResponse(); |
4186 | 4186 |
4187 ListMessagesResponse.fromJson(core.Map _json) { | 4187 ListMessagesResponse.fromJson(core.Map _json) { |
4188 if (_json.containsKey("messages")) { | 4188 if (_json.containsKey("messages")) { |
4189 messages = _json["messages"].map((value) => new Message.fromJson(value)).t
oList(); | 4189 messages = _json["messages"].map((value) => new Message.fromJson(value)).t
oList(); |
4190 } | 4190 } |
4191 if (_json.containsKey("nextPageToken")) { | 4191 if (_json.containsKey("nextPageToken")) { |
4192 nextPageToken = _json["nextPageToken"]; | 4192 nextPageToken = _json["nextPageToken"]; |
4193 } | 4193 } |
4194 if (_json.containsKey("resultSizeEstimate")) { | 4194 if (_json.containsKey("resultSizeEstimate")) { |
4195 resultSizeEstimate = _json["resultSizeEstimate"]; | 4195 resultSizeEstimate = _json["resultSizeEstimate"]; |
4196 } | 4196 } |
4197 } | 4197 } |
4198 | 4198 |
4199 core.Map toJson() { | 4199 core.Map<core.String, core.Object> toJson() { |
4200 var _json = new core.Map(); | 4200 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4201 if (messages != null) { | 4201 if (messages != null) { |
4202 _json["messages"] = messages.map((value) => (value).toJson()).toList(); | 4202 _json["messages"] = messages.map((value) => (value).toJson()).toList(); |
4203 } | 4203 } |
4204 if (nextPageToken != null) { | 4204 if (nextPageToken != null) { |
4205 _json["nextPageToken"] = nextPageToken; | 4205 _json["nextPageToken"] = nextPageToken; |
4206 } | 4206 } |
4207 if (resultSizeEstimate != null) { | 4207 if (resultSizeEstimate != null) { |
4208 _json["resultSizeEstimate"] = resultSizeEstimate; | 4208 _json["resultSizeEstimate"] = resultSizeEstimate; |
4209 } | 4209 } |
4210 return _json; | 4210 return _json; |
4211 } | 4211 } |
4212 } | 4212 } |
4213 | 4213 |
4214 /** Response for the ListSendAs method. */ | 4214 /** Response for the ListSendAs method. */ |
4215 class ListSendAsResponse { | 4215 class ListSendAsResponse { |
4216 /** List of send-as aliases. */ | 4216 /** List of send-as aliases. */ |
4217 core.List<SendAs> sendAs; | 4217 core.List<SendAs> sendAs; |
4218 | 4218 |
4219 ListSendAsResponse(); | 4219 ListSendAsResponse(); |
4220 | 4220 |
4221 ListSendAsResponse.fromJson(core.Map _json) { | 4221 ListSendAsResponse.fromJson(core.Map _json) { |
4222 if (_json.containsKey("sendAs")) { | 4222 if (_json.containsKey("sendAs")) { |
4223 sendAs = _json["sendAs"].map((value) => new SendAs.fromJson(value)).toList
(); | 4223 sendAs = _json["sendAs"].map((value) => new SendAs.fromJson(value)).toList
(); |
4224 } | 4224 } |
4225 } | 4225 } |
4226 | 4226 |
4227 core.Map toJson() { | 4227 core.Map<core.String, core.Object> toJson() { |
4228 var _json = new core.Map(); | 4228 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4229 if (sendAs != null) { | 4229 if (sendAs != null) { |
4230 _json["sendAs"] = sendAs.map((value) => (value).toJson()).toList(); | 4230 _json["sendAs"] = sendAs.map((value) => (value).toJson()).toList(); |
4231 } | 4231 } |
4232 return _json; | 4232 return _json; |
4233 } | 4233 } |
4234 } | 4234 } |
4235 | 4235 |
4236 class ListSmimeInfoResponse { | 4236 class ListSmimeInfoResponse { |
4237 /** List of SmimeInfo. */ | 4237 /** List of SmimeInfo. */ |
4238 core.List<SmimeInfo> smimeInfo; | 4238 core.List<SmimeInfo> smimeInfo; |
4239 | 4239 |
4240 ListSmimeInfoResponse(); | 4240 ListSmimeInfoResponse(); |
4241 | 4241 |
4242 ListSmimeInfoResponse.fromJson(core.Map _json) { | 4242 ListSmimeInfoResponse.fromJson(core.Map _json) { |
4243 if (_json.containsKey("smimeInfo")) { | 4243 if (_json.containsKey("smimeInfo")) { |
4244 smimeInfo = _json["smimeInfo"].map((value) => new SmimeInfo.fromJson(value
)).toList(); | 4244 smimeInfo = _json["smimeInfo"].map((value) => new SmimeInfo.fromJson(value
)).toList(); |
4245 } | 4245 } |
4246 } | 4246 } |
4247 | 4247 |
4248 core.Map toJson() { | 4248 core.Map<core.String, core.Object> toJson() { |
4249 var _json = new core.Map(); | 4249 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4250 if (smimeInfo != null) { | 4250 if (smimeInfo != null) { |
4251 _json["smimeInfo"] = smimeInfo.map((value) => (value).toJson()).toList(); | 4251 _json["smimeInfo"] = smimeInfo.map((value) => (value).toJson()).toList(); |
4252 } | 4252 } |
4253 return _json; | 4253 return _json; |
4254 } | 4254 } |
4255 } | 4255 } |
4256 | 4256 |
4257 class ListThreadsResponse { | 4257 class ListThreadsResponse { |
4258 /** Page token to retrieve the next page of results in the list. */ | 4258 /** Page token to retrieve the next page of results in the list. */ |
4259 core.String nextPageToken; | 4259 core.String nextPageToken; |
4260 /** Estimated total number of results. */ | 4260 /** Estimated total number of results. */ |
4261 core.int resultSizeEstimate; | 4261 core.int resultSizeEstimate; |
4262 /** List of threads. */ | 4262 /** List of threads. */ |
4263 core.List<Thread> threads; | 4263 core.List<Thread> threads; |
4264 | 4264 |
4265 ListThreadsResponse(); | 4265 ListThreadsResponse(); |
4266 | 4266 |
4267 ListThreadsResponse.fromJson(core.Map _json) { | 4267 ListThreadsResponse.fromJson(core.Map _json) { |
4268 if (_json.containsKey("nextPageToken")) { | 4268 if (_json.containsKey("nextPageToken")) { |
4269 nextPageToken = _json["nextPageToken"]; | 4269 nextPageToken = _json["nextPageToken"]; |
4270 } | 4270 } |
4271 if (_json.containsKey("resultSizeEstimate")) { | 4271 if (_json.containsKey("resultSizeEstimate")) { |
4272 resultSizeEstimate = _json["resultSizeEstimate"]; | 4272 resultSizeEstimate = _json["resultSizeEstimate"]; |
4273 } | 4273 } |
4274 if (_json.containsKey("threads")) { | 4274 if (_json.containsKey("threads")) { |
4275 threads = _json["threads"].map((value) => new Thread.fromJson(value)).toLi
st(); | 4275 threads = _json["threads"].map((value) => new Thread.fromJson(value)).toLi
st(); |
4276 } | 4276 } |
4277 } | 4277 } |
4278 | 4278 |
4279 core.Map toJson() { | 4279 core.Map<core.String, core.Object> toJson() { |
4280 var _json = new core.Map(); | 4280 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4281 if (nextPageToken != null) { | 4281 if (nextPageToken != null) { |
4282 _json["nextPageToken"] = nextPageToken; | 4282 _json["nextPageToken"] = nextPageToken; |
4283 } | 4283 } |
4284 if (resultSizeEstimate != null) { | 4284 if (resultSizeEstimate != null) { |
4285 _json["resultSizeEstimate"] = resultSizeEstimate; | 4285 _json["resultSizeEstimate"] = resultSizeEstimate; |
4286 } | 4286 } |
4287 if (threads != null) { | 4287 if (threads != null) { |
4288 _json["threads"] = threads.map((value) => (value).toJson()).toList(); | 4288 _json["threads"] = threads.map((value) => (value).toJson()).toList(); |
4289 } | 4289 } |
4290 return _json; | 4290 return _json; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4362 sizeEstimate = _json["sizeEstimate"]; | 4362 sizeEstimate = _json["sizeEstimate"]; |
4363 } | 4363 } |
4364 if (_json.containsKey("snippet")) { | 4364 if (_json.containsKey("snippet")) { |
4365 snippet = _json["snippet"]; | 4365 snippet = _json["snippet"]; |
4366 } | 4366 } |
4367 if (_json.containsKey("threadId")) { | 4367 if (_json.containsKey("threadId")) { |
4368 threadId = _json["threadId"]; | 4368 threadId = _json["threadId"]; |
4369 } | 4369 } |
4370 } | 4370 } |
4371 | 4371 |
4372 core.Map toJson() { | 4372 core.Map<core.String, core.Object> toJson() { |
4373 var _json = new core.Map(); | 4373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4374 if (historyId != null) { | 4374 if (historyId != null) { |
4375 _json["historyId"] = historyId; | 4375 _json["historyId"] = historyId; |
4376 } | 4376 } |
4377 if (id != null) { | 4377 if (id != null) { |
4378 _json["id"] = id; | 4378 _json["id"] = id; |
4379 } | 4379 } |
4380 if (internalDate != null) { | 4380 if (internalDate != null) { |
4381 _json["internalDate"] = internalDate; | 4381 _json["internalDate"] = internalDate; |
4382 } | 4382 } |
4383 if (labelIds != null) { | 4383 if (labelIds != null) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4448 mimeType = _json["mimeType"]; | 4448 mimeType = _json["mimeType"]; |
4449 } | 4449 } |
4450 if (_json.containsKey("partId")) { | 4450 if (_json.containsKey("partId")) { |
4451 partId = _json["partId"]; | 4451 partId = _json["partId"]; |
4452 } | 4452 } |
4453 if (_json.containsKey("parts")) { | 4453 if (_json.containsKey("parts")) { |
4454 parts = _json["parts"].map((value) => new MessagePart.fromJson(value)).toL
ist(); | 4454 parts = _json["parts"].map((value) => new MessagePart.fromJson(value)).toL
ist(); |
4455 } | 4455 } |
4456 } | 4456 } |
4457 | 4457 |
4458 core.Map toJson() { | 4458 core.Map<core.String, core.Object> toJson() { |
4459 var _json = new core.Map(); | 4459 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4460 if (body != null) { | 4460 if (body != null) { |
4461 _json["body"] = (body).toJson(); | 4461 _json["body"] = (body).toJson(); |
4462 } | 4462 } |
4463 if (filename != null) { | 4463 if (filename != null) { |
4464 _json["filename"] = filename; | 4464 _json["filename"] = filename; |
4465 } | 4465 } |
4466 if (headers != null) { | 4466 if (headers != null) { |
4467 _json["headers"] = headers.map((value) => (value).toJson()).toList(); | 4467 _json["headers"] = headers.map((value) => (value).toJson()).toList(); |
4468 } | 4468 } |
4469 if (mimeType != null) { | 4469 if (mimeType != null) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4511 attachmentId = _json["attachmentId"]; | 4511 attachmentId = _json["attachmentId"]; |
4512 } | 4512 } |
4513 if (_json.containsKey("data")) { | 4513 if (_json.containsKey("data")) { |
4514 data = _json["data"]; | 4514 data = _json["data"]; |
4515 } | 4515 } |
4516 if (_json.containsKey("size")) { | 4516 if (_json.containsKey("size")) { |
4517 size = _json["size"]; | 4517 size = _json["size"]; |
4518 } | 4518 } |
4519 } | 4519 } |
4520 | 4520 |
4521 core.Map toJson() { | 4521 core.Map<core.String, core.Object> toJson() { |
4522 var _json = new core.Map(); | 4522 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4523 if (attachmentId != null) { | 4523 if (attachmentId != null) { |
4524 _json["attachmentId"] = attachmentId; | 4524 _json["attachmentId"] = attachmentId; |
4525 } | 4525 } |
4526 if (data != null) { | 4526 if (data != null) { |
4527 _json["data"] = data; | 4527 _json["data"] = data; |
4528 } | 4528 } |
4529 if (size != null) { | 4529 if (size != null) { |
4530 _json["size"] = size; | 4530 _json["size"] = size; |
4531 } | 4531 } |
4532 return _json; | 4532 return _json; |
(...skipping 13 matching lines...) Expand all Loading... |
4546 | 4546 |
4547 MessagePartHeader.fromJson(core.Map _json) { | 4547 MessagePartHeader.fromJson(core.Map _json) { |
4548 if (_json.containsKey("name")) { | 4548 if (_json.containsKey("name")) { |
4549 name = _json["name"]; | 4549 name = _json["name"]; |
4550 } | 4550 } |
4551 if (_json.containsKey("value")) { | 4551 if (_json.containsKey("value")) { |
4552 value = _json["value"]; | 4552 value = _json["value"]; |
4553 } | 4553 } |
4554 } | 4554 } |
4555 | 4555 |
4556 core.Map toJson() { | 4556 core.Map<core.String, core.Object> toJson() { |
4557 var _json = new core.Map(); | 4557 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4558 if (name != null) { | 4558 if (name != null) { |
4559 _json["name"] = name; | 4559 _json["name"] = name; |
4560 } | 4560 } |
4561 if (value != null) { | 4561 if (value != null) { |
4562 _json["value"] = value; | 4562 _json["value"] = value; |
4563 } | 4563 } |
4564 return _json; | 4564 return _json; |
4565 } | 4565 } |
4566 } | 4566 } |
4567 | 4567 |
4568 class ModifyMessageRequest { | 4568 class ModifyMessageRequest { |
4569 /** A list of IDs of labels to add to this message. */ | 4569 /** A list of IDs of labels to add to this message. */ |
4570 core.List<core.String> addLabelIds; | 4570 core.List<core.String> addLabelIds; |
4571 /** A list IDs of labels to remove from this message. */ | 4571 /** A list IDs of labels to remove from this message. */ |
4572 core.List<core.String> removeLabelIds; | 4572 core.List<core.String> removeLabelIds; |
4573 | 4573 |
4574 ModifyMessageRequest(); | 4574 ModifyMessageRequest(); |
4575 | 4575 |
4576 ModifyMessageRequest.fromJson(core.Map _json) { | 4576 ModifyMessageRequest.fromJson(core.Map _json) { |
4577 if (_json.containsKey("addLabelIds")) { | 4577 if (_json.containsKey("addLabelIds")) { |
4578 addLabelIds = _json["addLabelIds"]; | 4578 addLabelIds = _json["addLabelIds"]; |
4579 } | 4579 } |
4580 if (_json.containsKey("removeLabelIds")) { | 4580 if (_json.containsKey("removeLabelIds")) { |
4581 removeLabelIds = _json["removeLabelIds"]; | 4581 removeLabelIds = _json["removeLabelIds"]; |
4582 } | 4582 } |
4583 } | 4583 } |
4584 | 4584 |
4585 core.Map toJson() { | 4585 core.Map<core.String, core.Object> toJson() { |
4586 var _json = new core.Map(); | 4586 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4587 if (addLabelIds != null) { | 4587 if (addLabelIds != null) { |
4588 _json["addLabelIds"] = addLabelIds; | 4588 _json["addLabelIds"] = addLabelIds; |
4589 } | 4589 } |
4590 if (removeLabelIds != null) { | 4590 if (removeLabelIds != null) { |
4591 _json["removeLabelIds"] = removeLabelIds; | 4591 _json["removeLabelIds"] = removeLabelIds; |
4592 } | 4592 } |
4593 return _json; | 4593 return _json; |
4594 } | 4594 } |
4595 } | 4595 } |
4596 | 4596 |
4597 class ModifyThreadRequest { | 4597 class ModifyThreadRequest { |
4598 /** A list of IDs of labels to add to this thread. */ | 4598 /** A list of IDs of labels to add to this thread. */ |
4599 core.List<core.String> addLabelIds; | 4599 core.List<core.String> addLabelIds; |
4600 /** A list of IDs of labels to remove from this thread. */ | 4600 /** A list of IDs of labels to remove from this thread. */ |
4601 core.List<core.String> removeLabelIds; | 4601 core.List<core.String> removeLabelIds; |
4602 | 4602 |
4603 ModifyThreadRequest(); | 4603 ModifyThreadRequest(); |
4604 | 4604 |
4605 ModifyThreadRequest.fromJson(core.Map _json) { | 4605 ModifyThreadRequest.fromJson(core.Map _json) { |
4606 if (_json.containsKey("addLabelIds")) { | 4606 if (_json.containsKey("addLabelIds")) { |
4607 addLabelIds = _json["addLabelIds"]; | 4607 addLabelIds = _json["addLabelIds"]; |
4608 } | 4608 } |
4609 if (_json.containsKey("removeLabelIds")) { | 4609 if (_json.containsKey("removeLabelIds")) { |
4610 removeLabelIds = _json["removeLabelIds"]; | 4610 removeLabelIds = _json["removeLabelIds"]; |
4611 } | 4611 } |
4612 } | 4612 } |
4613 | 4613 |
4614 core.Map toJson() { | 4614 core.Map<core.String, core.Object> toJson() { |
4615 var _json = new core.Map(); | 4615 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4616 if (addLabelIds != null) { | 4616 if (addLabelIds != null) { |
4617 _json["addLabelIds"] = addLabelIds; | 4617 _json["addLabelIds"] = addLabelIds; |
4618 } | 4618 } |
4619 if (removeLabelIds != null) { | 4619 if (removeLabelIds != null) { |
4620 _json["removeLabelIds"] = removeLabelIds; | 4620 _json["removeLabelIds"] = removeLabelIds; |
4621 } | 4621 } |
4622 return _json; | 4622 return _json; |
4623 } | 4623 } |
4624 } | 4624 } |
4625 | 4625 |
(...skipping 24 matching lines...) Expand all Loading... |
4650 | 4650 |
4651 PopSettings.fromJson(core.Map _json) { | 4651 PopSettings.fromJson(core.Map _json) { |
4652 if (_json.containsKey("accessWindow")) { | 4652 if (_json.containsKey("accessWindow")) { |
4653 accessWindow = _json["accessWindow"]; | 4653 accessWindow = _json["accessWindow"]; |
4654 } | 4654 } |
4655 if (_json.containsKey("disposition")) { | 4655 if (_json.containsKey("disposition")) { |
4656 disposition = _json["disposition"]; | 4656 disposition = _json["disposition"]; |
4657 } | 4657 } |
4658 } | 4658 } |
4659 | 4659 |
4660 core.Map toJson() { | 4660 core.Map<core.String, core.Object> toJson() { |
4661 var _json = new core.Map(); | 4661 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4662 if (accessWindow != null) { | 4662 if (accessWindow != null) { |
4663 _json["accessWindow"] = accessWindow; | 4663 _json["accessWindow"] = accessWindow; |
4664 } | 4664 } |
4665 if (disposition != null) { | 4665 if (disposition != null) { |
4666 _json["disposition"] = disposition; | 4666 _json["disposition"] = disposition; |
4667 } | 4667 } |
4668 return _json; | 4668 return _json; |
4669 } | 4669 } |
4670 } | 4670 } |
4671 | 4671 |
(...skipping 18 matching lines...) Expand all Loading... |
4690 historyId = _json["historyId"]; | 4690 historyId = _json["historyId"]; |
4691 } | 4691 } |
4692 if (_json.containsKey("messagesTotal")) { | 4692 if (_json.containsKey("messagesTotal")) { |
4693 messagesTotal = _json["messagesTotal"]; | 4693 messagesTotal = _json["messagesTotal"]; |
4694 } | 4694 } |
4695 if (_json.containsKey("threadsTotal")) { | 4695 if (_json.containsKey("threadsTotal")) { |
4696 threadsTotal = _json["threadsTotal"]; | 4696 threadsTotal = _json["threadsTotal"]; |
4697 } | 4697 } |
4698 } | 4698 } |
4699 | 4699 |
4700 core.Map toJson() { | 4700 core.Map<core.String, core.Object> toJson() { |
4701 var _json = new core.Map(); | 4701 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4702 if (emailAddress != null) { | 4702 if (emailAddress != null) { |
4703 _json["emailAddress"] = emailAddress; | 4703 _json["emailAddress"] = emailAddress; |
4704 } | 4704 } |
4705 if (historyId != null) { | 4705 if (historyId != null) { |
4706 _json["historyId"] = historyId; | 4706 _json["historyId"] = historyId; |
4707 } | 4707 } |
4708 if (messagesTotal != null) { | 4708 if (messagesTotal != null) { |
4709 _json["messagesTotal"] = messagesTotal; | 4709 _json["messagesTotal"] = messagesTotal; |
4710 } | 4710 } |
4711 if (threadsTotal != null) { | 4711 if (threadsTotal != null) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4806 smtpMsa = new SmtpMsa.fromJson(_json["smtpMsa"]); | 4806 smtpMsa = new SmtpMsa.fromJson(_json["smtpMsa"]); |
4807 } | 4807 } |
4808 if (_json.containsKey("treatAsAlias")) { | 4808 if (_json.containsKey("treatAsAlias")) { |
4809 treatAsAlias = _json["treatAsAlias"]; | 4809 treatAsAlias = _json["treatAsAlias"]; |
4810 } | 4810 } |
4811 if (_json.containsKey("verificationStatus")) { | 4811 if (_json.containsKey("verificationStatus")) { |
4812 verificationStatus = _json["verificationStatus"]; | 4812 verificationStatus = _json["verificationStatus"]; |
4813 } | 4813 } |
4814 } | 4814 } |
4815 | 4815 |
4816 core.Map toJson() { | 4816 core.Map<core.String, core.Object> toJson() { |
4817 var _json = new core.Map(); | 4817 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4818 if (displayName != null) { | 4818 if (displayName != null) { |
4819 _json["displayName"] = displayName; | 4819 _json["displayName"] = displayName; |
4820 } | 4820 } |
4821 if (isDefault != null) { | 4821 if (isDefault != null) { |
4822 _json["isDefault"] = isDefault; | 4822 _json["isDefault"] = isDefault; |
4823 } | 4823 } |
4824 if (isPrimary != null) { | 4824 if (isPrimary != null) { |
4825 _json["isPrimary"] = isPrimary; | 4825 _json["isPrimary"] = isPrimary; |
4826 } | 4826 } |
4827 if (replyToAddress != null) { | 4827 if (replyToAddress != null) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4901 issuerCn = _json["issuerCn"]; | 4901 issuerCn = _json["issuerCn"]; |
4902 } | 4902 } |
4903 if (_json.containsKey("pem")) { | 4903 if (_json.containsKey("pem")) { |
4904 pem = _json["pem"]; | 4904 pem = _json["pem"]; |
4905 } | 4905 } |
4906 if (_json.containsKey("pkcs12")) { | 4906 if (_json.containsKey("pkcs12")) { |
4907 pkcs12 = _json["pkcs12"]; | 4907 pkcs12 = _json["pkcs12"]; |
4908 } | 4908 } |
4909 } | 4909 } |
4910 | 4910 |
4911 core.Map toJson() { | 4911 core.Map<core.String, core.Object> toJson() { |
4912 var _json = new core.Map(); | 4912 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4913 if (encryptedKeyPassword != null) { | 4913 if (encryptedKeyPassword != null) { |
4914 _json["encryptedKeyPassword"] = encryptedKeyPassword; | 4914 _json["encryptedKeyPassword"] = encryptedKeyPassword; |
4915 } | 4915 } |
4916 if (expiration != null) { | 4916 if (expiration != null) { |
4917 _json["expiration"] = expiration; | 4917 _json["expiration"] = expiration; |
4918 } | 4918 } |
4919 if (id != null) { | 4919 if (id != null) { |
4920 _json["id"] = id; | 4920 _json["id"] = id; |
4921 } | 4921 } |
4922 if (isDefault != null) { | 4922 if (isDefault != null) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4977 port = _json["port"]; | 4977 port = _json["port"]; |
4978 } | 4978 } |
4979 if (_json.containsKey("securityMode")) { | 4979 if (_json.containsKey("securityMode")) { |
4980 securityMode = _json["securityMode"]; | 4980 securityMode = _json["securityMode"]; |
4981 } | 4981 } |
4982 if (_json.containsKey("username")) { | 4982 if (_json.containsKey("username")) { |
4983 username = _json["username"]; | 4983 username = _json["username"]; |
4984 } | 4984 } |
4985 } | 4985 } |
4986 | 4986 |
4987 core.Map toJson() { | 4987 core.Map<core.String, core.Object> toJson() { |
4988 var _json = new core.Map(); | 4988 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4989 if (host != null) { | 4989 if (host != null) { |
4990 _json["host"] = host; | 4990 _json["host"] = host; |
4991 } | 4991 } |
4992 if (password != null) { | 4992 if (password != null) { |
4993 _json["password"] = password; | 4993 _json["password"] = password; |
4994 } | 4994 } |
4995 if (port != null) { | 4995 if (port != null) { |
4996 _json["port"] = port; | 4996 _json["port"] = port; |
4997 } | 4997 } |
4998 if (securityMode != null) { | 4998 if (securityMode != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
5026 id = _json["id"]; | 5026 id = _json["id"]; |
5027 } | 5027 } |
5028 if (_json.containsKey("messages")) { | 5028 if (_json.containsKey("messages")) { |
5029 messages = _json["messages"].map((value) => new Message.fromJson(value)).t
oList(); | 5029 messages = _json["messages"].map((value) => new Message.fromJson(value)).t
oList(); |
5030 } | 5030 } |
5031 if (_json.containsKey("snippet")) { | 5031 if (_json.containsKey("snippet")) { |
5032 snippet = _json["snippet"]; | 5032 snippet = _json["snippet"]; |
5033 } | 5033 } |
5034 } | 5034 } |
5035 | 5035 |
5036 core.Map toJson() { | 5036 core.Map<core.String, core.Object> toJson() { |
5037 var _json = new core.Map(); | 5037 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5038 if (historyId != null) { | 5038 if (historyId != null) { |
5039 _json["historyId"] = historyId; | 5039 _json["historyId"] = historyId; |
5040 } | 5040 } |
5041 if (id != null) { | 5041 if (id != null) { |
5042 _json["id"] = id; | 5042 _json["id"] = id; |
5043 } | 5043 } |
5044 if (messages != null) { | 5044 if (messages != null) { |
5045 _json["messages"] = messages.map((value) => (value).toJson()).toList(); | 5045 _json["messages"] = messages.map((value) => (value).toJson()).toList(); |
5046 } | 5046 } |
5047 if (snippet != null) { | 5047 if (snippet != null) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5119 restrictToContacts = _json["restrictToContacts"]; | 5119 restrictToContacts = _json["restrictToContacts"]; |
5120 } | 5120 } |
5121 if (_json.containsKey("restrictToDomain")) { | 5121 if (_json.containsKey("restrictToDomain")) { |
5122 restrictToDomain = _json["restrictToDomain"]; | 5122 restrictToDomain = _json["restrictToDomain"]; |
5123 } | 5123 } |
5124 if (_json.containsKey("startTime")) { | 5124 if (_json.containsKey("startTime")) { |
5125 startTime = _json["startTime"]; | 5125 startTime = _json["startTime"]; |
5126 } | 5126 } |
5127 } | 5127 } |
5128 | 5128 |
5129 core.Map toJson() { | 5129 core.Map<core.String, core.Object> toJson() { |
5130 var _json = new core.Map(); | 5130 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5131 if (enableAutoReply != null) { | 5131 if (enableAutoReply != null) { |
5132 _json["enableAutoReply"] = enableAutoReply; | 5132 _json["enableAutoReply"] = enableAutoReply; |
5133 } | 5133 } |
5134 if (endTime != null) { | 5134 if (endTime != null) { |
5135 _json["endTime"] = endTime; | 5135 _json["endTime"] = endTime; |
5136 } | 5136 } |
5137 if (responseBodyHtml != null) { | 5137 if (responseBodyHtml != null) { |
5138 _json["responseBodyHtml"] = responseBodyHtml; | 5138 _json["responseBodyHtml"] = responseBodyHtml; |
5139 } | 5139 } |
5140 if (responseBodyPlainText != null) { | 5140 if (responseBodyPlainText != null) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5190 labelFilterAction = _json["labelFilterAction"]; | 5190 labelFilterAction = _json["labelFilterAction"]; |
5191 } | 5191 } |
5192 if (_json.containsKey("labelIds")) { | 5192 if (_json.containsKey("labelIds")) { |
5193 labelIds = _json["labelIds"]; | 5193 labelIds = _json["labelIds"]; |
5194 } | 5194 } |
5195 if (_json.containsKey("topicName")) { | 5195 if (_json.containsKey("topicName")) { |
5196 topicName = _json["topicName"]; | 5196 topicName = _json["topicName"]; |
5197 } | 5197 } |
5198 } | 5198 } |
5199 | 5199 |
5200 core.Map toJson() { | 5200 core.Map<core.String, core.Object> toJson() { |
5201 var _json = new core.Map(); | 5201 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5202 if (labelFilterAction != null) { | 5202 if (labelFilterAction != null) { |
5203 _json["labelFilterAction"] = labelFilterAction; | 5203 _json["labelFilterAction"] = labelFilterAction; |
5204 } | 5204 } |
5205 if (labelIds != null) { | 5205 if (labelIds != null) { |
5206 _json["labelIds"] = labelIds; | 5206 _json["labelIds"] = labelIds; |
5207 } | 5207 } |
5208 if (topicName != null) { | 5208 if (topicName != null) { |
5209 _json["topicName"] = topicName; | 5209 _json["topicName"] = topicName; |
5210 } | 5210 } |
5211 return _json; | 5211 return _json; |
(...skipping 14 matching lines...) Expand all Loading... |
5226 | 5226 |
5227 WatchResponse.fromJson(core.Map _json) { | 5227 WatchResponse.fromJson(core.Map _json) { |
5228 if (_json.containsKey("expiration")) { | 5228 if (_json.containsKey("expiration")) { |
5229 expiration = _json["expiration"]; | 5229 expiration = _json["expiration"]; |
5230 } | 5230 } |
5231 if (_json.containsKey("historyId")) { | 5231 if (_json.containsKey("historyId")) { |
5232 historyId = _json["historyId"]; | 5232 historyId = _json["historyId"]; |
5233 } | 5233 } |
5234 } | 5234 } |
5235 | 5235 |
5236 core.Map toJson() { | 5236 core.Map<core.String, core.Object> toJson() { |
5237 var _json = new core.Map(); | 5237 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5238 if (expiration != null) { | 5238 if (expiration != null) { |
5239 _json["expiration"] = expiration; | 5239 _json["expiration"] = expiration; |
5240 } | 5240 } |
5241 if (historyId != null) { | 5241 if (historyId != null) { |
5242 _json["historyId"] = historyId; | 5242 _json["historyId"] = historyId; |
5243 } | 5243 } |
5244 return _json; | 5244 return _json; |
5245 } | 5245 } |
5246 } | 5246 } |
OLD | NEW |