| 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.playmoviespartner.v1; | 3 library googleapis.playmoviespartner.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 * List Avails owned or managed by the partner. | 96 * List Avails owned or managed by the partner. |
| 97 * | 97 * |
| 98 * See _Authentication and Authorization rules_ and | 98 * See _Authentication and Authorization rules_ and |
| 99 * _List methods rules_ for more information about this method. | 99 * _List methods rules_ for more information about this method. |
| 100 * | 100 * |
| 101 * Request parameters: | 101 * Request parameters: |
| 102 * | 102 * |
| 103 * [accountId] - REQUIRED. See _General rules_ for more information about this | 103 * [accountId] - REQUIRED. See _General rules_ for more information about this |
| 104 * field. | 104 * field. |
| 105 * | 105 * |
| 106 * [pphNames] - See _List methods rules_ for info about this field. |
| 107 * |
| 108 * [altId] - Filter Avails that match a case-insensitive, partner-specific |
| 109 * custom id. |
| 110 * NOTE: this field is deprecated and will be removed on V2; `alt_ids` |
| 111 * should be used instead. |
| 112 * |
| 113 * [studioNames] - See _List methods rules_ for info about this field. |
| 114 * |
| 106 * [territories] - Filter Avails that match (case-insensitive) any of the | 115 * [territories] - Filter Avails that match (case-insensitive) any of the |
| 107 * given country codes, | 116 * given country codes, |
| 108 * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). | 117 * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). |
| 109 * | 118 * |
| 110 * [title] - Filter that matches Avails with a `title_internal_alias`, | 119 * [title] - Filter that matches Avails with a `title_internal_alias`, |
| 111 * `series_title_internal_alias`, `season_title_internal_alias`, | 120 * `series_title_internal_alias`, `season_title_internal_alias`, |
| 112 * or `episode_title_internal_alias` that contains the given | 121 * or `episode_title_internal_alias` that contains the given |
| 113 * case-insensitive title. | 122 * case-insensitive title. |
| 114 * | 123 * |
| 124 * [pageToken] - See _List methods rules_ for info about this field. |
| 125 * |
| 115 * [videoIds] - Filter Avails that match any of the given `video_id`s. | 126 * [videoIds] - Filter Avails that match any of the given `video_id`s. |
| 116 * | 127 * |
| 117 * [pageToken] - See _List methods rules_ for info about this field. | |
| 118 * | |
| 119 * [pageSize] - See _List methods rules_ for info about this field. | 128 * [pageSize] - See _List methods rules_ for info about this field. |
| 120 * | 129 * |
| 121 * [altIds] - Filter Avails that match (case-insensitive) any of the given | 130 * [altIds] - Filter Avails that match (case-insensitive) any of the given |
| 122 * partner-specific custom ids. | 131 * partner-specific custom ids. |
| 123 * | 132 * |
| 124 * [pphNames] - See _List methods rules_ for info about this field. | |
| 125 * | |
| 126 * [altId] - Filter Avails that match a case-insensitive, partner-specific | |
| 127 * custom id. | |
| 128 * NOTE: this field is deprecated and will be removed on V2; `alt_ids` | |
| 129 * should be used instead. | |
| 130 * | |
| 131 * [studioNames] - See _List methods rules_ for info about this field. | |
| 132 * | |
| 133 * Completes with a [ListAvailsResponse]. | 133 * Completes with a [ListAvailsResponse]. |
| 134 * | 134 * |
| 135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 136 * error. | 136 * error. |
| 137 * | 137 * |
| 138 * If the used [http.Client] completes with an error when making a REST call, | 138 * If the used [http.Client] completes with an error when making a REST call, |
| 139 * this method will complete with the same error. | 139 * this method will complete with the same error. |
| 140 */ | 140 */ |
| 141 async.Future<ListAvailsResponse> list(core.String accountId, {core.List<core.S
tring> territories, core.String title, core.List<core.String> videoIds, core.Str
ing pageToken, core.int pageSize, core.List<core.String> altIds, core.List<core.
String> pphNames, core.String altId, core.List<core.String> studioNames}) { | 141 async.Future<ListAvailsResponse> list(core.String accountId, {core.List<core.S
tring> pphNames, core.String altId, core.List<core.String> studioNames, core.Lis
t<core.String> territories, core.String title, core.String pageToken, core.List<
core.String> videoIds, core.int pageSize, core.List<core.String> altIds}) { |
| 142 var _url = null; | 142 var _url = null; |
| 143 var _queryParams = new core.Map(); | 143 var _queryParams = new core.Map(); |
| 144 var _uploadMedia = null; | 144 var _uploadMedia = null; |
| 145 var _uploadOptions = null; | 145 var _uploadOptions = null; |
| 146 var _downloadOptions = commons.DownloadOptions.Metadata; | 146 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 147 var _body = null; | 147 var _body = null; |
| 148 | 148 |
| 149 if (accountId == null) { | 149 if (accountId == null) { |
| 150 throw new core.ArgumentError("Parameter accountId is required."); | 150 throw new core.ArgumentError("Parameter accountId is required."); |
| 151 } | 151 } |
| 152 if (territories != null) { | |
| 153 _queryParams["territories"] = territories; | |
| 154 } | |
| 155 if (title != null) { | |
| 156 _queryParams["title"] = [title]; | |
| 157 } | |
| 158 if (videoIds != null) { | |
| 159 _queryParams["videoIds"] = videoIds; | |
| 160 } | |
| 161 if (pageToken != null) { | |
| 162 _queryParams["pageToken"] = [pageToken]; | |
| 163 } | |
| 164 if (pageSize != null) { | |
| 165 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 166 } | |
| 167 if (altIds != null) { | |
| 168 _queryParams["altIds"] = altIds; | |
| 169 } | |
| 170 if (pphNames != null) { | 152 if (pphNames != null) { |
| 171 _queryParams["pphNames"] = pphNames; | 153 _queryParams["pphNames"] = pphNames; |
| 172 } | 154 } |
| 173 if (altId != null) { | 155 if (altId != null) { |
| 174 _queryParams["altId"] = [altId]; | 156 _queryParams["altId"] = [altId]; |
| 175 } | 157 } |
| 176 if (studioNames != null) { | 158 if (studioNames != null) { |
| 177 _queryParams["studioNames"] = studioNames; | 159 _queryParams["studioNames"] = studioNames; |
| 178 } | 160 } |
| 161 if (territories != null) { |
| 162 _queryParams["territories"] = territories; |
| 163 } |
| 164 if (title != null) { |
| 165 _queryParams["title"] = [title]; |
| 166 } |
| 167 if (pageToken != null) { |
| 168 _queryParams["pageToken"] = [pageToken]; |
| 169 } |
| 170 if (videoIds != null) { |
| 171 _queryParams["videoIds"] = videoIds; |
| 172 } |
| 173 if (pageSize != null) { |
| 174 _queryParams["pageSize"] = ["${pageSize}"]; |
| 175 } |
| 176 if (altIds != null) { |
| 177 _queryParams["altIds"] = altIds; |
| 178 } |
| 179 | 179 |
| 180 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
ls'; | 180 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
ls'; |
| 181 | 181 |
| 182 var _response = _requester.request(_url, | 182 var _response = _requester.request(_url, |
| 183 "GET", | 183 "GET", |
| 184 body: _body, | 184 body: _body, |
| 185 queryParams: _queryParams, | 185 queryParams: _queryParams, |
| 186 uploadOptions: _uploadOptions, | 186 uploadOptions: _uploadOptions, |
| 187 uploadMedia: _uploadMedia, | 187 uploadMedia: _uploadMedia, |
| 188 downloadOptions: _downloadOptions); | 188 downloadOptions: _downloadOptions); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 * List StoreInfos owned or managed by the partner. | 347 * List StoreInfos owned or managed by the partner. |
| 348 * | 348 * |
| 349 * See _Authentication and Authorization rules_ and | 349 * See _Authentication and Authorization rules_ and |
| 350 * _List methods rules_ for more information about this method. | 350 * _List methods rules_ for more information about this method. |
| 351 * | 351 * |
| 352 * Request parameters: | 352 * Request parameters: |
| 353 * | 353 * |
| 354 * [accountId] - REQUIRED. See _General rules_ for more information about this | 354 * [accountId] - REQUIRED. See _General rules_ for more information about this |
| 355 * field. | 355 * field. |
| 356 * | 356 * |
| 357 * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. |
| 358 * |
| 359 * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. |
| 360 * |
| 361 * [videoId] - Filter StoreInfos that match a given `video_id`. |
| 362 * NOTE: this field is deprecated and will be removed on V2; `video_ids` |
| 363 * should be used instead. |
| 364 * |
| 365 * [pageToken] - See _List methods rules_ for info about this field. |
| 366 * |
| 367 * [pageSize] - See _List methods rules_ for info about this field. |
| 368 * |
| 357 * [mids] - Filter StoreInfos that match any of the given `mid`s. | 369 * [mids] - Filter StoreInfos that match any of the given `mid`s. |
| 358 * | 370 * |
| 359 * [pphNames] - See _List methods rules_ for info about this field. | 371 * [pphNames] - See _List methods rules_ for info about this field. |
| 360 * | 372 * |
| 361 * [countries] - Filter StoreInfos that match (case-insensitive) any of the | 373 * [countries] - Filter StoreInfos that match (case-insensitive) any of the |
| 362 * given country | 374 * given country |
| 363 * codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). | 375 * codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). |
| 364 * | 376 * |
| 377 * [studioNames] - See _List methods rules_ for info about this field. |
| 378 * |
| 365 * [name] - Filter that matches StoreInfos with a `name` or `show_name` | 379 * [name] - Filter that matches StoreInfos with a `name` or `show_name` |
| 366 * that contains the given case-insensitive name. | 380 * that contains the given case-insensitive name. |
| 367 * | 381 * |
| 368 * [studioNames] - See _List methods rules_ for info about this field. | |
| 369 * | |
| 370 * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. | |
| 371 * | |
| 372 * [pageToken] - See _List methods rules_ for info about this field. | |
| 373 * | |
| 374 * [videoId] - Filter StoreInfos that match a given `video_id`. | |
| 375 * NOTE: this field is deprecated and will be removed on V2; `video_ids` | |
| 376 * should be used instead. | |
| 377 * | |
| 378 * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. | |
| 379 * | |
| 380 * [pageSize] - See _List methods rules_ for info about this field. | |
| 381 * | |
| 382 * Completes with a [ListStoreInfosResponse]. | 382 * Completes with a [ListStoreInfosResponse]. |
| 383 * | 383 * |
| 384 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 384 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 385 * error. | 385 * error. |
| 386 * | 386 * |
| 387 * If the used [http.Client] completes with an error when making a REST call, | 387 * If the used [http.Client] completes with an error when making a REST call, |
| 388 * this method will complete with the same error. | 388 * this method will complete with the same error. |
| 389 */ | 389 */ |
| 390 async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<co
re.String> mids, core.List<core.String> pphNames, core.List<core.String> countri
es, core.String name, core.List<core.String> studioNames, core.List<core.String>
seasonIds, core.String pageToken, core.String videoId, core.List<core.String> v
ideoIds, core.int pageSize}) { | 390 async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<co
re.String> seasonIds, core.List<core.String> videoIds, core.String videoId, core
.String pageToken, core.int pageSize, core.List<core.String> mids, core.List<cor
e.String> pphNames, core.List<core.String> countries, core.List<core.String> stu
dioNames, core.String name}) { |
| 391 var _url = null; | 391 var _url = null; |
| 392 var _queryParams = new core.Map(); | 392 var _queryParams = new core.Map(); |
| 393 var _uploadMedia = null; | 393 var _uploadMedia = null; |
| 394 var _uploadOptions = null; | 394 var _uploadOptions = null; |
| 395 var _downloadOptions = commons.DownloadOptions.Metadata; | 395 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 396 var _body = null; | 396 var _body = null; |
| 397 | 397 |
| 398 if (accountId == null) { | 398 if (accountId == null) { |
| 399 throw new core.ArgumentError("Parameter accountId is required."); | 399 throw new core.ArgumentError("Parameter accountId is required."); |
| 400 } | 400 } |
| 401 if (seasonIds != null) { |
| 402 _queryParams["seasonIds"] = seasonIds; |
| 403 } |
| 404 if (videoIds != null) { |
| 405 _queryParams["videoIds"] = videoIds; |
| 406 } |
| 407 if (videoId != null) { |
| 408 _queryParams["videoId"] = [videoId]; |
| 409 } |
| 410 if (pageToken != null) { |
| 411 _queryParams["pageToken"] = [pageToken]; |
| 412 } |
| 413 if (pageSize != null) { |
| 414 _queryParams["pageSize"] = ["${pageSize}"]; |
| 415 } |
| 401 if (mids != null) { | 416 if (mids != null) { |
| 402 _queryParams["mids"] = mids; | 417 _queryParams["mids"] = mids; |
| 403 } | 418 } |
| 404 if (pphNames != null) { | 419 if (pphNames != null) { |
| 405 _queryParams["pphNames"] = pphNames; | 420 _queryParams["pphNames"] = pphNames; |
| 406 } | 421 } |
| 407 if (countries != null) { | 422 if (countries != null) { |
| 408 _queryParams["countries"] = countries; | 423 _queryParams["countries"] = countries; |
| 409 } | 424 } |
| 425 if (studioNames != null) { |
| 426 _queryParams["studioNames"] = studioNames; |
| 427 } |
| 410 if (name != null) { | 428 if (name != null) { |
| 411 _queryParams["name"] = [name]; | 429 _queryParams["name"] = [name]; |
| 412 } | 430 } |
| 413 if (studioNames != null) { | |
| 414 _queryParams["studioNames"] = studioNames; | |
| 415 } | |
| 416 if (seasonIds != null) { | |
| 417 _queryParams["seasonIds"] = seasonIds; | |
| 418 } | |
| 419 if (pageToken != null) { | |
| 420 _queryParams["pageToken"] = [pageToken]; | |
| 421 } | |
| 422 if (videoId != null) { | |
| 423 _queryParams["videoId"] = [videoId]; | |
| 424 } | |
| 425 if (videoIds != null) { | |
| 426 _queryParams["videoIds"] = videoIds; | |
| 427 } | |
| 428 if (pageSize != null) { | |
| 429 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 430 } | |
| 431 | 431 |
| 432 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
eInfos'; | 432 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
eInfos'; |
| 433 | 433 |
| 434 var _response = _requester.request(_url, | 434 var _response = _requester.request(_url, |
| 435 "GET", | 435 "GET", |
| 436 body: _body, | 436 body: _body, |
| 437 queryParams: _queryParams, | 437 queryParams: _queryParams, |
| 438 uploadOptions: _uploadOptions, | 438 uploadOptions: _uploadOptions, |
| 439 uploadMedia: _uploadMedia, | 439 uploadMedia: _uploadMedia, |
| 440 downloadOptions: _downloadOptions); | 440 downloadOptions: _downloadOptions); |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 titleInternalAlias = _json["titleInternalAlias"]; | 837 titleInternalAlias = _json["titleInternalAlias"]; |
| 838 } | 838 } |
| 839 if (_json.containsKey("videoId")) { | 839 if (_json.containsKey("videoId")) { |
| 840 videoId = _json["videoId"]; | 840 videoId = _json["videoId"]; |
| 841 } | 841 } |
| 842 if (_json.containsKey("workType")) { | 842 if (_json.containsKey("workType")) { |
| 843 workType = _json["workType"]; | 843 workType = _json["workType"]; |
| 844 } | 844 } |
| 845 } | 845 } |
| 846 | 846 |
| 847 core.Map toJson() { | 847 core.Map<core.String, core.Object> toJson() { |
| 848 var _json = new core.Map(); | 848 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 849 if (altId != null) { | 849 if (altId != null) { |
| 850 _json["altId"] = altId; | 850 _json["altId"] = altId; |
| 851 } | 851 } |
| 852 if (availId != null) { | 852 if (availId != null) { |
| 853 _json["availId"] = availId; | 853 _json["availId"] = availId; |
| 854 } | 854 } |
| 855 if (captionExemption != null) { | 855 if (captionExemption != null) { |
| 856 _json["captionExemption"] = captionExemption; | 856 _json["captionExemption"] = captionExemption; |
| 857 } | 857 } |
| 858 if (captionIncluded != null) { | 858 if (captionIncluded != null) { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 avails = _json["avails"].map((value) => new Avail.fromJson(value)).toList(
); | 965 avails = _json["avails"].map((value) => new Avail.fromJson(value)).toList(
); |
| 966 } | 966 } |
| 967 if (_json.containsKey("nextPageToken")) { | 967 if (_json.containsKey("nextPageToken")) { |
| 968 nextPageToken = _json["nextPageToken"]; | 968 nextPageToken = _json["nextPageToken"]; |
| 969 } | 969 } |
| 970 if (_json.containsKey("totalSize")) { | 970 if (_json.containsKey("totalSize")) { |
| 971 totalSize = _json["totalSize"]; | 971 totalSize = _json["totalSize"]; |
| 972 } | 972 } |
| 973 } | 973 } |
| 974 | 974 |
| 975 core.Map toJson() { | 975 core.Map<core.String, core.Object> toJson() { |
| 976 var _json = new core.Map(); | 976 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 977 if (avails != null) { | 977 if (avails != null) { |
| 978 _json["avails"] = avails.map((value) => (value).toJson()).toList(); | 978 _json["avails"] = avails.map((value) => (value).toJson()).toList(); |
| 979 } | 979 } |
| 980 if (nextPageToken != null) { | 980 if (nextPageToken != null) { |
| 981 _json["nextPageToken"] = nextPageToken; | 981 _json["nextPageToken"] = nextPageToken; |
| 982 } | 982 } |
| 983 if (totalSize != null) { | 983 if (totalSize != null) { |
| 984 _json["totalSize"] = totalSize; | 984 _json["totalSize"] = totalSize; |
| 985 } | 985 } |
| 986 return _json; | 986 return _json; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1003 nextPageToken = _json["nextPageToken"]; | 1003 nextPageToken = _json["nextPageToken"]; |
| 1004 } | 1004 } |
| 1005 if (_json.containsKey("orders")) { | 1005 if (_json.containsKey("orders")) { |
| 1006 orders = _json["orders"].map((value) => new Order.fromJson(value)).toList(
); | 1006 orders = _json["orders"].map((value) => new Order.fromJson(value)).toList(
); |
| 1007 } | 1007 } |
| 1008 if (_json.containsKey("totalSize")) { | 1008 if (_json.containsKey("totalSize")) { |
| 1009 totalSize = _json["totalSize"]; | 1009 totalSize = _json["totalSize"]; |
| 1010 } | 1010 } |
| 1011 } | 1011 } |
| 1012 | 1012 |
| 1013 core.Map toJson() { | 1013 core.Map<core.String, core.Object> toJson() { |
| 1014 var _json = new core.Map(); | 1014 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1015 if (nextPageToken != null) { | 1015 if (nextPageToken != null) { |
| 1016 _json["nextPageToken"] = nextPageToken; | 1016 _json["nextPageToken"] = nextPageToken; |
| 1017 } | 1017 } |
| 1018 if (orders != null) { | 1018 if (orders != null) { |
| 1019 _json["orders"] = orders.map((value) => (value).toJson()).toList(); | 1019 _json["orders"] = orders.map((value) => (value).toJson()).toList(); |
| 1020 } | 1020 } |
| 1021 if (totalSize != null) { | 1021 if (totalSize != null) { |
| 1022 _json["totalSize"] = totalSize; | 1022 _json["totalSize"] = totalSize; |
| 1023 } | 1023 } |
| 1024 return _json; | 1024 return _json; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1041 nextPageToken = _json["nextPageToken"]; | 1041 nextPageToken = _json["nextPageToken"]; |
| 1042 } | 1042 } |
| 1043 if (_json.containsKey("storeInfos")) { | 1043 if (_json.containsKey("storeInfos")) { |
| 1044 storeInfos = _json["storeInfos"].map((value) => new StoreInfo.fromJson(val
ue)).toList(); | 1044 storeInfos = _json["storeInfos"].map((value) => new StoreInfo.fromJson(val
ue)).toList(); |
| 1045 } | 1045 } |
| 1046 if (_json.containsKey("totalSize")) { | 1046 if (_json.containsKey("totalSize")) { |
| 1047 totalSize = _json["totalSize"]; | 1047 totalSize = _json["totalSize"]; |
| 1048 } | 1048 } |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 core.Map toJson() { | 1051 core.Map<core.String, core.Object> toJson() { |
| 1052 var _json = new core.Map(); | 1052 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1053 if (nextPageToken != null) { | 1053 if (nextPageToken != null) { |
| 1054 _json["nextPageToken"] = nextPageToken; | 1054 _json["nextPageToken"] = nextPageToken; |
| 1055 } | 1055 } |
| 1056 if (storeInfos != null) { | 1056 if (storeInfos != null) { |
| 1057 _json["storeInfos"] = storeInfos.map((value) => (value).toJson()).toList()
; | 1057 _json["storeInfos"] = storeInfos.map((value) => (value).toJson()).toList()
; |
| 1058 } | 1058 } |
| 1059 if (totalSize != null) { | 1059 if (totalSize != null) { |
| 1060 _json["totalSize"] = totalSize; | 1060 _json["totalSize"] = totalSize; |
| 1061 } | 1061 } |
| 1062 return _json; | 1062 return _json; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 studioName = _json["studioName"]; | 1292 studioName = _json["studioName"]; |
| 1293 } | 1293 } |
| 1294 if (_json.containsKey("type")) { | 1294 if (_json.containsKey("type")) { |
| 1295 type = _json["type"]; | 1295 type = _json["type"]; |
| 1296 } | 1296 } |
| 1297 if (_json.containsKey("videoId")) { | 1297 if (_json.containsKey("videoId")) { |
| 1298 videoId = _json["videoId"]; | 1298 videoId = _json["videoId"]; |
| 1299 } | 1299 } |
| 1300 } | 1300 } |
| 1301 | 1301 |
| 1302 core.Map toJson() { | 1302 core.Map<core.String, core.Object> toJson() { |
| 1303 var _json = new core.Map(); | 1303 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1304 if (approvedTime != null) { | 1304 if (approvedTime != null) { |
| 1305 _json["approvedTime"] = approvedTime; | 1305 _json["approvedTime"] = approvedTime; |
| 1306 } | 1306 } |
| 1307 if (channelId != null) { | 1307 if (channelId != null) { |
| 1308 _json["channelId"] = channelId; | 1308 _json["channelId"] = channelId; |
| 1309 } | 1309 } |
| 1310 if (channelName != null) { | 1310 if (channelName != null) { |
| 1311 _json["channelName"] = channelName; | 1311 _json["channelName"] = channelName; |
| 1312 } | 1312 } |
| 1313 if (countries != null) { | 1313 if (countries != null) { |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1573 trailerId = _json["trailerId"]; | 1573 trailerId = _json["trailerId"]; |
| 1574 } | 1574 } |
| 1575 if (_json.containsKey("type")) { | 1575 if (_json.containsKey("type")) { |
| 1576 type = _json["type"]; | 1576 type = _json["type"]; |
| 1577 } | 1577 } |
| 1578 if (_json.containsKey("videoId")) { | 1578 if (_json.containsKey("videoId")) { |
| 1579 videoId = _json["videoId"]; | 1579 videoId = _json["videoId"]; |
| 1580 } | 1580 } |
| 1581 } | 1581 } |
| 1582 | 1582 |
| 1583 core.Map toJson() { | 1583 core.Map<core.String, core.Object> toJson() { |
| 1584 var _json = new core.Map(); | 1584 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1585 if (audioTracks != null) { | 1585 if (audioTracks != null) { |
| 1586 _json["audioTracks"] = audioTracks; | 1586 _json["audioTracks"] = audioTracks; |
| 1587 } | 1587 } |
| 1588 if (country != null) { | 1588 if (country != null) { |
| 1589 _json["country"] = country; | 1589 _json["country"] = country; |
| 1590 } | 1590 } |
| 1591 if (editLevelEidr != null) { | 1591 if (editLevelEidr != null) { |
| 1592 _json["editLevelEidr"] = editLevelEidr; | 1592 _json["editLevelEidr"] = editLevelEidr; |
| 1593 } | 1593 } |
| 1594 if (episodeNumber != null) { | 1594 if (episodeNumber != null) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 } | 1653 } |
| 1654 if (type != null) { | 1654 if (type != null) { |
| 1655 _json["type"] = type; | 1655 _json["type"] = type; |
| 1656 } | 1656 } |
| 1657 if (videoId != null) { | 1657 if (videoId != null) { |
| 1658 _json["videoId"] = videoId; | 1658 _json["videoId"] = videoId; |
| 1659 } | 1659 } |
| 1660 return _json; | 1660 return _json; |
| 1661 } | 1661 } |
| 1662 } | 1662 } |
| OLD | NEW |