| 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; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client webfonts/v1'; | 15 const core.String USER_AGENT = 'dart-api-client webfonts/v1'; |
| 16 | 16 |
| 17 /** The Google Fonts Developer API. */ | 17 /** |
| 18 * Accesses the metadata for all families served by Google Fonts, providing a |
| 19 * list of families currently available (including available styles and a list |
| 20 * of supported script subsets). |
| 21 */ |
| 18 class WebfontsApi { | 22 class WebfontsApi { |
| 19 | 23 |
| 20 final commons.ApiRequester _requester; | 24 final commons.ApiRequester _requester; |
| 21 | 25 |
| 22 WebfontsResourceApi get webfonts => new WebfontsResourceApi(_requester); | 26 WebfontsResourceApi get webfonts => new WebfontsResourceApi(_requester); |
| 23 | 27 |
| 24 WebfontsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "webfonts/v1/"}) : | 28 WebfontsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "webfonts/v1/"}) : |
| 25 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 29 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 26 } | 30 } |
| 27 | 31 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 var _json = new core.Map(); | 191 var _json = new core.Map(); |
| 188 if (items != null) { | 192 if (items != null) { |
| 189 _json["items"] = items.map((value) => (value).toJson()).toList(); | 193 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 190 } | 194 } |
| 191 if (kind != null) { | 195 if (kind != null) { |
| 192 _json["kind"] = kind; | 196 _json["kind"] = kind; |
| 193 } | 197 } |
| 194 return _json; | 198 return _json; |
| 195 } | 199 } |
| 196 } | 200 } |
| OLD | NEW |