| 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.calendar.v3; | 3 library googleapis.calendar.v3; |
| 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 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 * cannot handle the absence of an email address value in the mentioned | 1592 * cannot handle the absence of an email address value in the mentioned |
| 1593 * places. Optional. The default is False. | 1593 * places. Optional. The default is False. |
| 1594 * | 1594 * |
| 1595 * [iCalUID] - Specifies event ID in the iCalendar format to be included in | 1595 * [iCalUID] - Specifies event ID in the iCalendar format to be included in |
| 1596 * the response. Optional. | 1596 * the response. Optional. |
| 1597 * | 1597 * |
| 1598 * [maxAttendees] - The maximum number of attendees to include in the | 1598 * [maxAttendees] - The maximum number of attendees to include in the |
| 1599 * response. If there are more than the specified number of attendees, only | 1599 * response. If there are more than the specified number of attendees, only |
| 1600 * the participant is returned. Optional. | 1600 * the participant is returned. Optional. |
| 1601 * | 1601 * |
| 1602 * [maxResults] - Maximum number of events returned on one result page. By | 1602 * [maxResults] - Maximum number of events returned on one result page. The |
| 1603 * number of events in the resulting page may be less than this value, or none |
| 1604 * at all, even if there are more events matching the query. Incomplete pages |
| 1605 * can be detected by a non-empty nextPageToken field in the response. By |
| 1603 * default the value is 250 events. The page size can never be larger than | 1606 * default the value is 250 events. The page size can never be larger than |
| 1604 * 2500 events. Optional. | 1607 * 2500 events. Optional. |
| 1605 * | 1608 * |
| 1606 * [orderBy] - The order of the events returned in the result. Optional. The | 1609 * [orderBy] - The order of the events returned in the result. Optional. The |
| 1607 * default is an unspecified, stable order. | 1610 * default is an unspecified, stable order. |
| 1608 * Possible string values are: | 1611 * Possible string values are: |
| 1609 * - "startTime" : Order by the start date/time (ascending). This is only | 1612 * - "startTime" : Order by the start date/time (ascending). This is only |
| 1610 * available when querying single events (i.e. the parameter singleEvents is | 1613 * available when querying single events (i.e. the parameter singleEvents is |
| 1611 * True) | 1614 * True) |
| 1612 * - "updated" : Order by last modification time (ascending). | 1615 * - "updated" : Order by last modification time (ascending). |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2053 * cannot handle the absence of an email address value in the mentioned | 2056 * cannot handle the absence of an email address value in the mentioned |
| 2054 * places. Optional. The default is False. | 2057 * places. Optional. The default is False. |
| 2055 * | 2058 * |
| 2056 * [iCalUID] - Specifies event ID in the iCalendar format to be included in | 2059 * [iCalUID] - Specifies event ID in the iCalendar format to be included in |
| 2057 * the response. Optional. | 2060 * the response. Optional. |
| 2058 * | 2061 * |
| 2059 * [maxAttendees] - The maximum number of attendees to include in the | 2062 * [maxAttendees] - The maximum number of attendees to include in the |
| 2060 * response. If there are more than the specified number of attendees, only | 2063 * response. If there are more than the specified number of attendees, only |
| 2061 * the participant is returned. Optional. | 2064 * the participant is returned. Optional. |
| 2062 * | 2065 * |
| 2063 * [maxResults] - Maximum number of events returned on one result page. By | 2066 * [maxResults] - Maximum number of events returned on one result page. The |
| 2067 * number of events in the resulting page may be less than this value, or none |
| 2068 * at all, even if there are more events matching the query. Incomplete pages |
| 2069 * can be detected by a non-empty nextPageToken field in the response. By |
| 2064 * default the value is 250 events. The page size can never be larger than | 2070 * default the value is 250 events. The page size can never be larger than |
| 2065 * 2500 events. Optional. | 2071 * 2500 events. Optional. |
| 2066 * | 2072 * |
| 2067 * [orderBy] - The order of the events returned in the result. Optional. The | 2073 * [orderBy] - The order of the events returned in the result. Optional. The |
| 2068 * default is an unspecified, stable order. | 2074 * default is an unspecified, stable order. |
| 2069 * Possible string values are: | 2075 * Possible string values are: |
| 2070 * - "startTime" : Order by the start date/time (ascending). This is only | 2076 * - "startTime" : Order by the start date/time (ascending). This is only |
| 2071 * available when querying single events (i.e. the parameter singleEvents is | 2077 * available when querying single events (i.e. the parameter singleEvents is |
| 2072 * True) | 2078 * True) |
| 2073 * - "updated" : Order by last modification time (ascending). | 2079 * - "updated" : Order by last modification time (ascending). |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2479 kind = _json["kind"]; | 2485 kind = _json["kind"]; |
| 2480 } | 2486 } |
| 2481 if (_json.containsKey("nextPageToken")) { | 2487 if (_json.containsKey("nextPageToken")) { |
| 2482 nextPageToken = _json["nextPageToken"]; | 2488 nextPageToken = _json["nextPageToken"]; |
| 2483 } | 2489 } |
| 2484 if (_json.containsKey("nextSyncToken")) { | 2490 if (_json.containsKey("nextSyncToken")) { |
| 2485 nextSyncToken = _json["nextSyncToken"]; | 2491 nextSyncToken = _json["nextSyncToken"]; |
| 2486 } | 2492 } |
| 2487 } | 2493 } |
| 2488 | 2494 |
| 2489 core.Map toJson() { | 2495 core.Map<core.String, core.Object> toJson() { |
| 2490 var _json = new core.Map(); | 2496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2491 if (etag != null) { | 2497 if (etag != null) { |
| 2492 _json["etag"] = etag; | 2498 _json["etag"] = etag; |
| 2493 } | 2499 } |
| 2494 if (items != null) { | 2500 if (items != null) { |
| 2495 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2501 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2496 } | 2502 } |
| 2497 if (kind != null) { | 2503 if (kind != null) { |
| 2498 _json["kind"] = kind; | 2504 _json["kind"] = kind; |
| 2499 } | 2505 } |
| 2500 if (nextPageToken != null) { | 2506 if (nextPageToken != null) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2528 | 2534 |
| 2529 AclRuleScope.fromJson(core.Map _json) { | 2535 AclRuleScope.fromJson(core.Map _json) { |
| 2530 if (_json.containsKey("type")) { | 2536 if (_json.containsKey("type")) { |
| 2531 type = _json["type"]; | 2537 type = _json["type"]; |
| 2532 } | 2538 } |
| 2533 if (_json.containsKey("value")) { | 2539 if (_json.containsKey("value")) { |
| 2534 value = _json["value"]; | 2540 value = _json["value"]; |
| 2535 } | 2541 } |
| 2536 } | 2542 } |
| 2537 | 2543 |
| 2538 core.Map toJson() { | 2544 core.Map<core.String, core.Object> toJson() { |
| 2539 var _json = new core.Map(); | 2545 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2540 if (type != null) { | 2546 if (type != null) { |
| 2541 _json["type"] = type; | 2547 _json["type"] = type; |
| 2542 } | 2548 } |
| 2543 if (value != null) { | 2549 if (value != null) { |
| 2544 _json["value"] = value; | 2550 _json["value"] = value; |
| 2545 } | 2551 } |
| 2546 return _json; | 2552 return _json; |
| 2547 } | 2553 } |
| 2548 } | 2554 } |
| 2549 | 2555 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2583 kind = _json["kind"]; | 2589 kind = _json["kind"]; |
| 2584 } | 2590 } |
| 2585 if (_json.containsKey("role")) { | 2591 if (_json.containsKey("role")) { |
| 2586 role = _json["role"]; | 2592 role = _json["role"]; |
| 2587 } | 2593 } |
| 2588 if (_json.containsKey("scope")) { | 2594 if (_json.containsKey("scope")) { |
| 2589 scope = new AclRuleScope.fromJson(_json["scope"]); | 2595 scope = new AclRuleScope.fromJson(_json["scope"]); |
| 2590 } | 2596 } |
| 2591 } | 2597 } |
| 2592 | 2598 |
| 2593 core.Map toJson() { | 2599 core.Map<core.String, core.Object> toJson() { |
| 2594 var _json = new core.Map(); | 2600 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2595 if (etag != null) { | 2601 if (etag != null) { |
| 2596 _json["etag"] = etag; | 2602 _json["etag"] = etag; |
| 2597 } | 2603 } |
| 2598 if (id != null) { | 2604 if (id != null) { |
| 2599 _json["id"] = id; | 2605 _json["id"] = id; |
| 2600 } | 2606 } |
| 2601 if (kind != null) { | 2607 if (kind != null) { |
| 2602 _json["kind"] = kind; | 2608 _json["kind"] = kind; |
| 2603 } | 2609 } |
| 2604 if (role != null) { | 2610 if (role != null) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2652 location = _json["location"]; | 2658 location = _json["location"]; |
| 2653 } | 2659 } |
| 2654 if (_json.containsKey("summary")) { | 2660 if (_json.containsKey("summary")) { |
| 2655 summary = _json["summary"]; | 2661 summary = _json["summary"]; |
| 2656 } | 2662 } |
| 2657 if (_json.containsKey("timeZone")) { | 2663 if (_json.containsKey("timeZone")) { |
| 2658 timeZone = _json["timeZone"]; | 2664 timeZone = _json["timeZone"]; |
| 2659 } | 2665 } |
| 2660 } | 2666 } |
| 2661 | 2667 |
| 2662 core.Map toJson() { | 2668 core.Map<core.String, core.Object> toJson() { |
| 2663 var _json = new core.Map(); | 2669 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2664 if (description != null) { | 2670 if (description != null) { |
| 2665 _json["description"] = description; | 2671 _json["description"] = description; |
| 2666 } | 2672 } |
| 2667 if (etag != null) { | 2673 if (etag != null) { |
| 2668 _json["etag"] = etag; | 2674 _json["etag"] = etag; |
| 2669 } | 2675 } |
| 2670 if (id != null) { | 2676 if (id != null) { |
| 2671 _json["id"] = id; | 2677 _json["id"] = id; |
| 2672 } | 2678 } |
| 2673 if (kind != null) { | 2679 if (kind != null) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2718 kind = _json["kind"]; | 2724 kind = _json["kind"]; |
| 2719 } | 2725 } |
| 2720 if (_json.containsKey("nextPageToken")) { | 2726 if (_json.containsKey("nextPageToken")) { |
| 2721 nextPageToken = _json["nextPageToken"]; | 2727 nextPageToken = _json["nextPageToken"]; |
| 2722 } | 2728 } |
| 2723 if (_json.containsKey("nextSyncToken")) { | 2729 if (_json.containsKey("nextSyncToken")) { |
| 2724 nextSyncToken = _json["nextSyncToken"]; | 2730 nextSyncToken = _json["nextSyncToken"]; |
| 2725 } | 2731 } |
| 2726 } | 2732 } |
| 2727 | 2733 |
| 2728 core.Map toJson() { | 2734 core.Map<core.String, core.Object> toJson() { |
| 2729 var _json = new core.Map(); | 2735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2730 if (etag != null) { | 2736 if (etag != null) { |
| 2731 _json["etag"] = etag; | 2737 _json["etag"] = etag; |
| 2732 } | 2738 } |
| 2733 if (items != null) { | 2739 if (items != null) { |
| 2734 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2740 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2735 } | 2741 } |
| 2736 if (kind != null) { | 2742 if (kind != null) { |
| 2737 _json["kind"] = kind; | 2743 _json["kind"] = kind; |
| 2738 } | 2744 } |
| 2739 if (nextPageToken != null) { | 2745 if (nextPageToken != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2754 core.List<CalendarNotification> notifications; | 2760 core.List<CalendarNotification> notifications; |
| 2755 | 2761 |
| 2756 CalendarListEntryNotificationSettings(); | 2762 CalendarListEntryNotificationSettings(); |
| 2757 | 2763 |
| 2758 CalendarListEntryNotificationSettings.fromJson(core.Map _json) { | 2764 CalendarListEntryNotificationSettings.fromJson(core.Map _json) { |
| 2759 if (_json.containsKey("notifications")) { | 2765 if (_json.containsKey("notifications")) { |
| 2760 notifications = _json["notifications"].map((value) => new CalendarNotifica
tion.fromJson(value)).toList(); | 2766 notifications = _json["notifications"].map((value) => new CalendarNotifica
tion.fromJson(value)).toList(); |
| 2761 } | 2767 } |
| 2762 } | 2768 } |
| 2763 | 2769 |
| 2764 core.Map toJson() { | 2770 core.Map<core.String, core.Object> toJson() { |
| 2765 var _json = new core.Map(); | 2771 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2766 if (notifications != null) { | 2772 if (notifications != null) { |
| 2767 _json["notifications"] = notifications.map((value) => (value).toJson()).to
List(); | 2773 _json["notifications"] = notifications.map((value) => (value).toJson()).to
List(); |
| 2768 } | 2774 } |
| 2769 return _json; | 2775 return _json; |
| 2770 } | 2776 } |
| 2771 } | 2777 } |
| 2772 | 2778 |
| 2773 class CalendarListEntry { | 2779 class CalendarListEntry { |
| 2774 /** | 2780 /** |
| 2775 * The effective access role that the authenticated user has on the calendar. | 2781 * The effective access role that the authenticated user has on the calendar. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2908 summary = _json["summary"]; | 2914 summary = _json["summary"]; |
| 2909 } | 2915 } |
| 2910 if (_json.containsKey("summaryOverride")) { | 2916 if (_json.containsKey("summaryOverride")) { |
| 2911 summaryOverride = _json["summaryOverride"]; | 2917 summaryOverride = _json["summaryOverride"]; |
| 2912 } | 2918 } |
| 2913 if (_json.containsKey("timeZone")) { | 2919 if (_json.containsKey("timeZone")) { |
| 2914 timeZone = _json["timeZone"]; | 2920 timeZone = _json["timeZone"]; |
| 2915 } | 2921 } |
| 2916 } | 2922 } |
| 2917 | 2923 |
| 2918 core.Map toJson() { | 2924 core.Map<core.String, core.Object> toJson() { |
| 2919 var _json = new core.Map(); | 2925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2920 if (accessRole != null) { | 2926 if (accessRole != null) { |
| 2921 _json["accessRole"] = accessRole; | 2927 _json["accessRole"] = accessRole; |
| 2922 } | 2928 } |
| 2923 if (backgroundColor != null) { | 2929 if (backgroundColor != null) { |
| 2924 _json["backgroundColor"] = backgroundColor; | 2930 _json["backgroundColor"] = backgroundColor; |
| 2925 } | 2931 } |
| 2926 if (colorId != null) { | 2932 if (colorId != null) { |
| 2927 _json["colorId"] = colorId; | 2933 _json["colorId"] = colorId; |
| 2928 } | 2934 } |
| 2929 if (defaultReminders != null) { | 2935 if (defaultReminders != null) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3000 | 3006 |
| 3001 CalendarNotification.fromJson(core.Map _json) { | 3007 CalendarNotification.fromJson(core.Map _json) { |
| 3002 if (_json.containsKey("method")) { | 3008 if (_json.containsKey("method")) { |
| 3003 method = _json["method"]; | 3009 method = _json["method"]; |
| 3004 } | 3010 } |
| 3005 if (_json.containsKey("type")) { | 3011 if (_json.containsKey("type")) { |
| 3006 type = _json["type"]; | 3012 type = _json["type"]; |
| 3007 } | 3013 } |
| 3008 } | 3014 } |
| 3009 | 3015 |
| 3010 core.Map toJson() { | 3016 core.Map<core.String, core.Object> toJson() { |
| 3011 var _json = new core.Map(); | 3017 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3012 if (method != null) { | 3018 if (method != null) { |
| 3013 _json["method"] = method; | 3019 _json["method"] = method; |
| 3014 } | 3020 } |
| 3015 if (type != null) { | 3021 if (type != null) { |
| 3016 _json["type"] = type; | 3022 _json["type"] = type; |
| 3017 } | 3023 } |
| 3018 return _json; | 3024 return _json; |
| 3019 } | 3025 } |
| 3020 } | 3026 } |
| 3021 | 3027 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3081 resourceUri = _json["resourceUri"]; | 3087 resourceUri = _json["resourceUri"]; |
| 3082 } | 3088 } |
| 3083 if (_json.containsKey("token")) { | 3089 if (_json.containsKey("token")) { |
| 3084 token = _json["token"]; | 3090 token = _json["token"]; |
| 3085 } | 3091 } |
| 3086 if (_json.containsKey("type")) { | 3092 if (_json.containsKey("type")) { |
| 3087 type = _json["type"]; | 3093 type = _json["type"]; |
| 3088 } | 3094 } |
| 3089 } | 3095 } |
| 3090 | 3096 |
| 3091 core.Map toJson() { | 3097 core.Map<core.String, core.Object> toJson() { |
| 3092 var _json = new core.Map(); | 3098 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3093 if (address != null) { | 3099 if (address != null) { |
| 3094 _json["address"] = address; | 3100 _json["address"] = address; |
| 3095 } | 3101 } |
| 3096 if (expiration != null) { | 3102 if (expiration != null) { |
| 3097 _json["expiration"] = expiration; | 3103 _json["expiration"] = expiration; |
| 3098 } | 3104 } |
| 3099 if (id != null) { | 3105 if (id != null) { |
| 3100 _json["id"] = id; | 3106 _json["id"] = id; |
| 3101 } | 3107 } |
| 3102 if (kind != null) { | 3108 if (kind != null) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3137 | 3143 |
| 3138 ColorDefinition.fromJson(core.Map _json) { | 3144 ColorDefinition.fromJson(core.Map _json) { |
| 3139 if (_json.containsKey("background")) { | 3145 if (_json.containsKey("background")) { |
| 3140 background = _json["background"]; | 3146 background = _json["background"]; |
| 3141 } | 3147 } |
| 3142 if (_json.containsKey("foreground")) { | 3148 if (_json.containsKey("foreground")) { |
| 3143 foreground = _json["foreground"]; | 3149 foreground = _json["foreground"]; |
| 3144 } | 3150 } |
| 3145 } | 3151 } |
| 3146 | 3152 |
| 3147 core.Map toJson() { | 3153 core.Map<core.String, core.Object> toJson() { |
| 3148 var _json = new core.Map(); | 3154 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3149 if (background != null) { | 3155 if (background != null) { |
| 3150 _json["background"] = background; | 3156 _json["background"] = background; |
| 3151 } | 3157 } |
| 3152 if (foreground != null) { | 3158 if (foreground != null) { |
| 3153 _json["foreground"] = foreground; | 3159 _json["foreground"] = foreground; |
| 3154 } | 3160 } |
| 3155 return _json; | 3161 return _json; |
| 3156 } | 3162 } |
| 3157 } | 3163 } |
| 3158 | 3164 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3174 /** | 3180 /** |
| 3175 * Last modification time of the color palette (as a RFC3339 timestamp). | 3181 * Last modification time of the color palette (as a RFC3339 timestamp). |
| 3176 * Read-only. | 3182 * Read-only. |
| 3177 */ | 3183 */ |
| 3178 core.DateTime updated; | 3184 core.DateTime updated; |
| 3179 | 3185 |
| 3180 Colors(); | 3186 Colors(); |
| 3181 | 3187 |
| 3182 Colors.fromJson(core.Map _json) { | 3188 Colors.fromJson(core.Map _json) { |
| 3183 if (_json.containsKey("calendar")) { | 3189 if (_json.containsKey("calendar")) { |
| 3184 calendar = commons.mapMap(_json["calendar"], (item) => new ColorDefinition
.fromJson(item)); | 3190 calendar = commons.mapMap<core.Map<core.String, core.Object>, ColorDefinit
ion>(_json["calendar"], (core.Map<core.String, core.Object> item) => new ColorDe
finition.fromJson(item)); |
| 3185 } | 3191 } |
| 3186 if (_json.containsKey("event")) { | 3192 if (_json.containsKey("event")) { |
| 3187 event = commons.mapMap(_json["event"], (item) => new ColorDefinition.fromJ
son(item)); | 3193 event = commons.mapMap<core.Map<core.String, core.Object>, ColorDefinition
>(_json["event"], (core.Map<core.String, core.Object> item) => new ColorDefiniti
on.fromJson(item)); |
| 3188 } | 3194 } |
| 3189 if (_json.containsKey("kind")) { | 3195 if (_json.containsKey("kind")) { |
| 3190 kind = _json["kind"]; | 3196 kind = _json["kind"]; |
| 3191 } | 3197 } |
| 3192 if (_json.containsKey("updated")) { | 3198 if (_json.containsKey("updated")) { |
| 3193 updated = core.DateTime.parse(_json["updated"]); | 3199 updated = core.DateTime.parse(_json["updated"]); |
| 3194 } | 3200 } |
| 3195 } | 3201 } |
| 3196 | 3202 |
| 3197 core.Map toJson() { | 3203 core.Map<core.String, core.Object> toJson() { |
| 3198 var _json = new core.Map(); | 3204 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3199 if (calendar != null) { | 3205 if (calendar != null) { |
| 3200 _json["calendar"] = commons.mapMap(calendar, (item) => (item).toJson()); | 3206 _json["calendar"] = commons.mapMap<ColorDefinition, core.Map<core.String,
core.Object>>(calendar, (ColorDefinition item) => (item).toJson()); |
| 3201 } | 3207 } |
| 3202 if (event != null) { | 3208 if (event != null) { |
| 3203 _json["event"] = commons.mapMap(event, (item) => (item).toJson()); | 3209 _json["event"] = commons.mapMap<ColorDefinition, core.Map<core.String, cor
e.Object>>(event, (ColorDefinition item) => (item).toJson()); |
| 3204 } | 3210 } |
| 3205 if (kind != null) { | 3211 if (kind != null) { |
| 3206 _json["kind"] = kind; | 3212 _json["kind"] = kind; |
| 3207 } | 3213 } |
| 3208 if (updated != null) { | 3214 if (updated != null) { |
| 3209 _json["updated"] = (updated).toIso8601String(); | 3215 _json["updated"] = (updated).toIso8601String(); |
| 3210 } | 3216 } |
| 3211 return _json; | 3217 return _json; |
| 3212 } | 3218 } |
| 3213 } | 3219 } |
| 3214 | 3220 |
| 3215 class DeepLinkData { | 3221 class DeepLinkData { |
| 3216 core.List<Link> links; | 3222 core.List<Link> links; |
| 3217 core.String url; | 3223 core.String url; |
| 3218 | 3224 |
| 3219 DeepLinkData(); | 3225 DeepLinkData(); |
| 3220 | 3226 |
| 3221 DeepLinkData.fromJson(core.Map _json) { | 3227 DeepLinkData.fromJson(core.Map _json) { |
| 3222 if (_json.containsKey("links")) { | 3228 if (_json.containsKey("links")) { |
| 3223 links = _json["links"].map((value) => new Link.fromJson(value)).toList(); | 3229 links = _json["links"].map((value) => new Link.fromJson(value)).toList(); |
| 3224 } | 3230 } |
| 3225 if (_json.containsKey("url")) { | 3231 if (_json.containsKey("url")) { |
| 3226 url = _json["url"]; | 3232 url = _json["url"]; |
| 3227 } | 3233 } |
| 3228 } | 3234 } |
| 3229 | 3235 |
| 3230 core.Map toJson() { | 3236 core.Map<core.String, core.Object> toJson() { |
| 3231 var _json = new core.Map(); | 3237 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3232 if (links != null) { | 3238 if (links != null) { |
| 3233 _json["links"] = links.map((value) => (value).toJson()).toList(); | 3239 _json["links"] = links.map((value) => (value).toJson()).toList(); |
| 3234 } | 3240 } |
| 3235 if (url != null) { | 3241 if (url != null) { |
| 3236 _json["url"] = url; | 3242 _json["url"] = url; |
| 3237 } | 3243 } |
| 3238 return _json; | 3244 return _json; |
| 3239 } | 3245 } |
| 3240 } | 3246 } |
| 3241 | 3247 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3259 appTitle = _json["appTitle"]; | 3265 appTitle = _json["appTitle"]; |
| 3260 } | 3266 } |
| 3261 if (_json.containsKey("linkShortTitle")) { | 3267 if (_json.containsKey("linkShortTitle")) { |
| 3262 linkShortTitle = _json["linkShortTitle"]; | 3268 linkShortTitle = _json["linkShortTitle"]; |
| 3263 } | 3269 } |
| 3264 if (_json.containsKey("linkTitle")) { | 3270 if (_json.containsKey("linkTitle")) { |
| 3265 linkTitle = _json["linkTitle"]; | 3271 linkTitle = _json["linkTitle"]; |
| 3266 } | 3272 } |
| 3267 } | 3273 } |
| 3268 | 3274 |
| 3269 core.Map toJson() { | 3275 core.Map<core.String, core.Object> toJson() { |
| 3270 var _json = new core.Map(); | 3276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3271 if (appIconUrl != null) { | 3277 if (appIconUrl != null) { |
| 3272 _json["appIconUrl"] = appIconUrl; | 3278 _json["appIconUrl"] = appIconUrl; |
| 3273 } | 3279 } |
| 3274 if (appShortTitle != null) { | 3280 if (appShortTitle != null) { |
| 3275 _json["appShortTitle"] = appShortTitle; | 3281 _json["appShortTitle"] = appShortTitle; |
| 3276 } | 3282 } |
| 3277 if (appTitle != null) { | 3283 if (appTitle != null) { |
| 3278 _json["appTitle"] = appTitle; | 3284 _json["appTitle"] = appTitle; |
| 3279 } | 3285 } |
| 3280 if (linkShortTitle != null) { | 3286 if (linkShortTitle != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3307 | 3313 |
| 3308 Error.fromJson(core.Map _json) { | 3314 Error.fromJson(core.Map _json) { |
| 3309 if (_json.containsKey("domain")) { | 3315 if (_json.containsKey("domain")) { |
| 3310 domain = _json["domain"]; | 3316 domain = _json["domain"]; |
| 3311 } | 3317 } |
| 3312 if (_json.containsKey("reason")) { | 3318 if (_json.containsKey("reason")) { |
| 3313 reason = _json["reason"]; | 3319 reason = _json["reason"]; |
| 3314 } | 3320 } |
| 3315 } | 3321 } |
| 3316 | 3322 |
| 3317 core.Map toJson() { | 3323 core.Map<core.String, core.Object> toJson() { |
| 3318 var _json = new core.Map(); | 3324 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3319 if (domain != null) { | 3325 if (domain != null) { |
| 3320 _json["domain"] = domain; | 3326 _json["domain"] = domain; |
| 3321 } | 3327 } |
| 3322 if (reason != null) { | 3328 if (reason != null) { |
| 3323 _json["reason"] = reason; | 3329 _json["reason"] = reason; |
| 3324 } | 3330 } |
| 3325 return _json; | 3331 return _json; |
| 3326 } | 3332 } |
| 3327 } | 3333 } |
| 3328 | 3334 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 3353 email = _json["email"]; | 3359 email = _json["email"]; |
| 3354 } | 3360 } |
| 3355 if (_json.containsKey("id")) { | 3361 if (_json.containsKey("id")) { |
| 3356 id = _json["id"]; | 3362 id = _json["id"]; |
| 3357 } | 3363 } |
| 3358 if (_json.containsKey("self")) { | 3364 if (_json.containsKey("self")) { |
| 3359 self = _json["self"]; | 3365 self = _json["self"]; |
| 3360 } | 3366 } |
| 3361 } | 3367 } |
| 3362 | 3368 |
| 3363 core.Map toJson() { | 3369 core.Map<core.String, core.Object> toJson() { |
| 3364 var _json = new core.Map(); | 3370 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3365 if (displayName != null) { | 3371 if (displayName != null) { |
| 3366 _json["displayName"] = displayName; | 3372 _json["displayName"] = displayName; |
| 3367 } | 3373 } |
| 3368 if (email != null) { | 3374 if (email != null) { |
| 3369 _json["email"] = email; | 3375 _json["email"] = email; |
| 3370 } | 3376 } |
| 3371 if (id != null) { | 3377 if (id != null) { |
| 3372 _json["id"] = id; | 3378 _json["id"] = id; |
| 3373 } | 3379 } |
| 3374 if (self != null) { | 3380 if (self != null) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3395 | 3401 |
| 3396 EventExtendedProperties.fromJson(core.Map _json) { | 3402 EventExtendedProperties.fromJson(core.Map _json) { |
| 3397 if (_json.containsKey("private")) { | 3403 if (_json.containsKey("private")) { |
| 3398 private = _json["private"]; | 3404 private = _json["private"]; |
| 3399 } | 3405 } |
| 3400 if (_json.containsKey("shared")) { | 3406 if (_json.containsKey("shared")) { |
| 3401 shared = _json["shared"]; | 3407 shared = _json["shared"]; |
| 3402 } | 3408 } |
| 3403 } | 3409 } |
| 3404 | 3410 |
| 3405 core.Map toJson() { | 3411 core.Map<core.String, core.Object> toJson() { |
| 3406 var _json = new core.Map(); | 3412 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3407 if (private != null) { | 3413 if (private != null) { |
| 3408 _json["private"] = private; | 3414 _json["private"] = private; |
| 3409 } | 3415 } |
| 3410 if (shared != null) { | 3416 if (shared != null) { |
| 3411 _json["shared"] = shared; | 3417 _json["shared"] = shared; |
| 3412 } | 3418 } |
| 3413 return _json; | 3419 return _json; |
| 3414 } | 3420 } |
| 3415 } | 3421 } |
| 3416 | 3422 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3466 title = _json["title"]; | 3472 title = _json["title"]; |
| 3467 } | 3473 } |
| 3468 if (_json.containsKey("type")) { | 3474 if (_json.containsKey("type")) { |
| 3469 type = _json["type"]; | 3475 type = _json["type"]; |
| 3470 } | 3476 } |
| 3471 if (_json.containsKey("width")) { | 3477 if (_json.containsKey("width")) { |
| 3472 width = _json["width"]; | 3478 width = _json["width"]; |
| 3473 } | 3479 } |
| 3474 } | 3480 } |
| 3475 | 3481 |
| 3476 core.Map toJson() { | 3482 core.Map<core.String, core.Object> toJson() { |
| 3477 var _json = new core.Map(); | 3483 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3478 if (display != null) { | 3484 if (display != null) { |
| 3479 _json["display"] = display; | 3485 _json["display"] = display; |
| 3480 } | 3486 } |
| 3481 if (height != null) { | 3487 if (height != null) { |
| 3482 _json["height"] = height; | 3488 _json["height"] = height; |
| 3483 } | 3489 } |
| 3484 if (iconLink != null) { | 3490 if (iconLink != null) { |
| 3485 _json["iconLink"] = iconLink; | 3491 _json["iconLink"] = iconLink; |
| 3486 } | 3492 } |
| 3487 if (link != null) { | 3493 if (link != null) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3538 email = _json["email"]; | 3544 email = _json["email"]; |
| 3539 } | 3545 } |
| 3540 if (_json.containsKey("id")) { | 3546 if (_json.containsKey("id")) { |
| 3541 id = _json["id"]; | 3547 id = _json["id"]; |
| 3542 } | 3548 } |
| 3543 if (_json.containsKey("self")) { | 3549 if (_json.containsKey("self")) { |
| 3544 self = _json["self"]; | 3550 self = _json["self"]; |
| 3545 } | 3551 } |
| 3546 } | 3552 } |
| 3547 | 3553 |
| 3548 core.Map toJson() { | 3554 core.Map<core.String, core.Object> toJson() { |
| 3549 var _json = new core.Map(); | 3555 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3550 if (displayName != null) { | 3556 if (displayName != null) { |
| 3551 _json["displayName"] = displayName; | 3557 _json["displayName"] = displayName; |
| 3552 } | 3558 } |
| 3553 if (email != null) { | 3559 if (email != null) { |
| 3554 _json["email"] = email; | 3560 _json["email"] = email; |
| 3555 } | 3561 } |
| 3556 if (id != null) { | 3562 if (id != null) { |
| 3557 _json["id"] = id; | 3563 _json["id"] = id; |
| 3558 } | 3564 } |
| 3559 if (self != null) { | 3565 if (self != null) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 3578 | 3584 |
| 3579 EventReminders.fromJson(core.Map _json) { | 3585 EventReminders.fromJson(core.Map _json) { |
| 3580 if (_json.containsKey("overrides")) { | 3586 if (_json.containsKey("overrides")) { |
| 3581 overrides = _json["overrides"].map((value) => new EventReminder.fromJson(v
alue)).toList(); | 3587 overrides = _json["overrides"].map((value) => new EventReminder.fromJson(v
alue)).toList(); |
| 3582 } | 3588 } |
| 3583 if (_json.containsKey("useDefault")) { | 3589 if (_json.containsKey("useDefault")) { |
| 3584 useDefault = _json["useDefault"]; | 3590 useDefault = _json["useDefault"]; |
| 3585 } | 3591 } |
| 3586 } | 3592 } |
| 3587 | 3593 |
| 3588 core.Map toJson() { | 3594 core.Map<core.String, core.Object> toJson() { |
| 3589 var _json = new core.Map(); | 3595 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3590 if (overrides != null) { | 3596 if (overrides != null) { |
| 3591 _json["overrides"] = overrides.map((value) => (value).toJson()).toList(); | 3597 _json["overrides"] = overrides.map((value) => (value).toJson()).toList(); |
| 3592 } | 3598 } |
| 3593 if (useDefault != null) { | 3599 if (useDefault != null) { |
| 3594 _json["useDefault"] = useDefault; | 3600 _json["useDefault"] = useDefault; |
| 3595 } | 3601 } |
| 3596 return _json; | 3602 return _json; |
| 3597 } | 3603 } |
| 3598 } | 3604 } |
| 3599 | 3605 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3617 | 3623 |
| 3618 EventSource.fromJson(core.Map _json) { | 3624 EventSource.fromJson(core.Map _json) { |
| 3619 if (_json.containsKey("title")) { | 3625 if (_json.containsKey("title")) { |
| 3620 title = _json["title"]; | 3626 title = _json["title"]; |
| 3621 } | 3627 } |
| 3622 if (_json.containsKey("url")) { | 3628 if (_json.containsKey("url")) { |
| 3623 url = _json["url"]; | 3629 url = _json["url"]; |
| 3624 } | 3630 } |
| 3625 } | 3631 } |
| 3626 | 3632 |
| 3627 core.Map toJson() { | 3633 core.Map<core.String, core.Object> toJson() { |
| 3628 var _json = new core.Map(); | 3634 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3629 if (title != null) { | 3635 if (title != null) { |
| 3630 _json["title"] = title; | 3636 _json["title"] = title; |
| 3631 } | 3637 } |
| 3632 if (url != null) { | 3638 if (url != null) { |
| 3633 _json["url"] = url; | 3639 _json["url"] = url; |
| 3634 } | 3640 } |
| 3635 return _json; | 3641 return _json; |
| 3636 } | 3642 } |
| 3637 } | 3643 } |
| 3638 | 3644 |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3942 transparency = _json["transparency"]; | 3948 transparency = _json["transparency"]; |
| 3943 } | 3949 } |
| 3944 if (_json.containsKey("updated")) { | 3950 if (_json.containsKey("updated")) { |
| 3945 updated = core.DateTime.parse(_json["updated"]); | 3951 updated = core.DateTime.parse(_json["updated"]); |
| 3946 } | 3952 } |
| 3947 if (_json.containsKey("visibility")) { | 3953 if (_json.containsKey("visibility")) { |
| 3948 visibility = _json["visibility"]; | 3954 visibility = _json["visibility"]; |
| 3949 } | 3955 } |
| 3950 } | 3956 } |
| 3951 | 3957 |
| 3952 core.Map toJson() { | 3958 core.Map<core.String, core.Object> toJson() { |
| 3953 var _json = new core.Map(); | 3959 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3954 if (anyoneCanAddSelf != null) { | 3960 if (anyoneCanAddSelf != null) { |
| 3955 _json["anyoneCanAddSelf"] = anyoneCanAddSelf; | 3961 _json["anyoneCanAddSelf"] = anyoneCanAddSelf; |
| 3956 } | 3962 } |
| 3957 if (attachments != null) { | 3963 if (attachments != null) { |
| 3958 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); | 3964 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); |
| 3959 } | 3965 } |
| 3960 if (attendees != null) { | 3966 if (attendees != null) { |
| 3961 _json["attendees"] = attendees.map((value) => (value).toJson()).toList(); | 3967 _json["attendees"] = attendees.map((value) => (value).toJson()).toList(); |
| 3962 } | 3968 } |
| 3963 if (attendeesOmitted != null) { | 3969 if (attendeesOmitted != null) { |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4099 iconLink = _json["iconLink"]; | 4105 iconLink = _json["iconLink"]; |
| 4100 } | 4106 } |
| 4101 if (_json.containsKey("mimeType")) { | 4107 if (_json.containsKey("mimeType")) { |
| 4102 mimeType = _json["mimeType"]; | 4108 mimeType = _json["mimeType"]; |
| 4103 } | 4109 } |
| 4104 if (_json.containsKey("title")) { | 4110 if (_json.containsKey("title")) { |
| 4105 title = _json["title"]; | 4111 title = _json["title"]; |
| 4106 } | 4112 } |
| 4107 } | 4113 } |
| 4108 | 4114 |
| 4109 core.Map toJson() { | 4115 core.Map<core.String, core.Object> toJson() { |
| 4110 var _json = new core.Map(); | 4116 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4111 if (fileId != null) { | 4117 if (fileId != null) { |
| 4112 _json["fileId"] = fileId; | 4118 _json["fileId"] = fileId; |
| 4113 } | 4119 } |
| 4114 if (fileUrl != null) { | 4120 if (fileUrl != null) { |
| 4115 _json["fileUrl"] = fileUrl; | 4121 _json["fileUrl"] = fileUrl; |
| 4116 } | 4122 } |
| 4117 if (iconLink != null) { | 4123 if (iconLink != null) { |
| 4118 _json["iconLink"] = iconLink; | 4124 _json["iconLink"] = iconLink; |
| 4119 } | 4125 } |
| 4120 if (mimeType != null) { | 4126 if (mimeType != null) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4195 resource = _json["resource"]; | 4201 resource = _json["resource"]; |
| 4196 } | 4202 } |
| 4197 if (_json.containsKey("responseStatus")) { | 4203 if (_json.containsKey("responseStatus")) { |
| 4198 responseStatus = _json["responseStatus"]; | 4204 responseStatus = _json["responseStatus"]; |
| 4199 } | 4205 } |
| 4200 if (_json.containsKey("self")) { | 4206 if (_json.containsKey("self")) { |
| 4201 self = _json["self"]; | 4207 self = _json["self"]; |
| 4202 } | 4208 } |
| 4203 } | 4209 } |
| 4204 | 4210 |
| 4205 core.Map toJson() { | 4211 core.Map<core.String, core.Object> toJson() { |
| 4206 var _json = new core.Map(); | 4212 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4207 if (additionalGuests != null) { | 4213 if (additionalGuests != null) { |
| 4208 _json["additionalGuests"] = additionalGuests; | 4214 _json["additionalGuests"] = additionalGuests; |
| 4209 } | 4215 } |
| 4210 if (comment != null) { | 4216 if (comment != null) { |
| 4211 _json["comment"] = comment; | 4217 _json["comment"] = comment; |
| 4212 } | 4218 } |
| 4213 if (displayName != null) { | 4219 if (displayName != null) { |
| 4214 _json["displayName"] = displayName; | 4220 _json["displayName"] = displayName; |
| 4215 } | 4221 } |
| 4216 if (email != null) { | 4222 if (email != null) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4263 date = core.DateTime.parse(_json["date"]); | 4269 date = core.DateTime.parse(_json["date"]); |
| 4264 } | 4270 } |
| 4265 if (_json.containsKey("dateTime")) { | 4271 if (_json.containsKey("dateTime")) { |
| 4266 dateTime = core.DateTime.parse(_json["dateTime"]); | 4272 dateTime = core.DateTime.parse(_json["dateTime"]); |
| 4267 } | 4273 } |
| 4268 if (_json.containsKey("timeZone")) { | 4274 if (_json.containsKey("timeZone")) { |
| 4269 timeZone = _json["timeZone"]; | 4275 timeZone = _json["timeZone"]; |
| 4270 } | 4276 } |
| 4271 } | 4277 } |
| 4272 | 4278 |
| 4273 core.Map toJson() { | 4279 core.Map<core.String, core.Object> toJson() { |
| 4274 var _json = new core.Map(); | 4280 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4275 if (date != null) { | 4281 if (date != null) { |
| 4276 _json["date"] = "${(date).year.toString().padLeft(4, '0')}-${(date).month.
toString().padLeft(2, '0')}-${(date).day.toString().padLeft(2, '0')}"; | 4282 _json["date"] = "${(date).year.toString().padLeft(4, '0')}-${(date).month.
toString().padLeft(2, '0')}-${(date).day.toString().padLeft(2, '0')}"; |
| 4277 } | 4283 } |
| 4278 if (dateTime != null) { | 4284 if (dateTime != null) { |
| 4279 _json["dateTime"] = (dateTime).toIso8601String(); | 4285 _json["dateTime"] = (dateTime).toIso8601String(); |
| 4280 } | 4286 } |
| 4281 if (timeZone != null) { | 4287 if (timeZone != null) { |
| 4282 _json["timeZone"] = timeZone; | 4288 _json["timeZone"] = timeZone; |
| 4283 } | 4289 } |
| 4284 return _json; | 4290 return _json; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4295 | 4301 |
| 4296 EventHabitInstance.fromJson(core.Map _json) { | 4302 EventHabitInstance.fromJson(core.Map _json) { |
| 4297 if (_json.containsKey("data")) { | 4303 if (_json.containsKey("data")) { |
| 4298 data = new HabitInstanceData.fromJson(_json["data"]); | 4304 data = new HabitInstanceData.fromJson(_json["data"]); |
| 4299 } | 4305 } |
| 4300 if (_json.containsKey("parentId")) { | 4306 if (_json.containsKey("parentId")) { |
| 4301 parentId = _json["parentId"]; | 4307 parentId = _json["parentId"]; |
| 4302 } | 4308 } |
| 4303 } | 4309 } |
| 4304 | 4310 |
| 4305 core.Map toJson() { | 4311 core.Map<core.String, core.Object> toJson() { |
| 4306 var _json = new core.Map(); | 4312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4307 if (data != null) { | 4313 if (data != null) { |
| 4308 _json["data"] = (data).toJson(); | 4314 _json["data"] = (data).toJson(); |
| 4309 } | 4315 } |
| 4310 if (parentId != null) { | 4316 if (parentId != null) { |
| 4311 _json["parentId"] = parentId; | 4317 _json["parentId"] = parentId; |
| 4312 } | 4318 } |
| 4313 return _json; | 4319 return _json; |
| 4314 } | 4320 } |
| 4315 } | 4321 } |
| 4316 | 4322 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4334 | 4340 |
| 4335 EventReminder.fromJson(core.Map _json) { | 4341 EventReminder.fromJson(core.Map _json) { |
| 4336 if (_json.containsKey("method")) { | 4342 if (_json.containsKey("method")) { |
| 4337 method = _json["method"]; | 4343 method = _json["method"]; |
| 4338 } | 4344 } |
| 4339 if (_json.containsKey("minutes")) { | 4345 if (_json.containsKey("minutes")) { |
| 4340 minutes = _json["minutes"]; | 4346 minutes = _json["minutes"]; |
| 4341 } | 4347 } |
| 4342 } | 4348 } |
| 4343 | 4349 |
| 4344 core.Map toJson() { | 4350 core.Map<core.String, core.Object> toJson() { |
| 4345 var _json = new core.Map(); | 4351 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4346 if (method != null) { | 4352 if (method != null) { |
| 4347 _json["method"] = method; | 4353 _json["method"] = method; |
| 4348 } | 4354 } |
| 4349 if (minutes != null) { | 4355 if (minutes != null) { |
| 4350 _json["minutes"] = minutes; | 4356 _json["minutes"] = minutes; |
| 4351 } | 4357 } |
| 4352 return _json; | 4358 return _json; |
| 4353 } | 4359 } |
| 4354 } | 4360 } |
| 4355 | 4361 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4433 summary = _json["summary"]; | 4439 summary = _json["summary"]; |
| 4434 } | 4440 } |
| 4435 if (_json.containsKey("timeZone")) { | 4441 if (_json.containsKey("timeZone")) { |
| 4436 timeZone = _json["timeZone"]; | 4442 timeZone = _json["timeZone"]; |
| 4437 } | 4443 } |
| 4438 if (_json.containsKey("updated")) { | 4444 if (_json.containsKey("updated")) { |
| 4439 updated = core.DateTime.parse(_json["updated"]); | 4445 updated = core.DateTime.parse(_json["updated"]); |
| 4440 } | 4446 } |
| 4441 } | 4447 } |
| 4442 | 4448 |
| 4443 core.Map toJson() { | 4449 core.Map<core.String, core.Object> toJson() { |
| 4444 var _json = new core.Map(); | 4450 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4445 if (accessRole != null) { | 4451 if (accessRole != null) { |
| 4446 _json["accessRole"] = accessRole; | 4452 _json["accessRole"] = accessRole; |
| 4447 } | 4453 } |
| 4448 if (defaultReminders != null) { | 4454 if (defaultReminders != null) { |
| 4449 _json["defaultReminders"] = defaultReminders.map((value) => (value).toJson
()).toList(); | 4455 _json["defaultReminders"] = defaultReminders.map((value) => (value).toJson
()).toList(); |
| 4450 } | 4456 } |
| 4451 if (description != null) { | 4457 if (description != null) { |
| 4452 _json["description"] = description; | 4458 _json["description"] = description; |
| 4453 } | 4459 } |
| 4454 if (etag != null) { | 4460 if (etag != null) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4491 | 4497 |
| 4492 FreeBusyCalendar.fromJson(core.Map _json) { | 4498 FreeBusyCalendar.fromJson(core.Map _json) { |
| 4493 if (_json.containsKey("busy")) { | 4499 if (_json.containsKey("busy")) { |
| 4494 busy = _json["busy"].map((value) => new TimePeriod.fromJson(value)).toList
(); | 4500 busy = _json["busy"].map((value) => new TimePeriod.fromJson(value)).toList
(); |
| 4495 } | 4501 } |
| 4496 if (_json.containsKey("errors")) { | 4502 if (_json.containsKey("errors")) { |
| 4497 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList(
); | 4503 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList(
); |
| 4498 } | 4504 } |
| 4499 } | 4505 } |
| 4500 | 4506 |
| 4501 core.Map toJson() { | 4507 core.Map<core.String, core.Object> toJson() { |
| 4502 var _json = new core.Map(); | 4508 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4503 if (busy != null) { | 4509 if (busy != null) { |
| 4504 _json["busy"] = busy.map((value) => (value).toJson()).toList(); | 4510 _json["busy"] = busy.map((value) => (value).toJson()).toList(); |
| 4505 } | 4511 } |
| 4506 if (errors != null) { | 4512 if (errors != null) { |
| 4507 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 4513 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
| 4508 } | 4514 } |
| 4509 return _json; | 4515 return _json; |
| 4510 } | 4516 } |
| 4511 } | 4517 } |
| 4512 | 4518 |
| 4513 class FreeBusyGroup { | 4519 class FreeBusyGroup { |
| 4514 /** List of calendars' identifiers within a group. */ | 4520 /** List of calendars' identifiers within a group. */ |
| 4515 core.List<core.String> calendars; | 4521 core.List<core.String> calendars; |
| 4516 /** Optional error(s) (if computation for the group failed). */ | 4522 /** Optional error(s) (if computation for the group failed). */ |
| 4517 core.List<Error> errors; | 4523 core.List<Error> errors; |
| 4518 | 4524 |
| 4519 FreeBusyGroup(); | 4525 FreeBusyGroup(); |
| 4520 | 4526 |
| 4521 FreeBusyGroup.fromJson(core.Map _json) { | 4527 FreeBusyGroup.fromJson(core.Map _json) { |
| 4522 if (_json.containsKey("calendars")) { | 4528 if (_json.containsKey("calendars")) { |
| 4523 calendars = _json["calendars"]; | 4529 calendars = _json["calendars"]; |
| 4524 } | 4530 } |
| 4525 if (_json.containsKey("errors")) { | 4531 if (_json.containsKey("errors")) { |
| 4526 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList(
); | 4532 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList(
); |
| 4527 } | 4533 } |
| 4528 } | 4534 } |
| 4529 | 4535 |
| 4530 core.Map toJson() { | 4536 core.Map<core.String, core.Object> toJson() { |
| 4531 var _json = new core.Map(); | 4537 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4532 if (calendars != null) { | 4538 if (calendars != null) { |
| 4533 _json["calendars"] = calendars; | 4539 _json["calendars"] = calendars; |
| 4534 } | 4540 } |
| 4535 if (errors != null) { | 4541 if (errors != null) { |
| 4536 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 4542 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
| 4537 } | 4543 } |
| 4538 return _json; | 4544 return _json; |
| 4539 } | 4545 } |
| 4540 } | 4546 } |
| 4541 | 4547 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4576 timeMax = core.DateTime.parse(_json["timeMax"]); | 4582 timeMax = core.DateTime.parse(_json["timeMax"]); |
| 4577 } | 4583 } |
| 4578 if (_json.containsKey("timeMin")) { | 4584 if (_json.containsKey("timeMin")) { |
| 4579 timeMin = core.DateTime.parse(_json["timeMin"]); | 4585 timeMin = core.DateTime.parse(_json["timeMin"]); |
| 4580 } | 4586 } |
| 4581 if (_json.containsKey("timeZone")) { | 4587 if (_json.containsKey("timeZone")) { |
| 4582 timeZone = _json["timeZone"]; | 4588 timeZone = _json["timeZone"]; |
| 4583 } | 4589 } |
| 4584 } | 4590 } |
| 4585 | 4591 |
| 4586 core.Map toJson() { | 4592 core.Map<core.String, core.Object> toJson() { |
| 4587 var _json = new core.Map(); | 4593 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4588 if (calendarExpansionMax != null) { | 4594 if (calendarExpansionMax != null) { |
| 4589 _json["calendarExpansionMax"] = calendarExpansionMax; | 4595 _json["calendarExpansionMax"] = calendarExpansionMax; |
| 4590 } | 4596 } |
| 4591 if (groupExpansionMax != null) { | 4597 if (groupExpansionMax != null) { |
| 4592 _json["groupExpansionMax"] = groupExpansionMax; | 4598 _json["groupExpansionMax"] = groupExpansionMax; |
| 4593 } | 4599 } |
| 4594 if (items != null) { | 4600 if (items != null) { |
| 4595 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4601 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 4596 } | 4602 } |
| 4597 if (timeMax != null) { | 4603 if (timeMax != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4612 core.String id; | 4618 core.String id; |
| 4613 | 4619 |
| 4614 FreeBusyRequestItem(); | 4620 FreeBusyRequestItem(); |
| 4615 | 4621 |
| 4616 FreeBusyRequestItem.fromJson(core.Map _json) { | 4622 FreeBusyRequestItem.fromJson(core.Map _json) { |
| 4617 if (_json.containsKey("id")) { | 4623 if (_json.containsKey("id")) { |
| 4618 id = _json["id"]; | 4624 id = _json["id"]; |
| 4619 } | 4625 } |
| 4620 } | 4626 } |
| 4621 | 4627 |
| 4622 core.Map toJson() { | 4628 core.Map<core.String, core.Object> toJson() { |
| 4623 var _json = new core.Map(); | 4629 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4624 if (id != null) { | 4630 if (id != null) { |
| 4625 _json["id"] = id; | 4631 _json["id"] = id; |
| 4626 } | 4632 } |
| 4627 return _json; | 4633 return _json; |
| 4628 } | 4634 } |
| 4629 } | 4635 } |
| 4630 | 4636 |
| 4631 class FreeBusyResponse { | 4637 class FreeBusyResponse { |
| 4632 /** List of free/busy information for calendars. */ | 4638 /** List of free/busy information for calendars. */ |
| 4633 core.Map<core.String, FreeBusyCalendar> calendars; | 4639 core.Map<core.String, FreeBusyCalendar> calendars; |
| 4634 /** Expansion of groups. */ | 4640 /** Expansion of groups. */ |
| 4635 core.Map<core.String, FreeBusyGroup> groups; | 4641 core.Map<core.String, FreeBusyGroup> groups; |
| 4636 /** Type of the resource ("calendar#freeBusy"). */ | 4642 /** Type of the resource ("calendar#freeBusy"). */ |
| 4637 core.String kind; | 4643 core.String kind; |
| 4638 /** The end of the interval. */ | 4644 /** The end of the interval. */ |
| 4639 core.DateTime timeMax; | 4645 core.DateTime timeMax; |
| 4640 /** The start of the interval. */ | 4646 /** The start of the interval. */ |
| 4641 core.DateTime timeMin; | 4647 core.DateTime timeMin; |
| 4642 | 4648 |
| 4643 FreeBusyResponse(); | 4649 FreeBusyResponse(); |
| 4644 | 4650 |
| 4645 FreeBusyResponse.fromJson(core.Map _json) { | 4651 FreeBusyResponse.fromJson(core.Map _json) { |
| 4646 if (_json.containsKey("calendars")) { | 4652 if (_json.containsKey("calendars")) { |
| 4647 calendars = commons.mapMap(_json["calendars"], (item) => new FreeBusyCalen
dar.fromJson(item)); | 4653 calendars = commons.mapMap<core.Map<core.String, core.Object>, FreeBusyCal
endar>(_json["calendars"], (core.Map<core.String, core.Object> item) => new Free
BusyCalendar.fromJson(item)); |
| 4648 } | 4654 } |
| 4649 if (_json.containsKey("groups")) { | 4655 if (_json.containsKey("groups")) { |
| 4650 groups = commons.mapMap(_json["groups"], (item) => new FreeBusyGroup.fromJ
son(item)); | 4656 groups = commons.mapMap<core.Map<core.String, core.Object>, FreeBusyGroup>
(_json["groups"], (core.Map<core.String, core.Object> item) => new FreeBusyGroup
.fromJson(item)); |
| 4651 } | 4657 } |
| 4652 if (_json.containsKey("kind")) { | 4658 if (_json.containsKey("kind")) { |
| 4653 kind = _json["kind"]; | 4659 kind = _json["kind"]; |
| 4654 } | 4660 } |
| 4655 if (_json.containsKey("timeMax")) { | 4661 if (_json.containsKey("timeMax")) { |
| 4656 timeMax = core.DateTime.parse(_json["timeMax"]); | 4662 timeMax = core.DateTime.parse(_json["timeMax"]); |
| 4657 } | 4663 } |
| 4658 if (_json.containsKey("timeMin")) { | 4664 if (_json.containsKey("timeMin")) { |
| 4659 timeMin = core.DateTime.parse(_json["timeMin"]); | 4665 timeMin = core.DateTime.parse(_json["timeMin"]); |
| 4660 } | 4666 } |
| 4661 } | 4667 } |
| 4662 | 4668 |
| 4663 core.Map toJson() { | 4669 core.Map<core.String, core.Object> toJson() { |
| 4664 var _json = new core.Map(); | 4670 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4665 if (calendars != null) { | 4671 if (calendars != null) { |
| 4666 _json["calendars"] = commons.mapMap(calendars, (item) => (item).toJson()); | 4672 _json["calendars"] = commons.mapMap<FreeBusyCalendar, core.Map<core.String
, core.Object>>(calendars, (FreeBusyCalendar item) => (item).toJson()); |
| 4667 } | 4673 } |
| 4668 if (groups != null) { | 4674 if (groups != null) { |
| 4669 _json["groups"] = commons.mapMap(groups, (item) => (item).toJson()); | 4675 _json["groups"] = commons.mapMap<FreeBusyGroup, core.Map<core.String, core
.Object>>(groups, (FreeBusyGroup item) => (item).toJson()); |
| 4670 } | 4676 } |
| 4671 if (kind != null) { | 4677 if (kind != null) { |
| 4672 _json["kind"] = kind; | 4678 _json["kind"] = kind; |
| 4673 } | 4679 } |
| 4674 if (timeMax != null) { | 4680 if (timeMax != null) { |
| 4675 _json["timeMax"] = (timeMax).toIso8601String(); | 4681 _json["timeMax"] = (timeMax).toIso8601String(); |
| 4676 } | 4682 } |
| 4677 if (timeMin != null) { | 4683 if (timeMin != null) { |
| 4678 _json["timeMin"] = (timeMin).toIso8601String(); | 4684 _json["timeMin"] = (timeMin).toIso8601String(); |
| 4679 } | 4685 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 4693 status = _json["status"]; | 4699 status = _json["status"]; |
| 4694 } | 4700 } |
| 4695 if (_json.containsKey("statusInferred")) { | 4701 if (_json.containsKey("statusInferred")) { |
| 4696 statusInferred = _json["statusInferred"]; | 4702 statusInferred = _json["statusInferred"]; |
| 4697 } | 4703 } |
| 4698 if (_json.containsKey("type")) { | 4704 if (_json.containsKey("type")) { |
| 4699 type = _json["type"]; | 4705 type = _json["type"]; |
| 4700 } | 4706 } |
| 4701 } | 4707 } |
| 4702 | 4708 |
| 4703 core.Map toJson() { | 4709 core.Map<core.String, core.Object> toJson() { |
| 4704 var _json = new core.Map(); | 4710 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4705 if (status != null) { | 4711 if (status != null) { |
| 4706 _json["status"] = status; | 4712 _json["status"] = status; |
| 4707 } | 4713 } |
| 4708 if (statusInferred != null) { | 4714 if (statusInferred != null) { |
| 4709 _json["statusInferred"] = statusInferred; | 4715 _json["statusInferred"] = statusInferred; |
| 4710 } | 4716 } |
| 4711 if (type != null) { | 4717 if (type != null) { |
| 4712 _json["type"] = type; | 4718 _json["type"] = type; |
| 4713 } | 4719 } |
| 4714 return _json; | 4720 return _json; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4731 installUrl = _json["installUrl"]; | 4737 installUrl = _json["installUrl"]; |
| 4732 } | 4738 } |
| 4733 if (_json.containsKey("intentAction")) { | 4739 if (_json.containsKey("intentAction")) { |
| 4734 intentAction = _json["intentAction"]; | 4740 intentAction = _json["intentAction"]; |
| 4735 } | 4741 } |
| 4736 if (_json.containsKey("uri")) { | 4742 if (_json.containsKey("uri")) { |
| 4737 uri = _json["uri"]; | 4743 uri = _json["uri"]; |
| 4738 } | 4744 } |
| 4739 } | 4745 } |
| 4740 | 4746 |
| 4741 core.Map toJson() { | 4747 core.Map<core.String, core.Object> toJson() { |
| 4742 var _json = new core.Map(); | 4748 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4743 if (appId != null) { | 4749 if (appId != null) { |
| 4744 _json["appId"] = appId; | 4750 _json["appId"] = appId; |
| 4745 } | 4751 } |
| 4746 if (installUrl != null) { | 4752 if (installUrl != null) { |
| 4747 _json["installUrl"] = installUrl; | 4753 _json["installUrl"] = installUrl; |
| 4748 } | 4754 } |
| 4749 if (intentAction != null) { | 4755 if (intentAction != null) { |
| 4750 _json["intentAction"] = intentAction; | 4756 _json["intentAction"] = intentAction; |
| 4751 } | 4757 } |
| 4752 if (uri != null) { | 4758 if (uri != null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4776 launchInfo = new LaunchInfo.fromJson(_json["launchInfo"]); | 4782 launchInfo = new LaunchInfo.fromJson(_json["launchInfo"]); |
| 4777 } | 4783 } |
| 4778 if (_json.containsKey("platform")) { | 4784 if (_json.containsKey("platform")) { |
| 4779 platform = _json["platform"]; | 4785 platform = _json["platform"]; |
| 4780 } | 4786 } |
| 4781 if (_json.containsKey("url")) { | 4787 if (_json.containsKey("url")) { |
| 4782 url = _json["url"]; | 4788 url = _json["url"]; |
| 4783 } | 4789 } |
| 4784 } | 4790 } |
| 4785 | 4791 |
| 4786 core.Map toJson() { | 4792 core.Map<core.String, core.Object> toJson() { |
| 4787 var _json = new core.Map(); | 4793 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4788 if (applinkingSource != null) { | 4794 if (applinkingSource != null) { |
| 4789 _json["applinkingSource"] = applinkingSource; | 4795 _json["applinkingSource"] = applinkingSource; |
| 4790 } | 4796 } |
| 4791 if (displayInfo != null) { | 4797 if (displayInfo != null) { |
| 4792 _json["displayInfo"] = (displayInfo).toJson(); | 4798 _json["displayInfo"] = (displayInfo).toJson(); |
| 4793 } | 4799 } |
| 4794 if (launchInfo != null) { | 4800 if (launchInfo != null) { |
| 4795 _json["launchInfo"] = (launchInfo).toJson(); | 4801 _json["launchInfo"] = (launchInfo).toJson(); |
| 4796 } | 4802 } |
| 4797 if (platform != null) { | 4803 if (platform != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 4827 id = _json["id"]; | 4833 id = _json["id"]; |
| 4828 } | 4834 } |
| 4829 if (_json.containsKey("kind")) { | 4835 if (_json.containsKey("kind")) { |
| 4830 kind = _json["kind"]; | 4836 kind = _json["kind"]; |
| 4831 } | 4837 } |
| 4832 if (_json.containsKey("value")) { | 4838 if (_json.containsKey("value")) { |
| 4833 value = _json["value"]; | 4839 value = _json["value"]; |
| 4834 } | 4840 } |
| 4835 } | 4841 } |
| 4836 | 4842 |
| 4837 core.Map toJson() { | 4843 core.Map<core.String, core.Object> toJson() { |
| 4838 var _json = new core.Map(); | 4844 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4839 if (etag != null) { | 4845 if (etag != null) { |
| 4840 _json["etag"] = etag; | 4846 _json["etag"] = etag; |
| 4841 } | 4847 } |
| 4842 if (id != null) { | 4848 if (id != null) { |
| 4843 _json["id"] = id; | 4849 _json["id"] = id; |
| 4844 } | 4850 } |
| 4845 if (kind != null) { | 4851 if (kind != null) { |
| 4846 _json["kind"] = kind; | 4852 _json["kind"] = kind; |
| 4847 } | 4853 } |
| 4848 if (value != null) { | 4854 if (value != null) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4884 kind = _json["kind"]; | 4890 kind = _json["kind"]; |
| 4885 } | 4891 } |
| 4886 if (_json.containsKey("nextPageToken")) { | 4892 if (_json.containsKey("nextPageToken")) { |
| 4887 nextPageToken = _json["nextPageToken"]; | 4893 nextPageToken = _json["nextPageToken"]; |
| 4888 } | 4894 } |
| 4889 if (_json.containsKey("nextSyncToken")) { | 4895 if (_json.containsKey("nextSyncToken")) { |
| 4890 nextSyncToken = _json["nextSyncToken"]; | 4896 nextSyncToken = _json["nextSyncToken"]; |
| 4891 } | 4897 } |
| 4892 } | 4898 } |
| 4893 | 4899 |
| 4894 core.Map toJson() { | 4900 core.Map<core.String, core.Object> toJson() { |
| 4895 var _json = new core.Map(); | 4901 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4896 if (etag != null) { | 4902 if (etag != null) { |
| 4897 _json["etag"] = etag; | 4903 _json["etag"] = etag; |
| 4898 } | 4904 } |
| 4899 if (items != null) { | 4905 if (items != null) { |
| 4900 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4906 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 4901 } | 4907 } |
| 4902 if (kind != null) { | 4908 if (kind != null) { |
| 4903 _json["kind"] = kind; | 4909 _json["kind"] = kind; |
| 4904 } | 4910 } |
| 4905 if (nextPageToken != null) { | 4911 if (nextPageToken != null) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4922 | 4928 |
| 4923 TimePeriod.fromJson(core.Map _json) { | 4929 TimePeriod.fromJson(core.Map _json) { |
| 4924 if (_json.containsKey("end")) { | 4930 if (_json.containsKey("end")) { |
| 4925 end = core.DateTime.parse(_json["end"]); | 4931 end = core.DateTime.parse(_json["end"]); |
| 4926 } | 4932 } |
| 4927 if (_json.containsKey("start")) { | 4933 if (_json.containsKey("start")) { |
| 4928 start = core.DateTime.parse(_json["start"]); | 4934 start = core.DateTime.parse(_json["start"]); |
| 4929 } | 4935 } |
| 4930 } | 4936 } |
| 4931 | 4937 |
| 4932 core.Map toJson() { | 4938 core.Map<core.String, core.Object> toJson() { |
| 4933 var _json = new core.Map(); | 4939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4934 if (end != null) { | 4940 if (end != null) { |
| 4935 _json["end"] = (end).toIso8601String(); | 4941 _json["end"] = (end).toIso8601String(); |
| 4936 } | 4942 } |
| 4937 if (start != null) { | 4943 if (start != null) { |
| 4938 _json["start"] = (start).toIso8601String(); | 4944 _json["start"] = (start).toIso8601String(); |
| 4939 } | 4945 } |
| 4940 return _json; | 4946 return _json; |
| 4941 } | 4947 } |
| 4942 } | 4948 } |
| OLD | NEW |