| 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.tasks.v1; | 3 library googleapis.tasks.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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 description = _json["description"]; | 760 description = _json["description"]; |
| 761 } | 761 } |
| 762 if (_json.containsKey("link")) { | 762 if (_json.containsKey("link")) { |
| 763 link = _json["link"]; | 763 link = _json["link"]; |
| 764 } | 764 } |
| 765 if (_json.containsKey("type")) { | 765 if (_json.containsKey("type")) { |
| 766 type = _json["type"]; | 766 type = _json["type"]; |
| 767 } | 767 } |
| 768 } | 768 } |
| 769 | 769 |
| 770 core.Map toJson() { | 770 core.Map<core.String, core.Object> toJson() { |
| 771 var _json = new core.Map(); | 771 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 772 if (description != null) { | 772 if (description != null) { |
| 773 _json["description"] = description; | 773 _json["description"] = description; |
| 774 } | 774 } |
| 775 if (link != null) { | 775 if (link != null) { |
| 776 _json["link"] = link; | 776 _json["link"] = link; |
| 777 } | 777 } |
| 778 if (type != null) { | 778 if (type != null) { |
| 779 _json["type"] = type; | 779 _json["type"] = type; |
| 780 } | 780 } |
| 781 return _json; | 781 return _json; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 status = _json["status"]; | 879 status = _json["status"]; |
| 880 } | 880 } |
| 881 if (_json.containsKey("title")) { | 881 if (_json.containsKey("title")) { |
| 882 title = _json["title"]; | 882 title = _json["title"]; |
| 883 } | 883 } |
| 884 if (_json.containsKey("updated")) { | 884 if (_json.containsKey("updated")) { |
| 885 updated = core.DateTime.parse(_json["updated"]); | 885 updated = core.DateTime.parse(_json["updated"]); |
| 886 } | 886 } |
| 887 } | 887 } |
| 888 | 888 |
| 889 core.Map toJson() { | 889 core.Map<core.String, core.Object> toJson() { |
| 890 var _json = new core.Map(); | 890 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 891 if (completed != null) { | 891 if (completed != null) { |
| 892 _json["completed"] = (completed).toIso8601String(); | 892 _json["completed"] = (completed).toIso8601String(); |
| 893 } | 893 } |
| 894 if (deleted != null) { | 894 if (deleted != null) { |
| 895 _json["deleted"] = deleted; | 895 _json["deleted"] = deleted; |
| 896 } | 896 } |
| 897 if (due != null) { | 897 if (due != null) { |
| 898 _json["due"] = (due).toIso8601String(); | 898 _json["due"] = (due).toIso8601String(); |
| 899 } | 899 } |
| 900 if (etag != null) { | 900 if (etag != null) { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 selfLink = _json["selfLink"]; | 970 selfLink = _json["selfLink"]; |
| 971 } | 971 } |
| 972 if (_json.containsKey("title")) { | 972 if (_json.containsKey("title")) { |
| 973 title = _json["title"]; | 973 title = _json["title"]; |
| 974 } | 974 } |
| 975 if (_json.containsKey("updated")) { | 975 if (_json.containsKey("updated")) { |
| 976 updated = core.DateTime.parse(_json["updated"]); | 976 updated = core.DateTime.parse(_json["updated"]); |
| 977 } | 977 } |
| 978 } | 978 } |
| 979 | 979 |
| 980 core.Map toJson() { | 980 core.Map<core.String, core.Object> toJson() { |
| 981 var _json = new core.Map(); | 981 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 982 if (etag != null) { | 982 if (etag != null) { |
| 983 _json["etag"] = etag; | 983 _json["etag"] = etag; |
| 984 } | 984 } |
| 985 if (id != null) { | 985 if (id != null) { |
| 986 _json["id"] = id; | 986 _json["id"] = id; |
| 987 } | 987 } |
| 988 if (kind != null) { | 988 if (kind != null) { |
| 989 _json["kind"] = kind; | 989 _json["kind"] = kind; |
| 990 } | 990 } |
| 991 if (selfLink != null) { | 991 if (selfLink != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1021 items = _json["items"].map((value) => new TaskList.fromJson(value)).toList
(); | 1021 items = _json["items"].map((value) => new TaskList.fromJson(value)).toList
(); |
| 1022 } | 1022 } |
| 1023 if (_json.containsKey("kind")) { | 1023 if (_json.containsKey("kind")) { |
| 1024 kind = _json["kind"]; | 1024 kind = _json["kind"]; |
| 1025 } | 1025 } |
| 1026 if (_json.containsKey("nextPageToken")) { | 1026 if (_json.containsKey("nextPageToken")) { |
| 1027 nextPageToken = _json["nextPageToken"]; | 1027 nextPageToken = _json["nextPageToken"]; |
| 1028 } | 1028 } |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 core.Map toJson() { | 1031 core.Map<core.String, core.Object> toJson() { |
| 1032 var _json = new core.Map(); | 1032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1033 if (etag != null) { | 1033 if (etag != null) { |
| 1034 _json["etag"] = etag; | 1034 _json["etag"] = etag; |
| 1035 } | 1035 } |
| 1036 if (items != null) { | 1036 if (items != null) { |
| 1037 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1037 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1038 } | 1038 } |
| 1039 if (kind != null) { | 1039 if (kind != null) { |
| 1040 _json["kind"] = kind; | 1040 _json["kind"] = kind; |
| 1041 } | 1041 } |
| 1042 if (nextPageToken != null) { | 1042 if (nextPageToken != null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1066 items = _json["items"].map((value) => new Task.fromJson(value)).toList(); | 1066 items = _json["items"].map((value) => new Task.fromJson(value)).toList(); |
| 1067 } | 1067 } |
| 1068 if (_json.containsKey("kind")) { | 1068 if (_json.containsKey("kind")) { |
| 1069 kind = _json["kind"]; | 1069 kind = _json["kind"]; |
| 1070 } | 1070 } |
| 1071 if (_json.containsKey("nextPageToken")) { | 1071 if (_json.containsKey("nextPageToken")) { |
| 1072 nextPageToken = _json["nextPageToken"]; | 1072 nextPageToken = _json["nextPageToken"]; |
| 1073 } | 1073 } |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 core.Map toJson() { | 1076 core.Map<core.String, core.Object> toJson() { |
| 1077 var _json = new core.Map(); | 1077 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1078 if (etag != null) { | 1078 if (etag != null) { |
| 1079 _json["etag"] = etag; | 1079 _json["etag"] = etag; |
| 1080 } | 1080 } |
| 1081 if (items != null) { | 1081 if (items != null) { |
| 1082 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1082 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1083 } | 1083 } |
| 1084 if (kind != null) { | 1084 if (kind != null) { |
| 1085 _json["kind"] = kind; | 1085 _json["kind"] = kind; |
| 1086 } | 1086 } |
| 1087 if (nextPageToken != null) { | 1087 if (nextPageToken != null) { |
| 1088 _json["nextPageToken"] = nextPageToken; | 1088 _json["nextPageToken"] = nextPageToken; |
| 1089 } | 1089 } |
| 1090 return _json; | 1090 return _json; |
| 1091 } | 1091 } |
| 1092 } | 1092 } |
| OLD | NEW |