| 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.webfonts.v1; | 3 library googleapis.webfonts.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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 subsets = _json["subsets"]; | 131 subsets = _json["subsets"]; |
| 132 } | 132 } |
| 133 if (_json.containsKey("variants")) { | 133 if (_json.containsKey("variants")) { |
| 134 variants = _json["variants"]; | 134 variants = _json["variants"]; |
| 135 } | 135 } |
| 136 if (_json.containsKey("version")) { | 136 if (_json.containsKey("version")) { |
| 137 version = _json["version"]; | 137 version = _json["version"]; |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 core.Map toJson() { | 141 core.Map<core.String, core.Object> toJson() { |
| 142 var _json = new core.Map(); | 142 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 143 if (category != null) { | 143 if (category != null) { |
| 144 _json["category"] = category; | 144 _json["category"] = category; |
| 145 } | 145 } |
| 146 if (family != null) { | 146 if (family != null) { |
| 147 _json["family"] = family; | 147 _json["family"] = family; |
| 148 } | 148 } |
| 149 if (files != null) { | 149 if (files != null) { |
| 150 _json["files"] = files; | 150 _json["files"] = files; |
| 151 } | 151 } |
| 152 if (kind != null) { | 152 if (kind != null) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 180 | 180 |
| 181 WebfontList.fromJson(core.Map _json) { | 181 WebfontList.fromJson(core.Map _json) { |
| 182 if (_json.containsKey("items")) { | 182 if (_json.containsKey("items")) { |
| 183 items = _json["items"].map((value) => new Webfont.fromJson(value)).toList(
); | 183 items = _json["items"].map((value) => new Webfont.fromJson(value)).toList(
); |
| 184 } | 184 } |
| 185 if (_json.containsKey("kind")) { | 185 if (_json.containsKey("kind")) { |
| 186 kind = _json["kind"]; | 186 kind = _json["kind"]; |
| 187 } | 187 } |
| 188 } | 188 } |
| 189 | 189 |
| 190 core.Map toJson() { | 190 core.Map<core.String, core.Object> toJson() { |
| 191 var _json = new core.Map(); | 191 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 192 if (items != null) { | 192 if (items != null) { |
| 193 _json["items"] = items.map((value) => (value).toJson()).toList(); | 193 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 194 } | 194 } |
| 195 if (kind != null) { | 195 if (kind != null) { |
| 196 _json["kind"] = kind; | 196 _json["kind"] = kind; |
| 197 } | 197 } |
| 198 return _json; | 198 return _json; |
| 199 } | 199 } |
| 200 } | 200 } |
| OLD | NEW |