OLD | NEW |
1 library googleapis.youtube.v3; | 1 library googleapis.youtube.v3; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 LiveStreamsResourceApi get liveStreams => new LiveStreamsResourceApi(_requeste
r); | 47 LiveStreamsResourceApi get liveStreams => new LiveStreamsResourceApi(_requeste
r); |
48 PlaylistItemsResourceApi get playlistItems => new PlaylistItemsResourceApi(_re
quester); | 48 PlaylistItemsResourceApi get playlistItems => new PlaylistItemsResourceApi(_re
quester); |
49 PlaylistsResourceApi get playlists => new PlaylistsResourceApi(_requester); | 49 PlaylistsResourceApi get playlists => new PlaylistsResourceApi(_requester); |
50 SearchResourceApi get search => new SearchResourceApi(_requester); | 50 SearchResourceApi get search => new SearchResourceApi(_requester); |
51 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); | 51 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); |
52 ThumbnailsResourceApi get thumbnails => new ThumbnailsResourceApi(_requester); | 52 ThumbnailsResourceApi get thumbnails => new ThumbnailsResourceApi(_requester); |
53 VideoCategoriesResourceApi get videoCategories => new VideoCategoriesResourceA
pi(_requester); | 53 VideoCategoriesResourceApi get videoCategories => new VideoCategoriesResourceA
pi(_requester); |
54 VideosResourceApi get videos => new VideosResourceApi(_requester); | 54 VideosResourceApi get videos => new VideosResourceApi(_requester); |
55 WatermarksResourceApi get watermarks => new WatermarksResourceApi(_requester); | 55 WatermarksResourceApi get watermarks => new WatermarksResourceApi(_requester); |
56 | 56 |
57 YoutubeApi(http.Client client) : | 57 YoutubeApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "youtube/v3/"}) : |
58 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "youtube/v3/"); | 58 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
59 } | 59 } |
60 | 60 |
61 | 61 |
62 /** Not documented yet. */ | 62 /** Not documented yet. */ |
63 class ActivitiesResourceApi { | 63 class ActivitiesResourceApi { |
64 final common_internal.ApiRequester _requester; | 64 final common_internal.ApiRequester _requester; |
65 | 65 |
66 ActivitiesResourceApi(common_internal.ApiRequester client) : | 66 ActivitiesResourceApi(common_internal.ApiRequester client) : |
67 _requester = client; | 67 _requester = client; |
68 | 68 |
(...skipping 5235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5304 * campaign associated with the channel. | 5304 * campaign associated with the channel. |
5305 */ | 5305 */ |
5306 InvideoPromotion invideoPromotion; | 5306 InvideoPromotion invideoPromotion; |
5307 | 5307 |
5308 /** | 5308 /** |
5309 * Identifies what kind of resource this is. Value: the fixed string | 5309 * Identifies what kind of resource this is. Value: the fixed string |
5310 * "youtube#channel". | 5310 * "youtube#channel". |
5311 */ | 5311 */ |
5312 core.String kind; | 5312 core.String kind; |
5313 | 5313 |
| 5314 /** Localizations for different languages */ |
| 5315 core.Map<core.String, ChannelLocalization> localizations; |
| 5316 |
5314 /** | 5317 /** |
5315 * The snippet object contains basic details about the channel, such as its | 5318 * The snippet object contains basic details about the channel, such as its |
5316 * title, description, and thumbnail images. | 5319 * title, description, and thumbnail images. |
5317 */ | 5320 */ |
5318 ChannelSnippet snippet; | 5321 ChannelSnippet snippet; |
5319 | 5322 |
5320 /** The statistics object encapsulates statistics for the channel. */ | 5323 /** The statistics object encapsulates statistics for the channel. */ |
5321 ChannelStatistics statistics; | 5324 ChannelStatistics statistics; |
5322 | 5325 |
5323 /** | 5326 /** |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5356 } | 5359 } |
5357 if (_json.containsKey("id")) { | 5360 if (_json.containsKey("id")) { |
5358 id = _json["id"]; | 5361 id = _json["id"]; |
5359 } | 5362 } |
5360 if (_json.containsKey("invideoPromotion")) { | 5363 if (_json.containsKey("invideoPromotion")) { |
5361 invideoPromotion = new InvideoPromotion.fromJson(_json["invideoPromotion"]
); | 5364 invideoPromotion = new InvideoPromotion.fromJson(_json["invideoPromotion"]
); |
5362 } | 5365 } |
5363 if (_json.containsKey("kind")) { | 5366 if (_json.containsKey("kind")) { |
5364 kind = _json["kind"]; | 5367 kind = _json["kind"]; |
5365 } | 5368 } |
| 5369 if (_json.containsKey("localizations")) { |
| 5370 localizations = common_internal.mapMap(_json["localizations"], (item) => n
ew ChannelLocalization.fromJson(item)); |
| 5371 } |
5366 if (_json.containsKey("snippet")) { | 5372 if (_json.containsKey("snippet")) { |
5367 snippet = new ChannelSnippet.fromJson(_json["snippet"]); | 5373 snippet = new ChannelSnippet.fromJson(_json["snippet"]); |
5368 } | 5374 } |
5369 if (_json.containsKey("statistics")) { | 5375 if (_json.containsKey("statistics")) { |
5370 statistics = new ChannelStatistics.fromJson(_json["statistics"]); | 5376 statistics = new ChannelStatistics.fromJson(_json["statistics"]); |
5371 } | 5377 } |
5372 if (_json.containsKey("status")) { | 5378 if (_json.containsKey("status")) { |
5373 status = new ChannelStatus.fromJson(_json["status"]); | 5379 status = new ChannelStatus.fromJson(_json["status"]); |
5374 } | 5380 } |
5375 if (_json.containsKey("topicDetails")) { | 5381 if (_json.containsKey("topicDetails")) { |
(...skipping 23 matching lines...) Expand all Loading... |
5399 } | 5405 } |
5400 if (id != null) { | 5406 if (id != null) { |
5401 _json["id"] = id; | 5407 _json["id"] = id; |
5402 } | 5408 } |
5403 if (invideoPromotion != null) { | 5409 if (invideoPromotion != null) { |
5404 _json["invideoPromotion"] = (invideoPromotion).toJson(); | 5410 _json["invideoPromotion"] = (invideoPromotion).toJson(); |
5405 } | 5411 } |
5406 if (kind != null) { | 5412 if (kind != null) { |
5407 _json["kind"] = kind; | 5413 _json["kind"] = kind; |
5408 } | 5414 } |
| 5415 if (localizations != null) { |
| 5416 _json["localizations"] = common_internal.mapMap(localizations, (item) => (
item).toJson()); |
| 5417 } |
5409 if (snippet != null) { | 5418 if (snippet != null) { |
5410 _json["snippet"] = (snippet).toJson(); | 5419 _json["snippet"] = (snippet).toJson(); |
5411 } | 5420 } |
5412 if (statistics != null) { | 5421 if (statistics != null) { |
5413 _json["statistics"] = (statistics).toJson(); | 5422 _json["statistics"] = (statistics).toJson(); |
5414 } | 5423 } |
5415 if (status != null) { | 5424 if (status != null) { |
5416 _json["status"] = (status).toJson(); | 5425 _json["status"] = (status).toJson(); |
5417 } | 5426 } |
5418 if (topicDetails != null) { | 5427 if (topicDetails != null) { |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5916 _json["tokenPagination"] = (tokenPagination).toJson(); | 5925 _json["tokenPagination"] = (tokenPagination).toJson(); |
5917 } | 5926 } |
5918 if (visitorId != null) { | 5927 if (visitorId != null) { |
5919 _json["visitorId"] = visitorId; | 5928 _json["visitorId"] = visitorId; |
5920 } | 5929 } |
5921 return _json; | 5930 return _json; |
5922 } | 5931 } |
5923 } | 5932 } |
5924 | 5933 |
5925 | 5934 |
| 5935 /** Channel localization setting */ |
| 5936 class ChannelLocalization { |
| 5937 /** The localized strings for channel's description. */ |
| 5938 core.String description; |
| 5939 |
| 5940 /** The localized strings for channel's title, read-only. */ |
| 5941 core.String title; |
| 5942 |
| 5943 |
| 5944 ChannelLocalization(); |
| 5945 |
| 5946 ChannelLocalization.fromJson(core.Map _json) { |
| 5947 if (_json.containsKey("description")) { |
| 5948 description = _json["description"]; |
| 5949 } |
| 5950 if (_json.containsKey("title")) { |
| 5951 title = _json["title"]; |
| 5952 } |
| 5953 } |
| 5954 |
| 5955 core.Map toJson() { |
| 5956 var _json = new core.Map(); |
| 5957 if (description != null) { |
| 5958 _json["description"] = description; |
| 5959 } |
| 5960 if (title != null) { |
| 5961 _json["title"] = title; |
| 5962 } |
| 5963 return _json; |
| 5964 } |
| 5965 } |
| 5966 |
| 5967 |
5926 /** | 5968 /** |
5927 * TODO(lxz) follow up with adiamondstein@ to fullfill the doc before deploying | 5969 * TODO(lxz) follow up with adiamondstein@ to fullfill the doc before deploying |
5928 */ | 5970 */ |
5929 class ChannelSection { | 5971 class ChannelSection { |
5930 /** | 5972 /** |
5931 * The contentDetails object contains details about the ChannelSection | 5973 * The contentDetails object contains details about the ChannelSection |
5932 * content, such as playlists and channels. | 5974 * content, such as playlists and channels. |
5933 */ | 5975 */ |
5934 ChannelSectionContentDetails contentDetails; | 5976 ChannelSectionContentDetails contentDetails; |
5935 | 5977 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6181 if (type != null) { | 6223 if (type != null) { |
6182 _json["type"] = type; | 6224 _json["type"] = type; |
6183 } | 6225 } |
6184 return _json; | 6226 return _json; |
6185 } | 6227 } |
6186 } | 6228 } |
6187 | 6229 |
6188 | 6230 |
6189 /** Branding properties for the channel view. */ | 6231 /** Branding properties for the channel view. */ |
6190 class ChannelSettings { | 6232 class ChannelSettings { |
| 6233 /** Not documented yet. */ |
| 6234 core.String defaultLanguage; |
| 6235 |
6191 /** Which content tab users should see when viewing the channel. */ | 6236 /** Which content tab users should see when viewing the channel. */ |
6192 core.String defaultTab; | 6237 core.String defaultTab; |
6193 | 6238 |
6194 /** Specifies the channel description. */ | 6239 /** Specifies the channel description. */ |
6195 core.String description; | 6240 core.String description; |
6196 | 6241 |
6197 /** Title for the featured channels tab. */ | 6242 /** Title for the featured channels tab. */ |
6198 core.String featuredChannelsTitle; | 6243 core.String featuredChannelsTitle; |
6199 | 6244 |
6200 /** The list of featured channels. */ | 6245 /** The list of featured channels. */ |
(...skipping 26 matching lines...) Expand all Loading... |
6227 */ | 6272 */ |
6228 core.String trackingAnalyticsAccountId; | 6273 core.String trackingAnalyticsAccountId; |
6229 | 6274 |
6230 /** The trailer of the channel, for users that are not subscribers. */ | 6275 /** The trailer of the channel, for users that are not subscribers. */ |
6231 core.String unsubscribedTrailer; | 6276 core.String unsubscribedTrailer; |
6232 | 6277 |
6233 | 6278 |
6234 ChannelSettings(); | 6279 ChannelSettings(); |
6235 | 6280 |
6236 ChannelSettings.fromJson(core.Map _json) { | 6281 ChannelSettings.fromJson(core.Map _json) { |
| 6282 if (_json.containsKey("defaultLanguage")) { |
| 6283 defaultLanguage = _json["defaultLanguage"]; |
| 6284 } |
6237 if (_json.containsKey("defaultTab")) { | 6285 if (_json.containsKey("defaultTab")) { |
6238 defaultTab = _json["defaultTab"]; | 6286 defaultTab = _json["defaultTab"]; |
6239 } | 6287 } |
6240 if (_json.containsKey("description")) { | 6288 if (_json.containsKey("description")) { |
6241 description = _json["description"]; | 6289 description = _json["description"]; |
6242 } | 6290 } |
6243 if (_json.containsKey("featuredChannelsTitle")) { | 6291 if (_json.containsKey("featuredChannelsTitle")) { |
6244 featuredChannelsTitle = _json["featuredChannelsTitle"]; | 6292 featuredChannelsTitle = _json["featuredChannelsTitle"]; |
6245 } | 6293 } |
6246 if (_json.containsKey("featuredChannelsUrls")) { | 6294 if (_json.containsKey("featuredChannelsUrls")) { |
(...skipping 20 matching lines...) Expand all Loading... |
6267 if (_json.containsKey("trackingAnalyticsAccountId")) { | 6315 if (_json.containsKey("trackingAnalyticsAccountId")) { |
6268 trackingAnalyticsAccountId = _json["trackingAnalyticsAccountId"]; | 6316 trackingAnalyticsAccountId = _json["trackingAnalyticsAccountId"]; |
6269 } | 6317 } |
6270 if (_json.containsKey("unsubscribedTrailer")) { | 6318 if (_json.containsKey("unsubscribedTrailer")) { |
6271 unsubscribedTrailer = _json["unsubscribedTrailer"]; | 6319 unsubscribedTrailer = _json["unsubscribedTrailer"]; |
6272 } | 6320 } |
6273 } | 6321 } |
6274 | 6322 |
6275 core.Map toJson() { | 6323 core.Map toJson() { |
6276 var _json = new core.Map(); | 6324 var _json = new core.Map(); |
| 6325 if (defaultLanguage != null) { |
| 6326 _json["defaultLanguage"] = defaultLanguage; |
| 6327 } |
6277 if (defaultTab != null) { | 6328 if (defaultTab != null) { |
6278 _json["defaultTab"] = defaultTab; | 6329 _json["defaultTab"] = defaultTab; |
6279 } | 6330 } |
6280 if (description != null) { | 6331 if (description != null) { |
6281 _json["description"] = description; | 6332 _json["description"] = description; |
6282 } | 6333 } |
6283 if (featuredChannelsTitle != null) { | 6334 if (featuredChannelsTitle != null) { |
6284 _json["featuredChannelsTitle"] = featuredChannelsTitle; | 6335 _json["featuredChannelsTitle"] = featuredChannelsTitle; |
6285 } | 6336 } |
6286 if (featuredChannelsUrls != null) { | 6337 if (featuredChannelsUrls != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
6312 } | 6363 } |
6313 return _json; | 6364 return _json; |
6314 } | 6365 } |
6315 } | 6366 } |
6316 | 6367 |
6317 | 6368 |
6318 /** | 6369 /** |
6319 * Basic details about a channel, including title, description and thumbnails. | 6370 * Basic details about a channel, including title, description and thumbnails. |
6320 */ | 6371 */ |
6321 class ChannelSnippet { | 6372 class ChannelSnippet { |
| 6373 /** The language of the channel's default title and description. */ |
| 6374 core.String defaultLanguage; |
| 6375 |
6322 /** The description of the channel. */ | 6376 /** The description of the channel. */ |
6323 core.String description; | 6377 core.String description; |
6324 | 6378 |
| 6379 /** Localized title and description, read-only. */ |
| 6380 ChannelLocalization localized; |
| 6381 |
6325 /** | 6382 /** |
6326 * The date and time that the channel was created. The value is specified in | 6383 * The date and time that the channel was created. The value is specified in |
6327 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 6384 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
6328 */ | 6385 */ |
6329 core.DateTime publishedAt; | 6386 core.DateTime publishedAt; |
6330 | 6387 |
6331 /** | 6388 /** |
6332 * A map of thumbnail images associated with the channel. For each object in | 6389 * A map of thumbnail images associated with the channel. For each object in |
6333 * the map, the key is the name of the thumbnail image, and the value is an | 6390 * the map, the key is the name of the thumbnail image, and the value is an |
6334 * object that contains other information about the thumbnail. | 6391 * object that contains other information about the thumbnail. |
6335 */ | 6392 */ |
6336 ThumbnailDetails thumbnails; | 6393 ThumbnailDetails thumbnails; |
6337 | 6394 |
6338 /** The channel's title. */ | 6395 /** The channel's title. */ |
6339 core.String title; | 6396 core.String title; |
6340 | 6397 |
6341 | 6398 |
6342 ChannelSnippet(); | 6399 ChannelSnippet(); |
6343 | 6400 |
6344 ChannelSnippet.fromJson(core.Map _json) { | 6401 ChannelSnippet.fromJson(core.Map _json) { |
| 6402 if (_json.containsKey("defaultLanguage")) { |
| 6403 defaultLanguage = _json["defaultLanguage"]; |
| 6404 } |
6345 if (_json.containsKey("description")) { | 6405 if (_json.containsKey("description")) { |
6346 description = _json["description"]; | 6406 description = _json["description"]; |
6347 } | 6407 } |
| 6408 if (_json.containsKey("localized")) { |
| 6409 localized = new ChannelLocalization.fromJson(_json["localized"]); |
| 6410 } |
6348 if (_json.containsKey("publishedAt")) { | 6411 if (_json.containsKey("publishedAt")) { |
6349 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 6412 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
6350 } | 6413 } |
6351 if (_json.containsKey("thumbnails")) { | 6414 if (_json.containsKey("thumbnails")) { |
6352 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 6415 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
6353 } | 6416 } |
6354 if (_json.containsKey("title")) { | 6417 if (_json.containsKey("title")) { |
6355 title = _json["title"]; | 6418 title = _json["title"]; |
6356 } | 6419 } |
6357 } | 6420 } |
6358 | 6421 |
6359 core.Map toJson() { | 6422 core.Map toJson() { |
6360 var _json = new core.Map(); | 6423 var _json = new core.Map(); |
| 6424 if (defaultLanguage != null) { |
| 6425 _json["defaultLanguage"] = defaultLanguage; |
| 6426 } |
6361 if (description != null) { | 6427 if (description != null) { |
6362 _json["description"] = description; | 6428 _json["description"] = description; |
6363 } | 6429 } |
| 6430 if (localized != null) { |
| 6431 _json["localized"] = (localized).toJson(); |
| 6432 } |
6364 if (publishedAt != null) { | 6433 if (publishedAt != null) { |
6365 _json["publishedAt"] = (publishedAt).toIso8601String(); | 6434 _json["publishedAt"] = (publishedAt).toIso8601String(); |
6366 } | 6435 } |
6367 if (thumbnails != null) { | 6436 if (thumbnails != null) { |
6368 _json["thumbnails"] = (thumbnails).toJson(); | 6437 _json["thumbnails"] = (thumbnails).toJson(); |
6369 } | 6438 } |
6370 if (title != null) { | 6439 if (title != null) { |
6371 _json["title"] = title; | 6440 _json["title"] = title; |
6372 } | 6441 } |
6373 return _json; | 6442 return _json; |
(...skipping 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8804 _json["offsetMs"] = offsetMs; | 8873 _json["offsetMs"] = offsetMs; |
8805 } | 8874 } |
8806 if (type != null) { | 8875 if (type != null) { |
8807 _json["type"] = type; | 8876 _json["type"] = type; |
8808 } | 8877 } |
8809 return _json; | 8878 return _json; |
8810 } | 8879 } |
8811 } | 8880 } |
8812 | 8881 |
8813 | 8882 |
| 8883 /** Not documented yet. */ |
| 8884 class LanguageTag { |
| 8885 /** Not documented yet. */ |
| 8886 core.String value; |
| 8887 |
| 8888 |
| 8889 LanguageTag(); |
| 8890 |
| 8891 LanguageTag.fromJson(core.Map _json) { |
| 8892 if (_json.containsKey("value")) { |
| 8893 value = _json["value"]; |
| 8894 } |
| 8895 } |
| 8896 |
| 8897 core.Map toJson() { |
| 8898 var _json = new core.Map(); |
| 8899 if (value != null) { |
| 8900 _json["value"] = value; |
| 8901 } |
| 8902 return _json; |
| 8903 } |
| 8904 } |
| 8905 |
| 8906 |
8814 /** | 8907 /** |
8815 * A liveBroadcast resource represents an event that will be streamed, via live | 8908 * A liveBroadcast resource represents an event that will be streamed, via live |
8816 * video, on YouTube. | 8909 * video, on YouTube. |
8817 */ | 8910 */ |
8818 class LiveBroadcast { | 8911 class LiveBroadcast { |
8819 /** | 8912 /** |
8820 * The contentDetails object contains information about the event's video | 8913 * The contentDetails object contains information about the event's video |
8821 * content, such as whether the content can be shown in an embedded video | 8914 * content, such as whether the content can be shown in an embedded video |
8822 * player or if it will be archived and therefore available for viewing after | 8915 * player or if it will be archived and therefore available for viewing after |
8823 * the event has concluded. | 8916 * the event has concluded. |
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9678 core.Map toJson() { | 9771 core.Map toJson() { |
9679 var _json = new core.Map(); | 9772 var _json = new core.Map(); |
9680 if (streamStatus != null) { | 9773 if (streamStatus != null) { |
9681 _json["streamStatus"] = streamStatus; | 9774 _json["streamStatus"] = streamStatus; |
9682 } | 9775 } |
9683 return _json; | 9776 return _json; |
9684 } | 9777 } |
9685 } | 9778 } |
9686 | 9779 |
9687 | 9780 |
9688 /** Represent a property available in different languages. */ | 9781 /** Not documented yet. */ |
9689 class LocalizedProperty { | 9782 class LocalizedProperty { |
9690 /** Default value for the localized property. */ | 9783 /** Not documented yet. */ |
9691 core.String default_; | 9784 core.String default_; |
9692 | 9785 |
9693 /** The localized values. */ | 9786 /** The language of the default property. */ |
| 9787 LanguageTag defaultLanguage; |
| 9788 |
| 9789 /** Not documented yet. */ |
9694 core.List<LocalizedString> localized; | 9790 core.List<LocalizedString> localized; |
9695 | 9791 |
9696 | 9792 |
9697 LocalizedProperty(); | 9793 LocalizedProperty(); |
9698 | 9794 |
9699 LocalizedProperty.fromJson(core.Map _json) { | 9795 LocalizedProperty.fromJson(core.Map _json) { |
9700 if (_json.containsKey("default")) { | 9796 if (_json.containsKey("default")) { |
9701 default_ = _json["default"]; | 9797 default_ = _json["default"]; |
9702 } | 9798 } |
| 9799 if (_json.containsKey("defaultLanguage")) { |
| 9800 defaultLanguage = new LanguageTag.fromJson(_json["defaultLanguage"]); |
| 9801 } |
9703 if (_json.containsKey("localized")) { | 9802 if (_json.containsKey("localized")) { |
9704 localized = _json["localized"].map((value) => new LocalizedString.fromJson
(value)).toList(); | 9803 localized = _json["localized"].map((value) => new LocalizedString.fromJson
(value)).toList(); |
9705 } | 9804 } |
9706 } | 9805 } |
9707 | 9806 |
9708 core.Map toJson() { | 9807 core.Map toJson() { |
9709 var _json = new core.Map(); | 9808 var _json = new core.Map(); |
9710 if (default_ != null) { | 9809 if (default_ != null) { |
9711 _json["default"] = default_; | 9810 _json["default"] = default_; |
9712 } | 9811 } |
| 9812 if (defaultLanguage != null) { |
| 9813 _json["defaultLanguage"] = (defaultLanguage).toJson(); |
| 9814 } |
9713 if (localized != null) { | 9815 if (localized != null) { |
9714 _json["localized"] = localized.map((value) => (value).toJson()).toList(); | 9816 _json["localized"] = localized.map((value) => (value).toJson()).toList(); |
9715 } | 9817 } |
9716 return _json; | 9818 return _json; |
9717 } | 9819 } |
9718 } | 9820 } |
9719 | 9821 |
9720 | 9822 |
9721 /** A localized string. */ | 9823 /** Not documented yet. */ |
9722 class LocalizedString { | 9824 class LocalizedString { |
9723 /** Language associated to this value. */ | 9825 /** Not documented yet. */ |
9724 core.String language; | 9826 core.String language; |
9725 | 9827 |
9726 /** Value of the property. */ | 9828 /** Not documented yet. */ |
9727 core.String value; | 9829 core.String value; |
9728 | 9830 |
9729 | 9831 |
9730 LocalizedString(); | 9832 LocalizedString(); |
9731 | 9833 |
9732 LocalizedString.fromJson(core.Map _json) { | 9834 LocalizedString.fromJson(core.Map _json) { |
9733 if (_json.containsKey("language")) { | 9835 if (_json.containsKey("language")) { |
9734 language = _json["language"]; | 9836 language = _json["language"]; |
9735 } | 9837 } |
9736 if (_json.containsKey("value")) { | 9838 if (_json.containsKey("value")) { |
(...skipping 4162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13899 _json["featuredPlaylistId"] = featuredPlaylistId; | 14001 _json["featuredPlaylistId"] = featuredPlaylistId; |
13900 } | 14002 } |
13901 if (textColor != null) { | 14003 if (textColor != null) { |
13902 _json["textColor"] = textColor; | 14004 _json["textColor"] = textColor; |
13903 } | 14005 } |
13904 return _json; | 14006 return _json; |
13905 } | 14007 } |
13906 } | 14008 } |
13907 | 14009 |
13908 | 14010 |
OLD | NEW |