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.youtube.v3; | 3 library googleapis.youtube.v3; |
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 6118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6129 | 6129 |
6130 AccessPolicy.fromJson(core.Map _json) { | 6130 AccessPolicy.fromJson(core.Map _json) { |
6131 if (_json.containsKey("allowed")) { | 6131 if (_json.containsKey("allowed")) { |
6132 allowed = _json["allowed"]; | 6132 allowed = _json["allowed"]; |
6133 } | 6133 } |
6134 if (_json.containsKey("exception")) { | 6134 if (_json.containsKey("exception")) { |
6135 exception = _json["exception"]; | 6135 exception = _json["exception"]; |
6136 } | 6136 } |
6137 } | 6137 } |
6138 | 6138 |
6139 core.Map toJson() { | 6139 core.Map<core.String, core.Object> toJson() { |
6140 var _json = new core.Map(); | 6140 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6141 if (allowed != null) { | 6141 if (allowed != null) { |
6142 _json["allowed"] = allowed; | 6142 _json["allowed"] = allowed; |
6143 } | 6143 } |
6144 if (exception != null) { | 6144 if (exception != null) { |
6145 _json["exception"] = exception; | 6145 _json["exception"] = exception; |
6146 } | 6146 } |
6147 return _json; | 6147 return _json; |
6148 } | 6148 } |
6149 } | 6149 } |
6150 | 6150 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6192 id = _json["id"]; | 6192 id = _json["id"]; |
6193 } | 6193 } |
6194 if (_json.containsKey("kind")) { | 6194 if (_json.containsKey("kind")) { |
6195 kind = _json["kind"]; | 6195 kind = _json["kind"]; |
6196 } | 6196 } |
6197 if (_json.containsKey("snippet")) { | 6197 if (_json.containsKey("snippet")) { |
6198 snippet = new ActivitySnippet.fromJson(_json["snippet"]); | 6198 snippet = new ActivitySnippet.fromJson(_json["snippet"]); |
6199 } | 6199 } |
6200 } | 6200 } |
6201 | 6201 |
6202 core.Map toJson() { | 6202 core.Map<core.String, core.Object> toJson() { |
6203 var _json = new core.Map(); | 6203 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6204 if (contentDetails != null) { | 6204 if (contentDetails != null) { |
6205 _json["contentDetails"] = (contentDetails).toJson(); | 6205 _json["contentDetails"] = (contentDetails).toJson(); |
6206 } | 6206 } |
6207 if (etag != null) { | 6207 if (etag != null) { |
6208 _json["etag"] = etag; | 6208 _json["etag"] = etag; |
6209 } | 6209 } |
6210 if (id != null) { | 6210 if (id != null) { |
6211 _json["id"] = id; | 6211 _json["id"] = id; |
6212 } | 6212 } |
6213 if (kind != null) { | 6213 if (kind != null) { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6318 social = new ActivityContentDetailsSocial.fromJson(_json["social"]); | 6318 social = new ActivityContentDetailsSocial.fromJson(_json["social"]); |
6319 } | 6319 } |
6320 if (_json.containsKey("subscription")) { | 6320 if (_json.containsKey("subscription")) { |
6321 subscription = new ActivityContentDetailsSubscription.fromJson(_json["subs
cription"]); | 6321 subscription = new ActivityContentDetailsSubscription.fromJson(_json["subs
cription"]); |
6322 } | 6322 } |
6323 if (_json.containsKey("upload")) { | 6323 if (_json.containsKey("upload")) { |
6324 upload = new ActivityContentDetailsUpload.fromJson(_json["upload"]); | 6324 upload = new ActivityContentDetailsUpload.fromJson(_json["upload"]); |
6325 } | 6325 } |
6326 } | 6326 } |
6327 | 6327 |
6328 core.Map toJson() { | 6328 core.Map<core.String, core.Object> toJson() { |
6329 var _json = new core.Map(); | 6329 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6330 if (bulletin != null) { | 6330 if (bulletin != null) { |
6331 _json["bulletin"] = (bulletin).toJson(); | 6331 _json["bulletin"] = (bulletin).toJson(); |
6332 } | 6332 } |
6333 if (channelItem != null) { | 6333 if (channelItem != null) { |
6334 _json["channelItem"] = (channelItem).toJson(); | 6334 _json["channelItem"] = (channelItem).toJson(); |
6335 } | 6335 } |
6336 if (comment != null) { | 6336 if (comment != null) { |
6337 _json["comment"] = (comment).toJson(); | 6337 _json["comment"] = (comment).toJson(); |
6338 } | 6338 } |
6339 if (favorite != null) { | 6339 if (favorite != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6373 ResourceId resourceId; | 6373 ResourceId resourceId; |
6374 | 6374 |
6375 ActivityContentDetailsBulletin(); | 6375 ActivityContentDetailsBulletin(); |
6376 | 6376 |
6377 ActivityContentDetailsBulletin.fromJson(core.Map _json) { | 6377 ActivityContentDetailsBulletin.fromJson(core.Map _json) { |
6378 if (_json.containsKey("resourceId")) { | 6378 if (_json.containsKey("resourceId")) { |
6379 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6379 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6380 } | 6380 } |
6381 } | 6381 } |
6382 | 6382 |
6383 core.Map toJson() { | 6383 core.Map<core.String, core.Object> toJson() { |
6384 var _json = new core.Map(); | 6384 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6385 if (resourceId != null) { | 6385 if (resourceId != null) { |
6386 _json["resourceId"] = (resourceId).toJson(); | 6386 _json["resourceId"] = (resourceId).toJson(); |
6387 } | 6387 } |
6388 return _json; | 6388 return _json; |
6389 } | 6389 } |
6390 } | 6390 } |
6391 | 6391 |
6392 /** Details about a resource which was added to a channel. */ | 6392 /** Details about a resource which was added to a channel. */ |
6393 class ActivityContentDetailsChannelItem { | 6393 class ActivityContentDetailsChannelItem { |
6394 /** | 6394 /** |
6395 * The resourceId object contains information that identifies the resource | 6395 * The resourceId object contains information that identifies the resource |
6396 * that was added to the channel. | 6396 * that was added to the channel. |
6397 */ | 6397 */ |
6398 ResourceId resourceId; | 6398 ResourceId resourceId; |
6399 | 6399 |
6400 ActivityContentDetailsChannelItem(); | 6400 ActivityContentDetailsChannelItem(); |
6401 | 6401 |
6402 ActivityContentDetailsChannelItem.fromJson(core.Map _json) { | 6402 ActivityContentDetailsChannelItem.fromJson(core.Map _json) { |
6403 if (_json.containsKey("resourceId")) { | 6403 if (_json.containsKey("resourceId")) { |
6404 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6404 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6405 } | 6405 } |
6406 } | 6406 } |
6407 | 6407 |
6408 core.Map toJson() { | 6408 core.Map<core.String, core.Object> toJson() { |
6409 var _json = new core.Map(); | 6409 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6410 if (resourceId != null) { | 6410 if (resourceId != null) { |
6411 _json["resourceId"] = (resourceId).toJson(); | 6411 _json["resourceId"] = (resourceId).toJson(); |
6412 } | 6412 } |
6413 return _json; | 6413 return _json; |
6414 } | 6414 } |
6415 } | 6415 } |
6416 | 6416 |
6417 /** Information about a resource that received a comment. */ | 6417 /** Information about a resource that received a comment. */ |
6418 class ActivityContentDetailsComment { | 6418 class ActivityContentDetailsComment { |
6419 /** | 6419 /** |
6420 * The resourceId object contains information that identifies the resource | 6420 * The resourceId object contains information that identifies the resource |
6421 * associated with the comment. | 6421 * associated with the comment. |
6422 */ | 6422 */ |
6423 ResourceId resourceId; | 6423 ResourceId resourceId; |
6424 | 6424 |
6425 ActivityContentDetailsComment(); | 6425 ActivityContentDetailsComment(); |
6426 | 6426 |
6427 ActivityContentDetailsComment.fromJson(core.Map _json) { | 6427 ActivityContentDetailsComment.fromJson(core.Map _json) { |
6428 if (_json.containsKey("resourceId")) { | 6428 if (_json.containsKey("resourceId")) { |
6429 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6429 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6430 } | 6430 } |
6431 } | 6431 } |
6432 | 6432 |
6433 core.Map toJson() { | 6433 core.Map<core.String, core.Object> toJson() { |
6434 var _json = new core.Map(); | 6434 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6435 if (resourceId != null) { | 6435 if (resourceId != null) { |
6436 _json["resourceId"] = (resourceId).toJson(); | 6436 _json["resourceId"] = (resourceId).toJson(); |
6437 } | 6437 } |
6438 return _json; | 6438 return _json; |
6439 } | 6439 } |
6440 } | 6440 } |
6441 | 6441 |
6442 /** Information about a video that was marked as a favorite video. */ | 6442 /** Information about a video that was marked as a favorite video. */ |
6443 class ActivityContentDetailsFavorite { | 6443 class ActivityContentDetailsFavorite { |
6444 /** | 6444 /** |
6445 * The resourceId object contains information that identifies the resource | 6445 * The resourceId object contains information that identifies the resource |
6446 * that was marked as a favorite. | 6446 * that was marked as a favorite. |
6447 */ | 6447 */ |
6448 ResourceId resourceId; | 6448 ResourceId resourceId; |
6449 | 6449 |
6450 ActivityContentDetailsFavorite(); | 6450 ActivityContentDetailsFavorite(); |
6451 | 6451 |
6452 ActivityContentDetailsFavorite.fromJson(core.Map _json) { | 6452 ActivityContentDetailsFavorite.fromJson(core.Map _json) { |
6453 if (_json.containsKey("resourceId")) { | 6453 if (_json.containsKey("resourceId")) { |
6454 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6454 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6455 } | 6455 } |
6456 } | 6456 } |
6457 | 6457 |
6458 core.Map toJson() { | 6458 core.Map<core.String, core.Object> toJson() { |
6459 var _json = new core.Map(); | 6459 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6460 if (resourceId != null) { | 6460 if (resourceId != null) { |
6461 _json["resourceId"] = (resourceId).toJson(); | 6461 _json["resourceId"] = (resourceId).toJson(); |
6462 } | 6462 } |
6463 return _json; | 6463 return _json; |
6464 } | 6464 } |
6465 } | 6465 } |
6466 | 6466 |
6467 /** Information about a resource that received a positive (like) rating. */ | 6467 /** Information about a resource that received a positive (like) rating. */ |
6468 class ActivityContentDetailsLike { | 6468 class ActivityContentDetailsLike { |
6469 /** | 6469 /** |
6470 * The resourceId object contains information that identifies the rated | 6470 * The resourceId object contains information that identifies the rated |
6471 * resource. | 6471 * resource. |
6472 */ | 6472 */ |
6473 ResourceId resourceId; | 6473 ResourceId resourceId; |
6474 | 6474 |
6475 ActivityContentDetailsLike(); | 6475 ActivityContentDetailsLike(); |
6476 | 6476 |
6477 ActivityContentDetailsLike.fromJson(core.Map _json) { | 6477 ActivityContentDetailsLike.fromJson(core.Map _json) { |
6478 if (_json.containsKey("resourceId")) { | 6478 if (_json.containsKey("resourceId")) { |
6479 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6479 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6480 } | 6480 } |
6481 } | 6481 } |
6482 | 6482 |
6483 core.Map toJson() { | 6483 core.Map<core.String, core.Object> toJson() { |
6484 var _json = new core.Map(); | 6484 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6485 if (resourceId != null) { | 6485 if (resourceId != null) { |
6486 _json["resourceId"] = (resourceId).toJson(); | 6486 _json["resourceId"] = (resourceId).toJson(); |
6487 } | 6487 } |
6488 return _json; | 6488 return _json; |
6489 } | 6489 } |
6490 } | 6490 } |
6491 | 6491 |
6492 /** Information about a new playlist item. */ | 6492 /** Information about a new playlist item. */ |
6493 class ActivityContentDetailsPlaylistItem { | 6493 class ActivityContentDetailsPlaylistItem { |
6494 /** The value that YouTube uses to uniquely identify the playlist. */ | 6494 /** The value that YouTube uses to uniquely identify the playlist. */ |
(...skipping 13 matching lines...) Expand all Loading... |
6508 playlistId = _json["playlistId"]; | 6508 playlistId = _json["playlistId"]; |
6509 } | 6509 } |
6510 if (_json.containsKey("playlistItemId")) { | 6510 if (_json.containsKey("playlistItemId")) { |
6511 playlistItemId = _json["playlistItemId"]; | 6511 playlistItemId = _json["playlistItemId"]; |
6512 } | 6512 } |
6513 if (_json.containsKey("resourceId")) { | 6513 if (_json.containsKey("resourceId")) { |
6514 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6514 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6515 } | 6515 } |
6516 } | 6516 } |
6517 | 6517 |
6518 core.Map toJson() { | 6518 core.Map<core.String, core.Object> toJson() { |
6519 var _json = new core.Map(); | 6519 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6520 if (playlistId != null) { | 6520 if (playlistId != null) { |
6521 _json["playlistId"] = playlistId; | 6521 _json["playlistId"] = playlistId; |
6522 } | 6522 } |
6523 if (playlistItemId != null) { | 6523 if (playlistItemId != null) { |
6524 _json["playlistItemId"] = playlistItemId; | 6524 _json["playlistItemId"] = playlistItemId; |
6525 } | 6525 } |
6526 if (resourceId != null) { | 6526 if (resourceId != null) { |
6527 _json["resourceId"] = (resourceId).toJson(); | 6527 _json["resourceId"] = (resourceId).toJson(); |
6528 } | 6528 } |
6529 return _json; | 6529 return _json; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6606 forecastingUrl = _json["forecastingUrl"]; | 6606 forecastingUrl = _json["forecastingUrl"]; |
6607 } | 6607 } |
6608 if (_json.containsKey("impressionUrl")) { | 6608 if (_json.containsKey("impressionUrl")) { |
6609 impressionUrl = _json["impressionUrl"]; | 6609 impressionUrl = _json["impressionUrl"]; |
6610 } | 6610 } |
6611 if (_json.containsKey("videoId")) { | 6611 if (_json.containsKey("videoId")) { |
6612 videoId = _json["videoId"]; | 6612 videoId = _json["videoId"]; |
6613 } | 6613 } |
6614 } | 6614 } |
6615 | 6615 |
6616 core.Map toJson() { | 6616 core.Map<core.String, core.Object> toJson() { |
6617 var _json = new core.Map(); | 6617 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6618 if (adTag != null) { | 6618 if (adTag != null) { |
6619 _json["adTag"] = adTag; | 6619 _json["adTag"] = adTag; |
6620 } | 6620 } |
6621 if (clickTrackingUrl != null) { | 6621 if (clickTrackingUrl != null) { |
6622 _json["clickTrackingUrl"] = clickTrackingUrl; | 6622 _json["clickTrackingUrl"] = clickTrackingUrl; |
6623 } | 6623 } |
6624 if (creativeViewUrl != null) { | 6624 if (creativeViewUrl != null) { |
6625 _json["creativeViewUrl"] = creativeViewUrl; | 6625 _json["creativeViewUrl"] = creativeViewUrl; |
6626 } | 6626 } |
6627 if (ctaType != null) { | 6627 if (ctaType != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6678 reason = _json["reason"]; | 6678 reason = _json["reason"]; |
6679 } | 6679 } |
6680 if (_json.containsKey("resourceId")) { | 6680 if (_json.containsKey("resourceId")) { |
6681 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6681 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6682 } | 6682 } |
6683 if (_json.containsKey("seedResourceId")) { | 6683 if (_json.containsKey("seedResourceId")) { |
6684 seedResourceId = new ResourceId.fromJson(_json["seedResourceId"]); | 6684 seedResourceId = new ResourceId.fromJson(_json["seedResourceId"]); |
6685 } | 6685 } |
6686 } | 6686 } |
6687 | 6687 |
6688 core.Map toJson() { | 6688 core.Map<core.String, core.Object> toJson() { |
6689 var _json = new core.Map(); | 6689 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6690 if (reason != null) { | 6690 if (reason != null) { |
6691 _json["reason"] = reason; | 6691 _json["reason"] = reason; |
6692 } | 6692 } |
6693 if (resourceId != null) { | 6693 if (resourceId != null) { |
6694 _json["resourceId"] = (resourceId).toJson(); | 6694 _json["resourceId"] = (resourceId).toJson(); |
6695 } | 6695 } |
6696 if (seedResourceId != null) { | 6696 if (seedResourceId != null) { |
6697 _json["seedResourceId"] = (seedResourceId).toJson(); | 6697 _json["seedResourceId"] = (seedResourceId).toJson(); |
6698 } | 6698 } |
6699 return _json; | 6699 return _json; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6736 referenceUrl = _json["referenceUrl"]; | 6736 referenceUrl = _json["referenceUrl"]; |
6737 } | 6737 } |
6738 if (_json.containsKey("resourceId")) { | 6738 if (_json.containsKey("resourceId")) { |
6739 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6739 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6740 } | 6740 } |
6741 if (_json.containsKey("type")) { | 6741 if (_json.containsKey("type")) { |
6742 type = _json["type"]; | 6742 type = _json["type"]; |
6743 } | 6743 } |
6744 } | 6744 } |
6745 | 6745 |
6746 core.Map toJson() { | 6746 core.Map<core.String, core.Object> toJson() { |
6747 var _json = new core.Map(); | 6747 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6748 if (author != null) { | 6748 if (author != null) { |
6749 _json["author"] = author; | 6749 _json["author"] = author; |
6750 } | 6750 } |
6751 if (imageUrl != null) { | 6751 if (imageUrl != null) { |
6752 _json["imageUrl"] = imageUrl; | 6752 _json["imageUrl"] = imageUrl; |
6753 } | 6753 } |
6754 if (referenceUrl != null) { | 6754 if (referenceUrl != null) { |
6755 _json["referenceUrl"] = referenceUrl; | 6755 _json["referenceUrl"] = referenceUrl; |
6756 } | 6756 } |
6757 if (resourceId != null) { | 6757 if (resourceId != null) { |
(...skipping 15 matching lines...) Expand all Loading... |
6773 ResourceId resourceId; | 6773 ResourceId resourceId; |
6774 | 6774 |
6775 ActivityContentDetailsSubscription(); | 6775 ActivityContentDetailsSubscription(); |
6776 | 6776 |
6777 ActivityContentDetailsSubscription.fromJson(core.Map _json) { | 6777 ActivityContentDetailsSubscription.fromJson(core.Map _json) { |
6778 if (_json.containsKey("resourceId")) { | 6778 if (_json.containsKey("resourceId")) { |
6779 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6779 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
6780 } | 6780 } |
6781 } | 6781 } |
6782 | 6782 |
6783 core.Map toJson() { | 6783 core.Map<core.String, core.Object> toJson() { |
6784 var _json = new core.Map(); | 6784 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6785 if (resourceId != null) { | 6785 if (resourceId != null) { |
6786 _json["resourceId"] = (resourceId).toJson(); | 6786 _json["resourceId"] = (resourceId).toJson(); |
6787 } | 6787 } |
6788 return _json; | 6788 return _json; |
6789 } | 6789 } |
6790 } | 6790 } |
6791 | 6791 |
6792 /** Information about the uploaded video. */ | 6792 /** Information about the uploaded video. */ |
6793 class ActivityContentDetailsUpload { | 6793 class ActivityContentDetailsUpload { |
6794 /** The ID that YouTube uses to uniquely identify the uploaded video. */ | 6794 /** The ID that YouTube uses to uniquely identify the uploaded video. */ |
6795 core.String videoId; | 6795 core.String videoId; |
6796 | 6796 |
6797 ActivityContentDetailsUpload(); | 6797 ActivityContentDetailsUpload(); |
6798 | 6798 |
6799 ActivityContentDetailsUpload.fromJson(core.Map _json) { | 6799 ActivityContentDetailsUpload.fromJson(core.Map _json) { |
6800 if (_json.containsKey("videoId")) { | 6800 if (_json.containsKey("videoId")) { |
6801 videoId = _json["videoId"]; | 6801 videoId = _json["videoId"]; |
6802 } | 6802 } |
6803 } | 6803 } |
6804 | 6804 |
6805 core.Map toJson() { | 6805 core.Map<core.String, core.Object> toJson() { |
6806 var _json = new core.Map(); | 6806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6807 if (videoId != null) { | 6807 if (videoId != null) { |
6808 _json["videoId"] = videoId; | 6808 _json["videoId"] = videoId; |
6809 } | 6809 } |
6810 return _json; | 6810 return _json; |
6811 } | 6811 } |
6812 } | 6812 } |
6813 | 6813 |
6814 class ActivityListResponse { | 6814 class ActivityListResponse { |
6815 /** Etag of this resource. */ | 6815 /** Etag of this resource. */ |
6816 core.String etag; | 6816 core.String etag; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6863 prevPageToken = _json["prevPageToken"]; | 6863 prevPageToken = _json["prevPageToken"]; |
6864 } | 6864 } |
6865 if (_json.containsKey("tokenPagination")) { | 6865 if (_json.containsKey("tokenPagination")) { |
6866 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 6866 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
6867 } | 6867 } |
6868 if (_json.containsKey("visitorId")) { | 6868 if (_json.containsKey("visitorId")) { |
6869 visitorId = _json["visitorId"]; | 6869 visitorId = _json["visitorId"]; |
6870 } | 6870 } |
6871 } | 6871 } |
6872 | 6872 |
6873 core.Map toJson() { | 6873 core.Map<core.String, core.Object> toJson() { |
6874 var _json = new core.Map(); | 6874 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6875 if (etag != null) { | 6875 if (etag != null) { |
6876 _json["etag"] = etag; | 6876 _json["etag"] = etag; |
6877 } | 6877 } |
6878 if (eventId != null) { | 6878 if (eventId != null) { |
6879 _json["eventId"] = eventId; | 6879 _json["eventId"] = eventId; |
6880 } | 6880 } |
6881 if (items != null) { | 6881 if (items != null) { |
6882 _json["items"] = items.map((value) => (value).toJson()).toList(); | 6882 _json["items"] = items.map((value) => (value).toJson()).toList(); |
6883 } | 6883 } |
6884 if (kind != null) { | 6884 if (kind != null) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6981 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 6981 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
6982 } | 6982 } |
6983 if (_json.containsKey("title")) { | 6983 if (_json.containsKey("title")) { |
6984 title = _json["title"]; | 6984 title = _json["title"]; |
6985 } | 6985 } |
6986 if (_json.containsKey("type")) { | 6986 if (_json.containsKey("type")) { |
6987 type = _json["type"]; | 6987 type = _json["type"]; |
6988 } | 6988 } |
6989 } | 6989 } |
6990 | 6990 |
6991 core.Map toJson() { | 6991 core.Map<core.String, core.Object> toJson() { |
6992 var _json = new core.Map(); | 6992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6993 if (channelId != null) { | 6993 if (channelId != null) { |
6994 _json["channelId"] = channelId; | 6994 _json["channelId"] = channelId; |
6995 } | 6995 } |
6996 if (channelTitle != null) { | 6996 if (channelTitle != null) { |
6997 _json["channelTitle"] = channelTitle; | 6997 _json["channelTitle"] = channelTitle; |
6998 } | 6998 } |
6999 if (description != null) { | 6999 if (description != null) { |
7000 _json["description"] = description; | 7000 _json["description"] = description; |
7001 } | 7001 } |
7002 if (groupId != null) { | 7002 if (groupId != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7045 id = _json["id"]; | 7045 id = _json["id"]; |
7046 } | 7046 } |
7047 if (_json.containsKey("kind")) { | 7047 if (_json.containsKey("kind")) { |
7048 kind = _json["kind"]; | 7048 kind = _json["kind"]; |
7049 } | 7049 } |
7050 if (_json.containsKey("snippet")) { | 7050 if (_json.containsKey("snippet")) { |
7051 snippet = new CaptionSnippet.fromJson(_json["snippet"]); | 7051 snippet = new CaptionSnippet.fromJson(_json["snippet"]); |
7052 } | 7052 } |
7053 } | 7053 } |
7054 | 7054 |
7055 core.Map toJson() { | 7055 core.Map<core.String, core.Object> toJson() { |
7056 var _json = new core.Map(); | 7056 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7057 if (etag != null) { | 7057 if (etag != null) { |
7058 _json["etag"] = etag; | 7058 _json["etag"] = etag; |
7059 } | 7059 } |
7060 if (id != null) { | 7060 if (id != null) { |
7061 _json["id"] = id; | 7061 _json["id"] = id; |
7062 } | 7062 } |
7063 if (kind != null) { | 7063 if (kind != null) { |
7064 _json["kind"] = kind; | 7064 _json["kind"] = kind; |
7065 } | 7065 } |
7066 if (snippet != null) { | 7066 if (snippet != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7098 items = _json["items"].map((value) => new Caption.fromJson(value)).toList(
); | 7098 items = _json["items"].map((value) => new Caption.fromJson(value)).toList(
); |
7099 } | 7099 } |
7100 if (_json.containsKey("kind")) { | 7100 if (_json.containsKey("kind")) { |
7101 kind = _json["kind"]; | 7101 kind = _json["kind"]; |
7102 } | 7102 } |
7103 if (_json.containsKey("visitorId")) { | 7103 if (_json.containsKey("visitorId")) { |
7104 visitorId = _json["visitorId"]; | 7104 visitorId = _json["visitorId"]; |
7105 } | 7105 } |
7106 } | 7106 } |
7107 | 7107 |
7108 core.Map toJson() { | 7108 core.Map<core.String, core.Object> toJson() { |
7109 var _json = new core.Map(); | 7109 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7110 if (etag != null) { | 7110 if (etag != null) { |
7111 _json["etag"] = etag; | 7111 _json["etag"] = etag; |
7112 } | 7112 } |
7113 if (eventId != null) { | 7113 if (eventId != null) { |
7114 _json["eventId"] = eventId; | 7114 _json["eventId"] = eventId; |
7115 } | 7115 } |
7116 if (items != null) { | 7116 if (items != null) { |
7117 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7117 _json["items"] = items.map((value) => (value).toJson()).toList(); |
7118 } | 7118 } |
7119 if (kind != null) { | 7119 if (kind != null) { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7251 status = _json["status"]; | 7251 status = _json["status"]; |
7252 } | 7252 } |
7253 if (_json.containsKey("trackKind")) { | 7253 if (_json.containsKey("trackKind")) { |
7254 trackKind = _json["trackKind"]; | 7254 trackKind = _json["trackKind"]; |
7255 } | 7255 } |
7256 if (_json.containsKey("videoId")) { | 7256 if (_json.containsKey("videoId")) { |
7257 videoId = _json["videoId"]; | 7257 videoId = _json["videoId"]; |
7258 } | 7258 } |
7259 } | 7259 } |
7260 | 7260 |
7261 core.Map toJson() { | 7261 core.Map<core.String, core.Object> toJson() { |
7262 var _json = new core.Map(); | 7262 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7263 if (audioTrackType != null) { | 7263 if (audioTrackType != null) { |
7264 _json["audioTrackType"] = audioTrackType; | 7264 _json["audioTrackType"] = audioTrackType; |
7265 } | 7265 } |
7266 if (failureReason != null) { | 7266 if (failureReason != null) { |
7267 _json["failureReason"] = failureReason; | 7267 _json["failureReason"] = failureReason; |
7268 } | 7268 } |
7269 if (isAutoSynced != null) { | 7269 if (isAutoSynced != null) { |
7270 _json["isAutoSynced"] = isAutoSynced; | 7270 _json["isAutoSynced"] = isAutoSynced; |
7271 } | 7271 } |
7272 if (isCC != null) { | 7272 if (isCC != null) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7352 ingestionInfo = new IngestionInfo.fromJson(_json["ingestionInfo"]); | 7352 ingestionInfo = new IngestionInfo.fromJson(_json["ingestionInfo"]); |
7353 } | 7353 } |
7354 if (_json.containsKey("ingestionType")) { | 7354 if (_json.containsKey("ingestionType")) { |
7355 ingestionType = _json["ingestionType"]; | 7355 ingestionType = _json["ingestionType"]; |
7356 } | 7356 } |
7357 if (_json.containsKey("resolution")) { | 7357 if (_json.containsKey("resolution")) { |
7358 resolution = _json["resolution"]; | 7358 resolution = _json["resolution"]; |
7359 } | 7359 } |
7360 } | 7360 } |
7361 | 7361 |
7362 core.Map toJson() { | 7362 core.Map<core.String, core.Object> toJson() { |
7363 var _json = new core.Map(); | 7363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7364 if (format != null) { | 7364 if (format != null) { |
7365 _json["format"] = format; | 7365 _json["format"] = format; |
7366 } | 7366 } |
7367 if (frameRate != null) { | 7367 if (frameRate != null) { |
7368 _json["frameRate"] = frameRate; | 7368 _json["frameRate"] = frameRate; |
7369 } | 7369 } |
7370 if (ingestionInfo != null) { | 7370 if (ingestionInfo != null) { |
7371 _json["ingestionInfo"] = (ingestionInfo).toJson(); | 7371 _json["ingestionInfo"] = (ingestionInfo).toJson(); |
7372 } | 7372 } |
7373 if (ingestionType != null) { | 7373 if (ingestionType != null) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7465 if (_json.containsKey("id")) { | 7465 if (_json.containsKey("id")) { |
7466 id = _json["id"]; | 7466 id = _json["id"]; |
7467 } | 7467 } |
7468 if (_json.containsKey("invideoPromotion")) { | 7468 if (_json.containsKey("invideoPromotion")) { |
7469 invideoPromotion = new InvideoPromotion.fromJson(_json["invideoPromotion"]
); | 7469 invideoPromotion = new InvideoPromotion.fromJson(_json["invideoPromotion"]
); |
7470 } | 7470 } |
7471 if (_json.containsKey("kind")) { | 7471 if (_json.containsKey("kind")) { |
7472 kind = _json["kind"]; | 7472 kind = _json["kind"]; |
7473 } | 7473 } |
7474 if (_json.containsKey("localizations")) { | 7474 if (_json.containsKey("localizations")) { |
7475 localizations = commons.mapMap(_json["localizations"], (item) => new Chann
elLocalization.fromJson(item)); | 7475 localizations = commons.mapMap<core.Map<core.String, core.Object>, Channel
Localization>(_json["localizations"], (core.Map<core.String, core.Object> item)
=> new ChannelLocalization.fromJson(item)); |
7476 } | 7476 } |
7477 if (_json.containsKey("snippet")) { | 7477 if (_json.containsKey("snippet")) { |
7478 snippet = new ChannelSnippet.fromJson(_json["snippet"]); | 7478 snippet = new ChannelSnippet.fromJson(_json["snippet"]); |
7479 } | 7479 } |
7480 if (_json.containsKey("statistics")) { | 7480 if (_json.containsKey("statistics")) { |
7481 statistics = new ChannelStatistics.fromJson(_json["statistics"]); | 7481 statistics = new ChannelStatistics.fromJson(_json["statistics"]); |
7482 } | 7482 } |
7483 if (_json.containsKey("status")) { | 7483 if (_json.containsKey("status")) { |
7484 status = new ChannelStatus.fromJson(_json["status"]); | 7484 status = new ChannelStatus.fromJson(_json["status"]); |
7485 } | 7485 } |
7486 if (_json.containsKey("topicDetails")) { | 7486 if (_json.containsKey("topicDetails")) { |
7487 topicDetails = new ChannelTopicDetails.fromJson(_json["topicDetails"]); | 7487 topicDetails = new ChannelTopicDetails.fromJson(_json["topicDetails"]); |
7488 } | 7488 } |
7489 } | 7489 } |
7490 | 7490 |
7491 core.Map toJson() { | 7491 core.Map<core.String, core.Object> toJson() { |
7492 var _json = new core.Map(); | 7492 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7493 if (auditDetails != null) { | 7493 if (auditDetails != null) { |
7494 _json["auditDetails"] = (auditDetails).toJson(); | 7494 _json["auditDetails"] = (auditDetails).toJson(); |
7495 } | 7495 } |
7496 if (brandingSettings != null) { | 7496 if (brandingSettings != null) { |
7497 _json["brandingSettings"] = (brandingSettings).toJson(); | 7497 _json["brandingSettings"] = (brandingSettings).toJson(); |
7498 } | 7498 } |
7499 if (contentDetails != null) { | 7499 if (contentDetails != null) { |
7500 _json["contentDetails"] = (contentDetails).toJson(); | 7500 _json["contentDetails"] = (contentDetails).toJson(); |
7501 } | 7501 } |
7502 if (contentOwnerDetails != null) { | 7502 if (contentOwnerDetails != null) { |
7503 _json["contentOwnerDetails"] = (contentOwnerDetails).toJson(); | 7503 _json["contentOwnerDetails"] = (contentOwnerDetails).toJson(); |
7504 } | 7504 } |
7505 if (conversionPings != null) { | 7505 if (conversionPings != null) { |
7506 _json["conversionPings"] = (conversionPings).toJson(); | 7506 _json["conversionPings"] = (conversionPings).toJson(); |
7507 } | 7507 } |
7508 if (etag != null) { | 7508 if (etag != null) { |
7509 _json["etag"] = etag; | 7509 _json["etag"] = etag; |
7510 } | 7510 } |
7511 if (id != null) { | 7511 if (id != null) { |
7512 _json["id"] = id; | 7512 _json["id"] = id; |
7513 } | 7513 } |
7514 if (invideoPromotion != null) { | 7514 if (invideoPromotion != null) { |
7515 _json["invideoPromotion"] = (invideoPromotion).toJson(); | 7515 _json["invideoPromotion"] = (invideoPromotion).toJson(); |
7516 } | 7516 } |
7517 if (kind != null) { | 7517 if (kind != null) { |
7518 _json["kind"] = kind; | 7518 _json["kind"] = kind; |
7519 } | 7519 } |
7520 if (localizations != null) { | 7520 if (localizations != null) { |
7521 _json["localizations"] = commons.mapMap(localizations, (item) => (item).to
Json()); | 7521 _json["localizations"] = commons.mapMap<ChannelLocalization, core.Map<core
.String, core.Object>>(localizations, (ChannelLocalization item) => (item).toJso
n()); |
7522 } | 7522 } |
7523 if (snippet != null) { | 7523 if (snippet != null) { |
7524 _json["snippet"] = (snippet).toJson(); | 7524 _json["snippet"] = (snippet).toJson(); |
7525 } | 7525 } |
7526 if (statistics != null) { | 7526 if (statistics != null) { |
7527 _json["statistics"] = (statistics).toJson(); | 7527 _json["statistics"] = (statistics).toJson(); |
7528 } | 7528 } |
7529 if (status != null) { | 7529 if (status != null) { |
7530 _json["status"] = (status).toJson(); | 7530 _json["status"] = (status).toJson(); |
7531 } | 7531 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7566 contentIdClaimsGoodStanding = _json["contentIdClaimsGoodStanding"]; | 7566 contentIdClaimsGoodStanding = _json["contentIdClaimsGoodStanding"]; |
7567 } | 7567 } |
7568 if (_json.containsKey("copyrightStrikesGoodStanding")) { | 7568 if (_json.containsKey("copyrightStrikesGoodStanding")) { |
7569 copyrightStrikesGoodStanding = _json["copyrightStrikesGoodStanding"]; | 7569 copyrightStrikesGoodStanding = _json["copyrightStrikesGoodStanding"]; |
7570 } | 7570 } |
7571 if (_json.containsKey("overallGoodStanding")) { | 7571 if (_json.containsKey("overallGoodStanding")) { |
7572 overallGoodStanding = _json["overallGoodStanding"]; | 7572 overallGoodStanding = _json["overallGoodStanding"]; |
7573 } | 7573 } |
7574 } | 7574 } |
7575 | 7575 |
7576 core.Map toJson() { | 7576 core.Map<core.String, core.Object> toJson() { |
7577 var _json = new core.Map(); | 7577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7578 if (communityGuidelinesGoodStanding != null) { | 7578 if (communityGuidelinesGoodStanding != null) { |
7579 _json["communityGuidelinesGoodStanding"] = communityGuidelinesGoodStanding
; | 7579 _json["communityGuidelinesGoodStanding"] = communityGuidelinesGoodStanding
; |
7580 } | 7580 } |
7581 if (contentIdClaimsGoodStanding != null) { | 7581 if (contentIdClaimsGoodStanding != null) { |
7582 _json["contentIdClaimsGoodStanding"] = contentIdClaimsGoodStanding; | 7582 _json["contentIdClaimsGoodStanding"] = contentIdClaimsGoodStanding; |
7583 } | 7583 } |
7584 if (copyrightStrikesGoodStanding != null) { | 7584 if (copyrightStrikesGoodStanding != null) { |
7585 _json["copyrightStrikesGoodStanding"] = copyrightStrikesGoodStanding; | 7585 _json["copyrightStrikesGoodStanding"] = copyrightStrikesGoodStanding; |
7586 } | 7586 } |
7587 if (overallGoodStanding != null) { | 7587 if (overallGoodStanding != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
7612 etag = _json["etag"]; | 7612 etag = _json["etag"]; |
7613 } | 7613 } |
7614 if (_json.containsKey("kind")) { | 7614 if (_json.containsKey("kind")) { |
7615 kind = _json["kind"]; | 7615 kind = _json["kind"]; |
7616 } | 7616 } |
7617 if (_json.containsKey("url")) { | 7617 if (_json.containsKey("url")) { |
7618 url = _json["url"]; | 7618 url = _json["url"]; |
7619 } | 7619 } |
7620 } | 7620 } |
7621 | 7621 |
7622 core.Map toJson() { | 7622 core.Map<core.String, core.Object> toJson() { |
7623 var _json = new core.Map(); | 7623 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7624 if (etag != null) { | 7624 if (etag != null) { |
7625 _json["etag"] = etag; | 7625 _json["etag"] = etag; |
7626 } | 7626 } |
7627 if (kind != null) { | 7627 if (kind != null) { |
7628 _json["kind"] = kind; | 7628 _json["kind"] = kind; |
7629 } | 7629 } |
7630 if (url != null) { | 7630 if (url != null) { |
7631 _json["url"] = url; | 7631 _json["url"] = url; |
7632 } | 7632 } |
7633 return _json; | 7633 return _json; |
(...skipping 21 matching lines...) Expand all Loading... |
7655 hints = _json["hints"].map((value) => new PropertyValue.fromJson(value)).t
oList(); | 7655 hints = _json["hints"].map((value) => new PropertyValue.fromJson(value)).t
oList(); |
7656 } | 7656 } |
7657 if (_json.containsKey("image")) { | 7657 if (_json.containsKey("image")) { |
7658 image = new ImageSettings.fromJson(_json["image"]); | 7658 image = new ImageSettings.fromJson(_json["image"]); |
7659 } | 7659 } |
7660 if (_json.containsKey("watch")) { | 7660 if (_json.containsKey("watch")) { |
7661 watch = new WatchSettings.fromJson(_json["watch"]); | 7661 watch = new WatchSettings.fromJson(_json["watch"]); |
7662 } | 7662 } |
7663 } | 7663 } |
7664 | 7664 |
7665 core.Map toJson() { | 7665 core.Map<core.String, core.Object> toJson() { |
7666 var _json = new core.Map(); | 7666 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7667 if (channel != null) { | 7667 if (channel != null) { |
7668 _json["channel"] = (channel).toJson(); | 7668 _json["channel"] = (channel).toJson(); |
7669 } | 7669 } |
7670 if (hints != null) { | 7670 if (hints != null) { |
7671 _json["hints"] = hints.map((value) => (value).toJson()).toList(); | 7671 _json["hints"] = hints.map((value) => (value).toJson()).toList(); |
7672 } | 7672 } |
7673 if (image != null) { | 7673 if (image != null) { |
7674 _json["image"] = (image).toJson(); | 7674 _json["image"] = (image).toJson(); |
7675 } | 7675 } |
7676 if (watch != null) { | 7676 if (watch != null) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7725 uploads = _json["uploads"]; | 7725 uploads = _json["uploads"]; |
7726 } | 7726 } |
7727 if (_json.containsKey("watchHistory")) { | 7727 if (_json.containsKey("watchHistory")) { |
7728 watchHistory = _json["watchHistory"]; | 7728 watchHistory = _json["watchHistory"]; |
7729 } | 7729 } |
7730 if (_json.containsKey("watchLater")) { | 7730 if (_json.containsKey("watchLater")) { |
7731 watchLater = _json["watchLater"]; | 7731 watchLater = _json["watchLater"]; |
7732 } | 7732 } |
7733 } | 7733 } |
7734 | 7734 |
7735 core.Map toJson() { | 7735 core.Map<core.String, core.Object> toJson() { |
7736 var _json = new core.Map(); | 7736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7737 if (favorites != null) { | 7737 if (favorites != null) { |
7738 _json["favorites"] = favorites; | 7738 _json["favorites"] = favorites; |
7739 } | 7739 } |
7740 if (likes != null) { | 7740 if (likes != null) { |
7741 _json["likes"] = likes; | 7741 _json["likes"] = likes; |
7742 } | 7742 } |
7743 if (uploads != null) { | 7743 if (uploads != null) { |
7744 _json["uploads"] = uploads; | 7744 _json["uploads"] = uploads; |
7745 } | 7745 } |
7746 if (watchHistory != null) { | 7746 if (watchHistory != null) { |
(...skipping 11 matching lines...) Expand all Loading... |
7758 ChannelContentDetailsRelatedPlaylists relatedPlaylists; | 7758 ChannelContentDetailsRelatedPlaylists relatedPlaylists; |
7759 | 7759 |
7760 ChannelContentDetails(); | 7760 ChannelContentDetails(); |
7761 | 7761 |
7762 ChannelContentDetails.fromJson(core.Map _json) { | 7762 ChannelContentDetails.fromJson(core.Map _json) { |
7763 if (_json.containsKey("relatedPlaylists")) { | 7763 if (_json.containsKey("relatedPlaylists")) { |
7764 relatedPlaylists = new ChannelContentDetailsRelatedPlaylists.fromJson(_jso
n["relatedPlaylists"]); | 7764 relatedPlaylists = new ChannelContentDetailsRelatedPlaylists.fromJson(_jso
n["relatedPlaylists"]); |
7765 } | 7765 } |
7766 } | 7766 } |
7767 | 7767 |
7768 core.Map toJson() { | 7768 core.Map<core.String, core.Object> toJson() { |
7769 var _json = new core.Map(); | 7769 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7770 if (relatedPlaylists != null) { | 7770 if (relatedPlaylists != null) { |
7771 _json["relatedPlaylists"] = (relatedPlaylists).toJson(); | 7771 _json["relatedPlaylists"] = (relatedPlaylists).toJson(); |
7772 } | 7772 } |
7773 return _json; | 7773 return _json; |
7774 } | 7774 } |
7775 } | 7775 } |
7776 | 7776 |
7777 /** | 7777 /** |
7778 * The contentOwnerDetails object encapsulates channel data that is relevant for | 7778 * The contentOwnerDetails object encapsulates channel data that is relevant for |
7779 * YouTube Partners linked with the channel. | 7779 * YouTube Partners linked with the channel. |
(...skipping 11 matching lines...) Expand all Loading... |
7791 | 7791 |
7792 ChannelContentOwnerDetails.fromJson(core.Map _json) { | 7792 ChannelContentOwnerDetails.fromJson(core.Map _json) { |
7793 if (_json.containsKey("contentOwner")) { | 7793 if (_json.containsKey("contentOwner")) { |
7794 contentOwner = _json["contentOwner"]; | 7794 contentOwner = _json["contentOwner"]; |
7795 } | 7795 } |
7796 if (_json.containsKey("timeLinked")) { | 7796 if (_json.containsKey("timeLinked")) { |
7797 timeLinked = core.DateTime.parse(_json["timeLinked"]); | 7797 timeLinked = core.DateTime.parse(_json["timeLinked"]); |
7798 } | 7798 } |
7799 } | 7799 } |
7800 | 7800 |
7801 core.Map toJson() { | 7801 core.Map<core.String, core.Object> toJson() { |
7802 var _json = new core.Map(); | 7802 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7803 if (contentOwner != null) { | 7803 if (contentOwner != null) { |
7804 _json["contentOwner"] = contentOwner; | 7804 _json["contentOwner"] = contentOwner; |
7805 } | 7805 } |
7806 if (timeLinked != null) { | 7806 if (timeLinked != null) { |
7807 _json["timeLinked"] = (timeLinked).toIso8601String(); | 7807 _json["timeLinked"] = (timeLinked).toIso8601String(); |
7808 } | 7808 } |
7809 return _json; | 7809 return _json; |
7810 } | 7810 } |
7811 } | 7811 } |
7812 | 7812 |
(...skipping 26 matching lines...) Expand all Loading... |
7839 | 7839 |
7840 ChannelConversionPing.fromJson(core.Map _json) { | 7840 ChannelConversionPing.fromJson(core.Map _json) { |
7841 if (_json.containsKey("context")) { | 7841 if (_json.containsKey("context")) { |
7842 context = _json["context"]; | 7842 context = _json["context"]; |
7843 } | 7843 } |
7844 if (_json.containsKey("conversionUrl")) { | 7844 if (_json.containsKey("conversionUrl")) { |
7845 conversionUrl = _json["conversionUrl"]; | 7845 conversionUrl = _json["conversionUrl"]; |
7846 } | 7846 } |
7847 } | 7847 } |
7848 | 7848 |
7849 core.Map toJson() { | 7849 core.Map<core.String, core.Object> toJson() { |
7850 var _json = new core.Map(); | 7850 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7851 if (context != null) { | 7851 if (context != null) { |
7852 _json["context"] = context; | 7852 _json["context"] = context; |
7853 } | 7853 } |
7854 if (conversionUrl != null) { | 7854 if (conversionUrl != null) { |
7855 _json["conversionUrl"] = conversionUrl; | 7855 _json["conversionUrl"] = conversionUrl; |
7856 } | 7856 } |
7857 return _json; | 7857 return _json; |
7858 } | 7858 } |
7859 } | 7859 } |
7860 | 7860 |
(...skipping 10 matching lines...) Expand all Loading... |
7871 core.List<ChannelConversionPing> pings; | 7871 core.List<ChannelConversionPing> pings; |
7872 | 7872 |
7873 ChannelConversionPings(); | 7873 ChannelConversionPings(); |
7874 | 7874 |
7875 ChannelConversionPings.fromJson(core.Map _json) { | 7875 ChannelConversionPings.fromJson(core.Map _json) { |
7876 if (_json.containsKey("pings")) { | 7876 if (_json.containsKey("pings")) { |
7877 pings = _json["pings"].map((value) => new ChannelConversionPing.fromJson(v
alue)).toList(); | 7877 pings = _json["pings"].map((value) => new ChannelConversionPing.fromJson(v
alue)).toList(); |
7878 } | 7878 } |
7879 } | 7879 } |
7880 | 7880 |
7881 core.Map toJson() { | 7881 core.Map<core.String, core.Object> toJson() { |
7882 var _json = new core.Map(); | 7882 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7883 if (pings != null) { | 7883 if (pings != null) { |
7884 _json["pings"] = pings.map((value) => (value).toJson()).toList(); | 7884 _json["pings"] = pings.map((value) => (value).toJson()).toList(); |
7885 } | 7885 } |
7886 return _json; | 7886 return _json; |
7887 } | 7887 } |
7888 } | 7888 } |
7889 | 7889 |
7890 class ChannelListResponse { | 7890 class ChannelListResponse { |
7891 /** Etag of this resource. */ | 7891 /** Etag of this resource. */ |
7892 core.String etag; | 7892 core.String etag; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7939 prevPageToken = _json["prevPageToken"]; | 7939 prevPageToken = _json["prevPageToken"]; |
7940 } | 7940 } |
7941 if (_json.containsKey("tokenPagination")) { | 7941 if (_json.containsKey("tokenPagination")) { |
7942 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 7942 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
7943 } | 7943 } |
7944 if (_json.containsKey("visitorId")) { | 7944 if (_json.containsKey("visitorId")) { |
7945 visitorId = _json["visitorId"]; | 7945 visitorId = _json["visitorId"]; |
7946 } | 7946 } |
7947 } | 7947 } |
7948 | 7948 |
7949 core.Map toJson() { | 7949 core.Map<core.String, core.Object> toJson() { |
7950 var _json = new core.Map(); | 7950 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7951 if (etag != null) { | 7951 if (etag != null) { |
7952 _json["etag"] = etag; | 7952 _json["etag"] = etag; |
7953 } | 7953 } |
7954 if (eventId != null) { | 7954 if (eventId != null) { |
7955 _json["eventId"] = eventId; | 7955 _json["eventId"] = eventId; |
7956 } | 7956 } |
7957 if (items != null) { | 7957 if (items != null) { |
7958 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7958 _json["items"] = items.map((value) => (value).toJson()).toList(); |
7959 } | 7959 } |
7960 if (kind != null) { | 7960 if (kind != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
7990 | 7990 |
7991 ChannelLocalization.fromJson(core.Map _json) { | 7991 ChannelLocalization.fromJson(core.Map _json) { |
7992 if (_json.containsKey("description")) { | 7992 if (_json.containsKey("description")) { |
7993 description = _json["description"]; | 7993 description = _json["description"]; |
7994 } | 7994 } |
7995 if (_json.containsKey("title")) { | 7995 if (_json.containsKey("title")) { |
7996 title = _json["title"]; | 7996 title = _json["title"]; |
7997 } | 7997 } |
7998 } | 7998 } |
7999 | 7999 |
8000 core.Map toJson() { | 8000 core.Map<core.String, core.Object> toJson() { |
8001 var _json = new core.Map(); | 8001 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8002 if (description != null) { | 8002 if (description != null) { |
8003 _json["description"] = description; | 8003 _json["description"] = description; |
8004 } | 8004 } |
8005 if (title != null) { | 8005 if (title != null) { |
8006 _json["title"] = title; | 8006 _json["title"] = title; |
8007 } | 8007 } |
8008 return _json; | 8008 return _json; |
8009 } | 8009 } |
8010 } | 8010 } |
8011 | 8011 |
(...skipping 17 matching lines...) Expand all Loading... |
8029 channelUrl = _json["channelUrl"]; | 8029 channelUrl = _json["channelUrl"]; |
8030 } | 8030 } |
8031 if (_json.containsKey("displayName")) { | 8031 if (_json.containsKey("displayName")) { |
8032 displayName = _json["displayName"]; | 8032 displayName = _json["displayName"]; |
8033 } | 8033 } |
8034 if (_json.containsKey("profileImageUrl")) { | 8034 if (_json.containsKey("profileImageUrl")) { |
8035 profileImageUrl = _json["profileImageUrl"]; | 8035 profileImageUrl = _json["profileImageUrl"]; |
8036 } | 8036 } |
8037 } | 8037 } |
8038 | 8038 |
8039 core.Map toJson() { | 8039 core.Map<core.String, core.Object> toJson() { |
8040 var _json = new core.Map(); | 8040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8041 if (channelId != null) { | 8041 if (channelId != null) { |
8042 _json["channelId"] = channelId; | 8042 _json["channelId"] = channelId; |
8043 } | 8043 } |
8044 if (channelUrl != null) { | 8044 if (channelUrl != null) { |
8045 _json["channelUrl"] = channelUrl; | 8045 _json["channelUrl"] = channelUrl; |
8046 } | 8046 } |
8047 if (displayName != null) { | 8047 if (displayName != null) { |
8048 _json["displayName"] = displayName; | 8048 _json["displayName"] = displayName; |
8049 } | 8049 } |
8050 if (profileImageUrl != null) { | 8050 if (profileImageUrl != null) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8091 if (_json.containsKey("etag")) { | 8091 if (_json.containsKey("etag")) { |
8092 etag = _json["etag"]; | 8092 etag = _json["etag"]; |
8093 } | 8093 } |
8094 if (_json.containsKey("id")) { | 8094 if (_json.containsKey("id")) { |
8095 id = _json["id"]; | 8095 id = _json["id"]; |
8096 } | 8096 } |
8097 if (_json.containsKey("kind")) { | 8097 if (_json.containsKey("kind")) { |
8098 kind = _json["kind"]; | 8098 kind = _json["kind"]; |
8099 } | 8099 } |
8100 if (_json.containsKey("localizations")) { | 8100 if (_json.containsKey("localizations")) { |
8101 localizations = commons.mapMap(_json["localizations"], (item) => new Chann
elSectionLocalization.fromJson(item)); | 8101 localizations = commons.mapMap<core.Map<core.String, core.Object>, Channel
SectionLocalization>(_json["localizations"], (core.Map<core.String, core.Object>
item) => new ChannelSectionLocalization.fromJson(item)); |
8102 } | 8102 } |
8103 if (_json.containsKey("snippet")) { | 8103 if (_json.containsKey("snippet")) { |
8104 snippet = new ChannelSectionSnippet.fromJson(_json["snippet"]); | 8104 snippet = new ChannelSectionSnippet.fromJson(_json["snippet"]); |
8105 } | 8105 } |
8106 if (_json.containsKey("targeting")) { | 8106 if (_json.containsKey("targeting")) { |
8107 targeting = new ChannelSectionTargeting.fromJson(_json["targeting"]); | 8107 targeting = new ChannelSectionTargeting.fromJson(_json["targeting"]); |
8108 } | 8108 } |
8109 } | 8109 } |
8110 | 8110 |
8111 core.Map toJson() { | 8111 core.Map<core.String, core.Object> toJson() { |
8112 var _json = new core.Map(); | 8112 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8113 if (contentDetails != null) { | 8113 if (contentDetails != null) { |
8114 _json["contentDetails"] = (contentDetails).toJson(); | 8114 _json["contentDetails"] = (contentDetails).toJson(); |
8115 } | 8115 } |
8116 if (etag != null) { | 8116 if (etag != null) { |
8117 _json["etag"] = etag; | 8117 _json["etag"] = etag; |
8118 } | 8118 } |
8119 if (id != null) { | 8119 if (id != null) { |
8120 _json["id"] = id; | 8120 _json["id"] = id; |
8121 } | 8121 } |
8122 if (kind != null) { | 8122 if (kind != null) { |
8123 _json["kind"] = kind; | 8123 _json["kind"] = kind; |
8124 } | 8124 } |
8125 if (localizations != null) { | 8125 if (localizations != null) { |
8126 _json["localizations"] = commons.mapMap(localizations, (item) => (item).to
Json()); | 8126 _json["localizations"] = commons.mapMap<ChannelSectionLocalization, core.M
ap<core.String, core.Object>>(localizations, (ChannelSectionLocalization item) =
> (item).toJson()); |
8127 } | 8127 } |
8128 if (snippet != null) { | 8128 if (snippet != null) { |
8129 _json["snippet"] = (snippet).toJson(); | 8129 _json["snippet"] = (snippet).toJson(); |
8130 } | 8130 } |
8131 if (targeting != null) { | 8131 if (targeting != null) { |
8132 _json["targeting"] = (targeting).toJson(); | 8132 _json["targeting"] = (targeting).toJson(); |
8133 } | 8133 } |
8134 return _json; | 8134 return _json; |
8135 } | 8135 } |
8136 } | 8136 } |
(...skipping 12 matching lines...) Expand all Loading... |
8149 | 8149 |
8150 ChannelSectionContentDetails.fromJson(core.Map _json) { | 8150 ChannelSectionContentDetails.fromJson(core.Map _json) { |
8151 if (_json.containsKey("channels")) { | 8151 if (_json.containsKey("channels")) { |
8152 channels = _json["channels"]; | 8152 channels = _json["channels"]; |
8153 } | 8153 } |
8154 if (_json.containsKey("playlists")) { | 8154 if (_json.containsKey("playlists")) { |
8155 playlists = _json["playlists"]; | 8155 playlists = _json["playlists"]; |
8156 } | 8156 } |
8157 } | 8157 } |
8158 | 8158 |
8159 core.Map toJson() { | 8159 core.Map<core.String, core.Object> toJson() { |
8160 var _json = new core.Map(); | 8160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8161 if (channels != null) { | 8161 if (channels != null) { |
8162 _json["channels"] = channels; | 8162 _json["channels"] = channels; |
8163 } | 8163 } |
8164 if (playlists != null) { | 8164 if (playlists != null) { |
8165 _json["playlists"] = playlists; | 8165 _json["playlists"] = playlists; |
8166 } | 8166 } |
8167 return _json; | 8167 return _json; |
8168 } | 8168 } |
8169 } | 8169 } |
8170 | 8170 |
(...skipping 25 matching lines...) Expand all Loading... |
8196 items = _json["items"].map((value) => new ChannelSection.fromJson(value)).
toList(); | 8196 items = _json["items"].map((value) => new ChannelSection.fromJson(value)).
toList(); |
8197 } | 8197 } |
8198 if (_json.containsKey("kind")) { | 8198 if (_json.containsKey("kind")) { |
8199 kind = _json["kind"]; | 8199 kind = _json["kind"]; |
8200 } | 8200 } |
8201 if (_json.containsKey("visitorId")) { | 8201 if (_json.containsKey("visitorId")) { |
8202 visitorId = _json["visitorId"]; | 8202 visitorId = _json["visitorId"]; |
8203 } | 8203 } |
8204 } | 8204 } |
8205 | 8205 |
8206 core.Map toJson() { | 8206 core.Map<core.String, core.Object> toJson() { |
8207 var _json = new core.Map(); | 8207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8208 if (etag != null) { | 8208 if (etag != null) { |
8209 _json["etag"] = etag; | 8209 _json["etag"] = etag; |
8210 } | 8210 } |
8211 if (eventId != null) { | 8211 if (eventId != null) { |
8212 _json["eventId"] = eventId; | 8212 _json["eventId"] = eventId; |
8213 } | 8213 } |
8214 if (items != null) { | 8214 if (items != null) { |
8215 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8215 _json["items"] = items.map((value) => (value).toJson()).toList(); |
8216 } | 8216 } |
8217 if (kind != null) { | 8217 if (kind != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
8230 core.String title; | 8230 core.String title; |
8231 | 8231 |
8232 ChannelSectionLocalization(); | 8232 ChannelSectionLocalization(); |
8233 | 8233 |
8234 ChannelSectionLocalization.fromJson(core.Map _json) { | 8234 ChannelSectionLocalization.fromJson(core.Map _json) { |
8235 if (_json.containsKey("title")) { | 8235 if (_json.containsKey("title")) { |
8236 title = _json["title"]; | 8236 title = _json["title"]; |
8237 } | 8237 } |
8238 } | 8238 } |
8239 | 8239 |
8240 core.Map toJson() { | 8240 core.Map<core.String, core.Object> toJson() { |
8241 var _json = new core.Map(); | 8241 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8242 if (title != null) { | 8242 if (title != null) { |
8243 _json["title"] = title; | 8243 _json["title"] = title; |
8244 } | 8244 } |
8245 return _json; | 8245 return _json; |
8246 } | 8246 } |
8247 } | 8247 } |
8248 | 8248 |
8249 /** | 8249 /** |
8250 * Basic details about a channel section, including title, style and position. | 8250 * Basic details about a channel section, including title, style and position. |
8251 */ | 8251 */ |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8315 style = _json["style"]; | 8315 style = _json["style"]; |
8316 } | 8316 } |
8317 if (_json.containsKey("title")) { | 8317 if (_json.containsKey("title")) { |
8318 title = _json["title"]; | 8318 title = _json["title"]; |
8319 } | 8319 } |
8320 if (_json.containsKey("type")) { | 8320 if (_json.containsKey("type")) { |
8321 type = _json["type"]; | 8321 type = _json["type"]; |
8322 } | 8322 } |
8323 } | 8323 } |
8324 | 8324 |
8325 core.Map toJson() { | 8325 core.Map<core.String, core.Object> toJson() { |
8326 var _json = new core.Map(); | 8326 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8327 if (channelId != null) { | 8327 if (channelId != null) { |
8328 _json["channelId"] = channelId; | 8328 _json["channelId"] = channelId; |
8329 } | 8329 } |
8330 if (defaultLanguage != null) { | 8330 if (defaultLanguage != null) { |
8331 _json["defaultLanguage"] = defaultLanguage; | 8331 _json["defaultLanguage"] = defaultLanguage; |
8332 } | 8332 } |
8333 if (localized != null) { | 8333 if (localized != null) { |
8334 _json["localized"] = (localized).toJson(); | 8334 _json["localized"] = (localized).toJson(); |
8335 } | 8335 } |
8336 if (position != null) { | 8336 if (position != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
8365 countries = _json["countries"]; | 8365 countries = _json["countries"]; |
8366 } | 8366 } |
8367 if (_json.containsKey("languages")) { | 8367 if (_json.containsKey("languages")) { |
8368 languages = _json["languages"]; | 8368 languages = _json["languages"]; |
8369 } | 8369 } |
8370 if (_json.containsKey("regions")) { | 8370 if (_json.containsKey("regions")) { |
8371 regions = _json["regions"]; | 8371 regions = _json["regions"]; |
8372 } | 8372 } |
8373 } | 8373 } |
8374 | 8374 |
8375 core.Map toJson() { | 8375 core.Map<core.String, core.Object> toJson() { |
8376 var _json = new core.Map(); | 8376 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8377 if (countries != null) { | 8377 if (countries != null) { |
8378 _json["countries"] = countries; | 8378 _json["countries"] = countries; |
8379 } | 8379 } |
8380 if (languages != null) { | 8380 if (languages != null) { |
8381 _json["languages"] = languages; | 8381 _json["languages"] = languages; |
8382 } | 8382 } |
8383 if (regions != null) { | 8383 if (regions != null) { |
8384 _json["regions"] = regions; | 8384 _json["regions"] = regions; |
8385 } | 8385 } |
8386 return _json; | 8386 return _json; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8463 title = _json["title"]; | 8463 title = _json["title"]; |
8464 } | 8464 } |
8465 if (_json.containsKey("trackingAnalyticsAccountId")) { | 8465 if (_json.containsKey("trackingAnalyticsAccountId")) { |
8466 trackingAnalyticsAccountId = _json["trackingAnalyticsAccountId"]; | 8466 trackingAnalyticsAccountId = _json["trackingAnalyticsAccountId"]; |
8467 } | 8467 } |
8468 if (_json.containsKey("unsubscribedTrailer")) { | 8468 if (_json.containsKey("unsubscribedTrailer")) { |
8469 unsubscribedTrailer = _json["unsubscribedTrailer"]; | 8469 unsubscribedTrailer = _json["unsubscribedTrailer"]; |
8470 } | 8470 } |
8471 } | 8471 } |
8472 | 8472 |
8473 core.Map toJson() { | 8473 core.Map<core.String, core.Object> toJson() { |
8474 var _json = new core.Map(); | 8474 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8475 if (country != null) { | 8475 if (country != null) { |
8476 _json["country"] = country; | 8476 _json["country"] = country; |
8477 } | 8477 } |
8478 if (defaultLanguage != null) { | 8478 if (defaultLanguage != null) { |
8479 _json["defaultLanguage"] = defaultLanguage; | 8479 _json["defaultLanguage"] = defaultLanguage; |
8480 } | 8480 } |
8481 if (defaultTab != null) { | 8481 if (defaultTab != null) { |
8482 _json["defaultTab"] = defaultTab; | 8482 _json["defaultTab"] = defaultTab; |
8483 } | 8483 } |
8484 if (description != null) { | 8484 if (description != null) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8569 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 8569 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
8570 } | 8570 } |
8571 if (_json.containsKey("thumbnails")) { | 8571 if (_json.containsKey("thumbnails")) { |
8572 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 8572 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
8573 } | 8573 } |
8574 if (_json.containsKey("title")) { | 8574 if (_json.containsKey("title")) { |
8575 title = _json["title"]; | 8575 title = _json["title"]; |
8576 } | 8576 } |
8577 } | 8577 } |
8578 | 8578 |
8579 core.Map toJson() { | 8579 core.Map<core.String, core.Object> toJson() { |
8580 var _json = new core.Map(); | 8580 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8581 if (country != null) { | 8581 if (country != null) { |
8582 _json["country"] = country; | 8582 _json["country"] = country; |
8583 } | 8583 } |
8584 if (customUrl != null) { | 8584 if (customUrl != null) { |
8585 _json["customUrl"] = customUrl; | 8585 _json["customUrl"] = customUrl; |
8586 } | 8586 } |
8587 if (defaultLanguage != null) { | 8587 if (defaultLanguage != null) { |
8588 _json["defaultLanguage"] = defaultLanguage; | 8588 _json["defaultLanguage"] = defaultLanguage; |
8589 } | 8589 } |
8590 if (description != null) { | 8590 if (description != null) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8635 subscriberCount = _json["subscriberCount"]; | 8635 subscriberCount = _json["subscriberCount"]; |
8636 } | 8636 } |
8637 if (_json.containsKey("videoCount")) { | 8637 if (_json.containsKey("videoCount")) { |
8638 videoCount = _json["videoCount"]; | 8638 videoCount = _json["videoCount"]; |
8639 } | 8639 } |
8640 if (_json.containsKey("viewCount")) { | 8640 if (_json.containsKey("viewCount")) { |
8641 viewCount = _json["viewCount"]; | 8641 viewCount = _json["viewCount"]; |
8642 } | 8642 } |
8643 } | 8643 } |
8644 | 8644 |
8645 core.Map toJson() { | 8645 core.Map<core.String, core.Object> toJson() { |
8646 var _json = new core.Map(); | 8646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8647 if (commentCount != null) { | 8647 if (commentCount != null) { |
8648 _json["commentCount"] = commentCount; | 8648 _json["commentCount"] = commentCount; |
8649 } | 8649 } |
8650 if (hiddenSubscriberCount != null) { | 8650 if (hiddenSubscriberCount != null) { |
8651 _json["hiddenSubscriberCount"] = hiddenSubscriberCount; | 8651 _json["hiddenSubscriberCount"] = hiddenSubscriberCount; |
8652 } | 8652 } |
8653 if (subscriberCount != null) { | 8653 if (subscriberCount != null) { |
8654 _json["subscriberCount"] = subscriberCount; | 8654 _json["subscriberCount"] = subscriberCount; |
8655 } | 8655 } |
8656 if (videoCount != null) { | 8656 if (videoCount != null) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8695 isLinked = _json["isLinked"]; | 8695 isLinked = _json["isLinked"]; |
8696 } | 8696 } |
8697 if (_json.containsKey("longUploadsStatus")) { | 8697 if (_json.containsKey("longUploadsStatus")) { |
8698 longUploadsStatus = _json["longUploadsStatus"]; | 8698 longUploadsStatus = _json["longUploadsStatus"]; |
8699 } | 8699 } |
8700 if (_json.containsKey("privacyStatus")) { | 8700 if (_json.containsKey("privacyStatus")) { |
8701 privacyStatus = _json["privacyStatus"]; | 8701 privacyStatus = _json["privacyStatus"]; |
8702 } | 8702 } |
8703 } | 8703 } |
8704 | 8704 |
8705 core.Map toJson() { | 8705 core.Map<core.String, core.Object> toJson() { |
8706 var _json = new core.Map(); | 8706 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8707 if (isLinked != null) { | 8707 if (isLinked != null) { |
8708 _json["isLinked"] = isLinked; | 8708 _json["isLinked"] = isLinked; |
8709 } | 8709 } |
8710 if (longUploadsStatus != null) { | 8710 if (longUploadsStatus != null) { |
8711 _json["longUploadsStatus"] = longUploadsStatus; | 8711 _json["longUploadsStatus"] = longUploadsStatus; |
8712 } | 8712 } |
8713 if (privacyStatus != null) { | 8713 if (privacyStatus != null) { |
8714 _json["privacyStatus"] = privacyStatus; | 8714 _json["privacyStatus"] = privacyStatus; |
8715 } | 8715 } |
8716 return _json; | 8716 return _json; |
(...skipping 14 matching lines...) Expand all Loading... |
8731 | 8731 |
8732 ChannelTopicDetails.fromJson(core.Map _json) { | 8732 ChannelTopicDetails.fromJson(core.Map _json) { |
8733 if (_json.containsKey("topicCategories")) { | 8733 if (_json.containsKey("topicCategories")) { |
8734 topicCategories = _json["topicCategories"]; | 8734 topicCategories = _json["topicCategories"]; |
8735 } | 8735 } |
8736 if (_json.containsKey("topicIds")) { | 8736 if (_json.containsKey("topicIds")) { |
8737 topicIds = _json["topicIds"]; | 8737 topicIds = _json["topicIds"]; |
8738 } | 8738 } |
8739 } | 8739 } |
8740 | 8740 |
8741 core.Map toJson() { | 8741 core.Map<core.String, core.Object> toJson() { |
8742 var _json = new core.Map(); | 8742 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8743 if (topicCategories != null) { | 8743 if (topicCategories != null) { |
8744 _json["topicCategories"] = topicCategories; | 8744 _json["topicCategories"] = topicCategories; |
8745 } | 8745 } |
8746 if (topicIds != null) { | 8746 if (topicIds != null) { |
8747 _json["topicIds"] = topicIds; | 8747 _json["topicIds"] = topicIds; |
8748 } | 8748 } |
8749 return _json; | 8749 return _json; |
8750 } | 8750 } |
8751 } | 8751 } |
8752 | 8752 |
(...skipping 21 matching lines...) Expand all Loading... |
8774 id = _json["id"]; | 8774 id = _json["id"]; |
8775 } | 8775 } |
8776 if (_json.containsKey("kind")) { | 8776 if (_json.containsKey("kind")) { |
8777 kind = _json["kind"]; | 8777 kind = _json["kind"]; |
8778 } | 8778 } |
8779 if (_json.containsKey("snippet")) { | 8779 if (_json.containsKey("snippet")) { |
8780 snippet = new CommentSnippet.fromJson(_json["snippet"]); | 8780 snippet = new CommentSnippet.fromJson(_json["snippet"]); |
8781 } | 8781 } |
8782 } | 8782 } |
8783 | 8783 |
8784 core.Map toJson() { | 8784 core.Map<core.String, core.Object> toJson() { |
8785 var _json = new core.Map(); | 8785 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8786 if (etag != null) { | 8786 if (etag != null) { |
8787 _json["etag"] = etag; | 8787 _json["etag"] = etag; |
8788 } | 8788 } |
8789 if (id != null) { | 8789 if (id != null) { |
8790 _json["id"] = id; | 8790 _json["id"] = id; |
8791 } | 8791 } |
8792 if (kind != null) { | 8792 if (kind != null) { |
8793 _json["kind"] = kind; | 8793 _json["kind"] = kind; |
8794 } | 8794 } |
8795 if (snippet != null) { | 8795 if (snippet != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8843 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 8843 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
8844 } | 8844 } |
8845 if (_json.containsKey("tokenPagination")) { | 8845 if (_json.containsKey("tokenPagination")) { |
8846 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 8846 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
8847 } | 8847 } |
8848 if (_json.containsKey("visitorId")) { | 8848 if (_json.containsKey("visitorId")) { |
8849 visitorId = _json["visitorId"]; | 8849 visitorId = _json["visitorId"]; |
8850 } | 8850 } |
8851 } | 8851 } |
8852 | 8852 |
8853 core.Map toJson() { | 8853 core.Map<core.String, core.Object> toJson() { |
8854 var _json = new core.Map(); | 8854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
8855 if (etag != null) { | 8855 if (etag != null) { |
8856 _json["etag"] = etag; | 8856 _json["etag"] = etag; |
8857 } | 8857 } |
8858 if (eventId != null) { | 8858 if (eventId != null) { |
8859 _json["eventId"] = eventId; | 8859 _json["eventId"] = eventId; |
8860 } | 8860 } |
8861 if (items != null) { | 8861 if (items != null) { |
8862 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8862 _json["items"] = items.map((value) => (value).toJson()).toList(); |
8863 } | 8863 } |
8864 if (kind != null) { | 8864 if (kind != null) { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8997 updatedAt = core.DateTime.parse(_json["updatedAt"]); | 8997 updatedAt = core.DateTime.parse(_json["updatedAt"]); |
8998 } | 8998 } |
8999 if (_json.containsKey("videoId")) { | 8999 if (_json.containsKey("videoId")) { |
9000 videoId = _json["videoId"]; | 9000 videoId = _json["videoId"]; |
9001 } | 9001 } |
9002 if (_json.containsKey("viewerRating")) { | 9002 if (_json.containsKey("viewerRating")) { |
9003 viewerRating = _json["viewerRating"]; | 9003 viewerRating = _json["viewerRating"]; |
9004 } | 9004 } |
9005 } | 9005 } |
9006 | 9006 |
9007 core.Map toJson() { | 9007 core.Map<core.String, core.Object> toJson() { |
9008 var _json = new core.Map(); | 9008 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
9009 if (authorChannelId != null) { | 9009 if (authorChannelId != null) { |
9010 _json["authorChannelId"] = authorChannelId; | 9010 _json["authorChannelId"] = authorChannelId; |
9011 } | 9011 } |
9012 if (authorChannelUrl != null) { | 9012 if (authorChannelUrl != null) { |
9013 _json["authorChannelUrl"] = authorChannelUrl; | 9013 _json["authorChannelUrl"] = authorChannelUrl; |
9014 } | 9014 } |
9015 if (authorDisplayName != null) { | 9015 if (authorDisplayName != null) { |
9016 _json["authorDisplayName"] = authorDisplayName; | 9016 _json["authorDisplayName"] = authorDisplayName; |
9017 } | 9017 } |
9018 if (authorProfileImageUrl != null) { | 9018 if (authorProfileImageUrl != null) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9094 kind = _json["kind"]; | 9094 kind = _json["kind"]; |
9095 } | 9095 } |
9096 if (_json.containsKey("replies")) { | 9096 if (_json.containsKey("replies")) { |
9097 replies = new CommentThreadReplies.fromJson(_json["replies"]); | 9097 replies = new CommentThreadReplies.fromJson(_json["replies"]); |
9098 } | 9098 } |
9099 if (_json.containsKey("snippet")) { | 9099 if (_json.containsKey("snippet")) { |
9100 snippet = new CommentThreadSnippet.fromJson(_json["snippet"]); | 9100 snippet = new CommentThreadSnippet.fromJson(_json["snippet"]); |
9101 } | 9101 } |
9102 } | 9102 } |
9103 | 9103 |
9104 core.Map toJson() { | 9104 core.Map<core.String, core.Object> toJson() { |
9105 var _json = new core.Map(); | 9105 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
9106 if (etag != null) { | 9106 if (etag != null) { |
9107 _json["etag"] = etag; | 9107 _json["etag"] = etag; |
9108 } | 9108 } |
9109 if (id != null) { | 9109 if (id != null) { |
9110 _json["id"] = id; | 9110 _json["id"] = id; |
9111 } | 9111 } |
9112 if (kind != null) { | 9112 if (kind != null) { |
9113 _json["kind"] = kind; | 9113 _json["kind"] = kind; |
9114 } | 9114 } |
9115 if (replies != null) { | 9115 if (replies != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9166 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 9166 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
9167 } | 9167 } |
9168 if (_json.containsKey("tokenPagination")) { | 9168 if (_json.containsKey("tokenPagination")) { |
9169 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 9169 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
9170 } | 9170 } |
9171 if (_json.containsKey("visitorId")) { | 9171 if (_json.containsKey("visitorId")) { |
9172 visitorId = _json["visitorId"]; | 9172 visitorId = _json["visitorId"]; |
9173 } | 9173 } |
9174 } | 9174 } |
9175 | 9175 |
9176 core.Map toJson() { | 9176 core.Map<core.String, core.Object> toJson() { |
9177 var _json = new core.Map(); | 9177 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
9178 if (etag != null) { | 9178 if (etag != null) { |
9179 _json["etag"] = etag; | 9179 _json["etag"] = etag; |
9180 } | 9180 } |
9181 if (eventId != null) { | 9181 if (eventId != null) { |
9182 _json["eventId"] = eventId; | 9182 _json["eventId"] = eventId; |
9183 } | 9183 } |
9184 if (items != null) { | 9184 if (items != null) { |
9185 _json["items"] = items.map((value) => (value).toJson()).toList(); | 9185 _json["items"] = items.map((value) => (value).toJson()).toList(); |
9186 } | 9186 } |
9187 if (kind != null) { | 9187 if (kind != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
9213 core.List<Comment> comments; | 9213 core.List<Comment> comments; |
9214 | 9214 |
9215 CommentThreadReplies(); | 9215 CommentThreadReplies(); |
9216 | 9216 |
9217 CommentThreadReplies.fromJson(core.Map _json) { | 9217 CommentThreadReplies.fromJson(core.Map _json) { |
9218 if (_json.containsKey("comments")) { | 9218 if (_json.containsKey("comments")) { |
9219 comments = _json["comments"].map((value) => new Comment.fromJson(value)).t
oList(); | 9219 comments = _json["comments"].map((value) => new Comment.fromJson(value)).t
oList(); |
9220 } | 9220 } |
9221 } | 9221 } |
9222 | 9222 |
9223 core.Map toJson() { | 9223 core.Map<core.String, core.Object> toJson() { |
9224 var _json = new core.Map(); | 9224 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
9225 if (comments != null) { | 9225 if (comments != null) { |
9226 _json["comments"] = comments.map((value) => (value).toJson()).toList(); | 9226 _json["comments"] = comments.map((value) => (value).toJson()).toList(); |
9227 } | 9227 } |
9228 return _json; | 9228 return _json; |
9229 } | 9229 } |
9230 } | 9230 } |
9231 | 9231 |
9232 /** Basic details about a comment thread. */ | 9232 /** Basic details about a comment thread. */ |
9233 class CommentThreadSnippet { | 9233 class CommentThreadSnippet { |
9234 /** | 9234 /** |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9273 topLevelComment = new Comment.fromJson(_json["topLevelComment"]); | 9273 topLevelComment = new Comment.fromJson(_json["topLevelComment"]); |
9274 } | 9274 } |
9275 if (_json.containsKey("totalReplyCount")) { | 9275 if (_json.containsKey("totalReplyCount")) { |
9276 totalReplyCount = _json["totalReplyCount"]; | 9276 totalReplyCount = _json["totalReplyCount"]; |
9277 } | 9277 } |
9278 if (_json.containsKey("videoId")) { | 9278 if (_json.containsKey("videoId")) { |
9279 videoId = _json["videoId"]; | 9279 videoId = _json["videoId"]; |
9280 } | 9280 } |
9281 } | 9281 } |
9282 | 9282 |
9283 core.Map toJson() { | 9283 core.Map<core.String, core.Object> toJson() { |
9284 var _json = new core.Map(); | 9284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
9285 if (canReply != null) { | 9285 if (canReply != null) { |
9286 _json["canReply"] = canReply; | 9286 _json["canReply"] = canReply; |
9287 } | 9287 } |
9288 if (channelId != null) { | 9288 if (channelId != null) { |
9289 _json["channelId"] = channelId; | 9289 _json["channelId"] = channelId; |
9290 } | 9290 } |
9291 if (isPublic != null) { | 9291 if (isPublic != null) { |
9292 _json["isPublic"] = isPublic; | 9292 _json["isPublic"] = isPublic; |
9293 } | 9293 } |
9294 if (topLevelComment != null) { | 9294 if (topLevelComment != null) { |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10329 smsaRating = _json["smsaRating"]; | 10329 smsaRating = _json["smsaRating"]; |
10330 } | 10330 } |
10331 if (_json.containsKey("tvpgRating")) { | 10331 if (_json.containsKey("tvpgRating")) { |
10332 tvpgRating = _json["tvpgRating"]; | 10332 tvpgRating = _json["tvpgRating"]; |
10333 } | 10333 } |
10334 if (_json.containsKey("ytRating")) { | 10334 if (_json.containsKey("ytRating")) { |
10335 ytRating = _json["ytRating"]; | 10335 ytRating = _json["ytRating"]; |
10336 } | 10336 } |
10337 } | 10337 } |
10338 | 10338 |
10339 core.Map toJson() { | 10339 core.Map<core.String, core.Object> toJson() { |
10340 var _json = new core.Map(); | 10340 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
10341 if (acbRating != null) { | 10341 if (acbRating != null) { |
10342 _json["acbRating"] = acbRating; | 10342 _json["acbRating"] = acbRating; |
10343 } | 10343 } |
10344 if (agcomRating != null) { | 10344 if (agcomRating != null) { |
10345 _json["agcomRating"] = agcomRating; | 10345 _json["agcomRating"] = agcomRating; |
10346 } | 10346 } |
10347 if (anatelRating != null) { | 10347 if (anatelRating != null) { |
10348 _json["anatelRating"] = anatelRating; | 10348 _json["anatelRating"] = anatelRating; |
10349 } | 10349 } |
10350 if (bbfcRating != null) { | 10350 if (bbfcRating != null) { |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10576 id = _json["id"]; | 10576 id = _json["id"]; |
10577 } | 10577 } |
10578 if (_json.containsKey("kind")) { | 10578 if (_json.containsKey("kind")) { |
10579 kind = _json["kind"]; | 10579 kind = _json["kind"]; |
10580 } | 10580 } |
10581 if (_json.containsKey("snippet")) { | 10581 if (_json.containsKey("snippet")) { |
10582 snippet = new FanFundingEventSnippet.fromJson(_json["snippet"]); | 10582 snippet = new FanFundingEventSnippet.fromJson(_json["snippet"]); |
10583 } | 10583 } |
10584 } | 10584 } |
10585 | 10585 |
10586 core.Map toJson() { | 10586 core.Map<core.String, core.Object> toJson() { |
10587 var _json = new core.Map(); | 10587 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
10588 if (etag != null) { | 10588 if (etag != null) { |
10589 _json["etag"] = etag; | 10589 _json["etag"] = etag; |
10590 } | 10590 } |
10591 if (id != null) { | 10591 if (id != null) { |
10592 _json["id"] = id; | 10592 _json["id"] = id; |
10593 } | 10593 } |
10594 if (kind != null) { | 10594 if (kind != null) { |
10595 _json["kind"] = kind; | 10595 _json["kind"] = kind; |
10596 } | 10596 } |
10597 if (snippet != null) { | 10597 if (snippet != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10645 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 10645 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
10646 } | 10646 } |
10647 if (_json.containsKey("tokenPagination")) { | 10647 if (_json.containsKey("tokenPagination")) { |
10648 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 10648 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
10649 } | 10649 } |
10650 if (_json.containsKey("visitorId")) { | 10650 if (_json.containsKey("visitorId")) { |
10651 visitorId = _json["visitorId"]; | 10651 visitorId = _json["visitorId"]; |
10652 } | 10652 } |
10653 } | 10653 } |
10654 | 10654 |
10655 core.Map toJson() { | 10655 core.Map<core.String, core.Object> toJson() { |
10656 var _json = new core.Map(); | 10656 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
10657 if (etag != null) { | 10657 if (etag != null) { |
10658 _json["etag"] = etag; | 10658 _json["etag"] = etag; |
10659 } | 10659 } |
10660 if (eventId != null) { | 10660 if (eventId != null) { |
10661 _json["eventId"] = eventId; | 10661 _json["eventId"] = eventId; |
10662 } | 10662 } |
10663 if (items != null) { | 10663 if (items != null) { |
10664 _json["items"] = items.map((value) => (value).toJson()).toList(); | 10664 _json["items"] = items.map((value) => (value).toJson()).toList(); |
10665 } | 10665 } |
10666 if (kind != null) { | 10666 if (kind != null) { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10728 currency = _json["currency"]; | 10728 currency = _json["currency"]; |
10729 } | 10729 } |
10730 if (_json.containsKey("displayString")) { | 10730 if (_json.containsKey("displayString")) { |
10731 displayString = _json["displayString"]; | 10731 displayString = _json["displayString"]; |
10732 } | 10732 } |
10733 if (_json.containsKey("supporterDetails")) { | 10733 if (_json.containsKey("supporterDetails")) { |
10734 supporterDetails = new ChannelProfileDetails.fromJson(_json["supporterDeta
ils"]); | 10734 supporterDetails = new ChannelProfileDetails.fromJson(_json["supporterDeta
ils"]); |
10735 } | 10735 } |
10736 } | 10736 } |
10737 | 10737 |
10738 core.Map toJson() { | 10738 core.Map<core.String, core.Object> toJson() { |
10739 var _json = new core.Map(); | 10739 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
10740 if (amountMicros != null) { | 10740 if (amountMicros != null) { |
10741 _json["amountMicros"] = amountMicros; | 10741 _json["amountMicros"] = amountMicros; |
10742 } | 10742 } |
10743 if (channelId != null) { | 10743 if (channelId != null) { |
10744 _json["channelId"] = channelId; | 10744 _json["channelId"] = channelId; |
10745 } | 10745 } |
10746 if (commentText != null) { | 10746 if (commentText != null) { |
10747 _json["commentText"] = commentText; | 10747 _json["commentText"] = commentText; |
10748 } | 10748 } |
10749 if (createdAt != null) { | 10749 if (createdAt != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
10778 altitude = _json["altitude"]; | 10778 altitude = _json["altitude"]; |
10779 } | 10779 } |
10780 if (_json.containsKey("latitude")) { | 10780 if (_json.containsKey("latitude")) { |
10781 latitude = _json["latitude"]; | 10781 latitude = _json["latitude"]; |
10782 } | 10782 } |
10783 if (_json.containsKey("longitude")) { | 10783 if (_json.containsKey("longitude")) { |
10784 longitude = _json["longitude"]; | 10784 longitude = _json["longitude"]; |
10785 } | 10785 } |
10786 } | 10786 } |
10787 | 10787 |
10788 core.Map toJson() { | 10788 core.Map<core.String, core.Object> toJson() { |
10789 var _json = new core.Map(); | 10789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
10790 if (altitude != null) { | 10790 if (altitude != null) { |
10791 _json["altitude"] = altitude; | 10791 _json["altitude"] = altitude; |
10792 } | 10792 } |
10793 if (latitude != null) { | 10793 if (latitude != null) { |
10794 _json["latitude"] = latitude; | 10794 _json["latitude"] = latitude; |
10795 } | 10795 } |
10796 if (longitude != null) { | 10796 if (longitude != null) { |
10797 _json["longitude"] = longitude; | 10797 _json["longitude"] = longitude; |
10798 } | 10798 } |
10799 return _json; | 10799 return _json; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10833 id = _json["id"]; | 10833 id = _json["id"]; |
10834 } | 10834 } |
10835 if (_json.containsKey("kind")) { | 10835 if (_json.containsKey("kind")) { |
10836 kind = _json["kind"]; | 10836 kind = _json["kind"]; |
10837 } | 10837 } |
10838 if (_json.containsKey("snippet")) { | 10838 if (_json.containsKey("snippet")) { |
10839 snippet = new GuideCategorySnippet.fromJson(_json["snippet"]); | 10839 snippet = new GuideCategorySnippet.fromJson(_json["snippet"]); |
10840 } | 10840 } |
10841 } | 10841 } |
10842 | 10842 |
10843 core.Map toJson() { | 10843 core.Map<core.String, core.Object> toJson() { |
10844 var _json = new core.Map(); | 10844 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
10845 if (etag != null) { | 10845 if (etag != null) { |
10846 _json["etag"] = etag; | 10846 _json["etag"] = etag; |
10847 } | 10847 } |
10848 if (id != null) { | 10848 if (id != null) { |
10849 _json["id"] = id; | 10849 _json["id"] = id; |
10850 } | 10850 } |
10851 if (kind != null) { | 10851 if (kind != null) { |
10852 _json["kind"] = kind; | 10852 _json["kind"] = kind; |
10853 } | 10853 } |
10854 if (snippet != null) { | 10854 if (snippet != null) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10914 prevPageToken = _json["prevPageToken"]; | 10914 prevPageToken = _json["prevPageToken"]; |
10915 } | 10915 } |
10916 if (_json.containsKey("tokenPagination")) { | 10916 if (_json.containsKey("tokenPagination")) { |
10917 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 10917 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
10918 } | 10918 } |
10919 if (_json.containsKey("visitorId")) { | 10919 if (_json.containsKey("visitorId")) { |
10920 visitorId = _json["visitorId"]; | 10920 visitorId = _json["visitorId"]; |
10921 } | 10921 } |
10922 } | 10922 } |
10923 | 10923 |
10924 core.Map toJson() { | 10924 core.Map<core.String, core.Object> toJson() { |
10925 var _json = new core.Map(); | 10925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
10926 if (etag != null) { | 10926 if (etag != null) { |
10927 _json["etag"] = etag; | 10927 _json["etag"] = etag; |
10928 } | 10928 } |
10929 if (eventId != null) { | 10929 if (eventId != null) { |
10930 _json["eventId"] = eventId; | 10930 _json["eventId"] = eventId; |
10931 } | 10931 } |
10932 if (items != null) { | 10932 if (items != null) { |
10933 _json["items"] = items.map((value) => (value).toJson()).toList(); | 10933 _json["items"] = items.map((value) => (value).toJson()).toList(); |
10934 } | 10934 } |
10935 if (kind != null) { | 10935 if (kind != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
10964 | 10964 |
10965 GuideCategorySnippet.fromJson(core.Map _json) { | 10965 GuideCategorySnippet.fromJson(core.Map _json) { |
10966 if (_json.containsKey("channelId")) { | 10966 if (_json.containsKey("channelId")) { |
10967 channelId = _json["channelId"]; | 10967 channelId = _json["channelId"]; |
10968 } | 10968 } |
10969 if (_json.containsKey("title")) { | 10969 if (_json.containsKey("title")) { |
10970 title = _json["title"]; | 10970 title = _json["title"]; |
10971 } | 10971 } |
10972 } | 10972 } |
10973 | 10973 |
10974 core.Map toJson() { | 10974 core.Map<core.String, core.Object> toJson() { |
10975 var _json = new core.Map(); | 10975 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
10976 if (channelId != null) { | 10976 if (channelId != null) { |
10977 _json["channelId"] = channelId; | 10977 _json["channelId"] = channelId; |
10978 } | 10978 } |
10979 if (title != null) { | 10979 if (title != null) { |
10980 _json["title"] = title; | 10980 _json["title"] = title; |
10981 } | 10981 } |
10982 return _json; | 10982 return _json; |
10983 } | 10983 } |
10984 } | 10984 } |
10985 | 10985 |
(...skipping 27 matching lines...) Expand all Loading... |
11013 id = _json["id"]; | 11013 id = _json["id"]; |
11014 } | 11014 } |
11015 if (_json.containsKey("kind")) { | 11015 if (_json.containsKey("kind")) { |
11016 kind = _json["kind"]; | 11016 kind = _json["kind"]; |
11017 } | 11017 } |
11018 if (_json.containsKey("snippet")) { | 11018 if (_json.containsKey("snippet")) { |
11019 snippet = new I18nLanguageSnippet.fromJson(_json["snippet"]); | 11019 snippet = new I18nLanguageSnippet.fromJson(_json["snippet"]); |
11020 } | 11020 } |
11021 } | 11021 } |
11022 | 11022 |
11023 core.Map toJson() { | 11023 core.Map<core.String, core.Object> toJson() { |
11024 var _json = new core.Map(); | 11024 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11025 if (etag != null) { | 11025 if (etag != null) { |
11026 _json["etag"] = etag; | 11026 _json["etag"] = etag; |
11027 } | 11027 } |
11028 if (id != null) { | 11028 if (id != null) { |
11029 _json["id"] = id; | 11029 _json["id"] = id; |
11030 } | 11030 } |
11031 if (kind != null) { | 11031 if (kind != null) { |
11032 _json["kind"] = kind; | 11032 _json["kind"] = kind; |
11033 } | 11033 } |
11034 if (snippet != null) { | 11034 if (snippet != null) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11069 items = _json["items"].map((value) => new I18nLanguage.fromJson(value)).to
List(); | 11069 items = _json["items"].map((value) => new I18nLanguage.fromJson(value)).to
List(); |
11070 } | 11070 } |
11071 if (_json.containsKey("kind")) { | 11071 if (_json.containsKey("kind")) { |
11072 kind = _json["kind"]; | 11072 kind = _json["kind"]; |
11073 } | 11073 } |
11074 if (_json.containsKey("visitorId")) { | 11074 if (_json.containsKey("visitorId")) { |
11075 visitorId = _json["visitorId"]; | 11075 visitorId = _json["visitorId"]; |
11076 } | 11076 } |
11077 } | 11077 } |
11078 | 11078 |
11079 core.Map toJson() { | 11079 core.Map<core.String, core.Object> toJson() { |
11080 var _json = new core.Map(); | 11080 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11081 if (etag != null) { | 11081 if (etag != null) { |
11082 _json["etag"] = etag; | 11082 _json["etag"] = etag; |
11083 } | 11083 } |
11084 if (eventId != null) { | 11084 if (eventId != null) { |
11085 _json["eventId"] = eventId; | 11085 _json["eventId"] = eventId; |
11086 } | 11086 } |
11087 if (items != null) { | 11087 if (items != null) { |
11088 _json["items"] = items.map((value) => (value).toJson()).toList(); | 11088 _json["items"] = items.map((value) => (value).toJson()).toList(); |
11089 } | 11089 } |
11090 if (kind != null) { | 11090 if (kind != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
11111 | 11111 |
11112 I18nLanguageSnippet.fromJson(core.Map _json) { | 11112 I18nLanguageSnippet.fromJson(core.Map _json) { |
11113 if (_json.containsKey("hl")) { | 11113 if (_json.containsKey("hl")) { |
11114 hl = _json["hl"]; | 11114 hl = _json["hl"]; |
11115 } | 11115 } |
11116 if (_json.containsKey("name")) { | 11116 if (_json.containsKey("name")) { |
11117 name = _json["name"]; | 11117 name = _json["name"]; |
11118 } | 11118 } |
11119 } | 11119 } |
11120 | 11120 |
11121 core.Map toJson() { | 11121 core.Map<core.String, core.Object> toJson() { |
11122 var _json = new core.Map(); | 11122 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11123 if (hl != null) { | 11123 if (hl != null) { |
11124 _json["hl"] = hl; | 11124 _json["hl"] = hl; |
11125 } | 11125 } |
11126 if (name != null) { | 11126 if (name != null) { |
11127 _json["name"] = name; | 11127 _json["name"] = name; |
11128 } | 11128 } |
11129 return _json; | 11129 return _json; |
11130 } | 11130 } |
11131 } | 11131 } |
11132 | 11132 |
(...skipping 24 matching lines...) Expand all Loading... |
11157 id = _json["id"]; | 11157 id = _json["id"]; |
11158 } | 11158 } |
11159 if (_json.containsKey("kind")) { | 11159 if (_json.containsKey("kind")) { |
11160 kind = _json["kind"]; | 11160 kind = _json["kind"]; |
11161 } | 11161 } |
11162 if (_json.containsKey("snippet")) { | 11162 if (_json.containsKey("snippet")) { |
11163 snippet = new I18nRegionSnippet.fromJson(_json["snippet"]); | 11163 snippet = new I18nRegionSnippet.fromJson(_json["snippet"]); |
11164 } | 11164 } |
11165 } | 11165 } |
11166 | 11166 |
11167 core.Map toJson() { | 11167 core.Map<core.String, core.Object> toJson() { |
11168 var _json = new core.Map(); | 11168 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11169 if (etag != null) { | 11169 if (etag != null) { |
11170 _json["etag"] = etag; | 11170 _json["etag"] = etag; |
11171 } | 11171 } |
11172 if (id != null) { | 11172 if (id != null) { |
11173 _json["id"] = id; | 11173 _json["id"] = id; |
11174 } | 11174 } |
11175 if (kind != null) { | 11175 if (kind != null) { |
11176 _json["kind"] = kind; | 11176 _json["kind"] = kind; |
11177 } | 11177 } |
11178 if (snippet != null) { | 11178 if (snippet != null) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11213 items = _json["items"].map((value) => new I18nRegion.fromJson(value)).toLi
st(); | 11213 items = _json["items"].map((value) => new I18nRegion.fromJson(value)).toLi
st(); |
11214 } | 11214 } |
11215 if (_json.containsKey("kind")) { | 11215 if (_json.containsKey("kind")) { |
11216 kind = _json["kind"]; | 11216 kind = _json["kind"]; |
11217 } | 11217 } |
11218 if (_json.containsKey("visitorId")) { | 11218 if (_json.containsKey("visitorId")) { |
11219 visitorId = _json["visitorId"]; | 11219 visitorId = _json["visitorId"]; |
11220 } | 11220 } |
11221 } | 11221 } |
11222 | 11222 |
11223 core.Map toJson() { | 11223 core.Map<core.String, core.Object> toJson() { |
11224 var _json = new core.Map(); | 11224 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11225 if (etag != null) { | 11225 if (etag != null) { |
11226 _json["etag"] = etag; | 11226 _json["etag"] = etag; |
11227 } | 11227 } |
11228 if (eventId != null) { | 11228 if (eventId != null) { |
11229 _json["eventId"] = eventId; | 11229 _json["eventId"] = eventId; |
11230 } | 11230 } |
11231 if (items != null) { | 11231 if (items != null) { |
11232 _json["items"] = items.map((value) => (value).toJson()).toList(); | 11232 _json["items"] = items.map((value) => (value).toJson()).toList(); |
11233 } | 11233 } |
11234 if (kind != null) { | 11234 if (kind != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
11255 | 11255 |
11256 I18nRegionSnippet.fromJson(core.Map _json) { | 11256 I18nRegionSnippet.fromJson(core.Map _json) { |
11257 if (_json.containsKey("gl")) { | 11257 if (_json.containsKey("gl")) { |
11258 gl = _json["gl"]; | 11258 gl = _json["gl"]; |
11259 } | 11259 } |
11260 if (_json.containsKey("name")) { | 11260 if (_json.containsKey("name")) { |
11261 name = _json["name"]; | 11261 name = _json["name"]; |
11262 } | 11262 } |
11263 } | 11263 } |
11264 | 11264 |
11265 core.Map toJson() { | 11265 core.Map<core.String, core.Object> toJson() { |
11266 var _json = new core.Map(); | 11266 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11267 if (gl != null) { | 11267 if (gl != null) { |
11268 _json["gl"] = gl; | 11268 _json["gl"] = gl; |
11269 } | 11269 } |
11270 if (name != null) { | 11270 if (name != null) { |
11271 _json["name"] = name; | 11271 _json["name"] = name; |
11272 } | 11272 } |
11273 return _json; | 11273 return _json; |
11274 } | 11274 } |
11275 } | 11275 } |
11276 | 11276 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11404 smallBrandedBannerImageUrl = new LocalizedProperty.fromJson(_json["smallBr
andedBannerImageUrl"]); | 11404 smallBrandedBannerImageUrl = new LocalizedProperty.fromJson(_json["smallBr
andedBannerImageUrl"]); |
11405 } | 11405 } |
11406 if (_json.containsKey("trackingImageUrl")) { | 11406 if (_json.containsKey("trackingImageUrl")) { |
11407 trackingImageUrl = _json["trackingImageUrl"]; | 11407 trackingImageUrl = _json["trackingImageUrl"]; |
11408 } | 11408 } |
11409 if (_json.containsKey("watchIconImageUrl")) { | 11409 if (_json.containsKey("watchIconImageUrl")) { |
11410 watchIconImageUrl = _json["watchIconImageUrl"]; | 11410 watchIconImageUrl = _json["watchIconImageUrl"]; |
11411 } | 11411 } |
11412 } | 11412 } |
11413 | 11413 |
11414 core.Map toJson() { | 11414 core.Map<core.String, core.Object> toJson() { |
11415 var _json = new core.Map(); | 11415 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11416 if (backgroundImageUrl != null) { | 11416 if (backgroundImageUrl != null) { |
11417 _json["backgroundImageUrl"] = (backgroundImageUrl).toJson(); | 11417 _json["backgroundImageUrl"] = (backgroundImageUrl).toJson(); |
11418 } | 11418 } |
11419 if (bannerExternalUrl != null) { | 11419 if (bannerExternalUrl != null) { |
11420 _json["bannerExternalUrl"] = bannerExternalUrl; | 11420 _json["bannerExternalUrl"] = bannerExternalUrl; |
11421 } | 11421 } |
11422 if (bannerImageUrl != null) { | 11422 if (bannerImageUrl != null) { |
11423 _json["bannerImageUrl"] = bannerImageUrl; | 11423 _json["bannerImageUrl"] = bannerImageUrl; |
11424 } | 11424 } |
11425 if (bannerMobileExtraHdImageUrl != null) { | 11425 if (bannerMobileExtraHdImageUrl != null) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11512 backupIngestionAddress = _json["backupIngestionAddress"]; | 11512 backupIngestionAddress = _json["backupIngestionAddress"]; |
11513 } | 11513 } |
11514 if (_json.containsKey("ingestionAddress")) { | 11514 if (_json.containsKey("ingestionAddress")) { |
11515 ingestionAddress = _json["ingestionAddress"]; | 11515 ingestionAddress = _json["ingestionAddress"]; |
11516 } | 11516 } |
11517 if (_json.containsKey("streamName")) { | 11517 if (_json.containsKey("streamName")) { |
11518 streamName = _json["streamName"]; | 11518 streamName = _json["streamName"]; |
11519 } | 11519 } |
11520 } | 11520 } |
11521 | 11521 |
11522 core.Map toJson() { | 11522 core.Map<core.String, core.Object> toJson() { |
11523 var _json = new core.Map(); | 11523 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11524 if (backupIngestionAddress != null) { | 11524 if (backupIngestionAddress != null) { |
11525 _json["backupIngestionAddress"] = backupIngestionAddress; | 11525 _json["backupIngestionAddress"] = backupIngestionAddress; |
11526 } | 11526 } |
11527 if (ingestionAddress != null) { | 11527 if (ingestionAddress != null) { |
11528 _json["ingestionAddress"] = ingestionAddress; | 11528 _json["ingestionAddress"] = ingestionAddress; |
11529 } | 11529 } |
11530 if (streamName != null) { | 11530 if (streamName != null) { |
11531 _json["streamName"] = streamName; | 11531 _json["streamName"] = streamName; |
11532 } | 11532 } |
11533 return _json; | 11533 return _json; |
(...skipping 27 matching lines...) Expand all Loading... |
11561 position = new InvideoPosition.fromJson(_json["position"]); | 11561 position = new InvideoPosition.fromJson(_json["position"]); |
11562 } | 11562 } |
11563 if (_json.containsKey("targetChannelId")) { | 11563 if (_json.containsKey("targetChannelId")) { |
11564 targetChannelId = _json["targetChannelId"]; | 11564 targetChannelId = _json["targetChannelId"]; |
11565 } | 11565 } |
11566 if (_json.containsKey("timing")) { | 11566 if (_json.containsKey("timing")) { |
11567 timing = new InvideoTiming.fromJson(_json["timing"]); | 11567 timing = new InvideoTiming.fromJson(_json["timing"]); |
11568 } | 11568 } |
11569 } | 11569 } |
11570 | 11570 |
11571 core.Map toJson() { | 11571 core.Map<core.String, core.Object> toJson() { |
11572 var _json = new core.Map(); | 11572 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11573 if (imageBytes != null) { | 11573 if (imageBytes != null) { |
11574 _json["imageBytes"] = imageBytes; | 11574 _json["imageBytes"] = imageBytes; |
11575 } | 11575 } |
11576 if (imageUrl != null) { | 11576 if (imageUrl != null) { |
11577 _json["imageUrl"] = imageUrl; | 11577 _json["imageUrl"] = imageUrl; |
11578 } | 11578 } |
11579 if (position != null) { | 11579 if (position != null) { |
11580 _json["position"] = (position).toJson(); | 11580 _json["position"] = (position).toJson(); |
11581 } | 11581 } |
11582 if (targetChannelId != null) { | 11582 if (targetChannelId != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11614 | 11614 |
11615 InvideoPosition.fromJson(core.Map _json) { | 11615 InvideoPosition.fromJson(core.Map _json) { |
11616 if (_json.containsKey("cornerPosition")) { | 11616 if (_json.containsKey("cornerPosition")) { |
11617 cornerPosition = _json["cornerPosition"]; | 11617 cornerPosition = _json["cornerPosition"]; |
11618 } | 11618 } |
11619 if (_json.containsKey("type")) { | 11619 if (_json.containsKey("type")) { |
11620 type = _json["type"]; | 11620 type = _json["type"]; |
11621 } | 11621 } |
11622 } | 11622 } |
11623 | 11623 |
11624 core.Map toJson() { | 11624 core.Map<core.String, core.Object> toJson() { |
11625 var _json = new core.Map(); | 11625 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11626 if (cornerPosition != null) { | 11626 if (cornerPosition != null) { |
11627 _json["cornerPosition"] = cornerPosition; | 11627 _json["cornerPosition"] = cornerPosition; |
11628 } | 11628 } |
11629 if (type != null) { | 11629 if (type != null) { |
11630 _json["type"] = type; | 11630 _json["type"] = type; |
11631 } | 11631 } |
11632 return _json; | 11632 return _json; |
11633 } | 11633 } |
11634 } | 11634 } |
11635 | 11635 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11669 items = _json["items"].map((value) => new PromotedItem.fromJson(value)).to
List(); | 11669 items = _json["items"].map((value) => new PromotedItem.fromJson(value)).to
List(); |
11670 } | 11670 } |
11671 if (_json.containsKey("position")) { | 11671 if (_json.containsKey("position")) { |
11672 position = new InvideoPosition.fromJson(_json["position"]); | 11672 position = new InvideoPosition.fromJson(_json["position"]); |
11673 } | 11673 } |
11674 if (_json.containsKey("useSmartTiming")) { | 11674 if (_json.containsKey("useSmartTiming")) { |
11675 useSmartTiming = _json["useSmartTiming"]; | 11675 useSmartTiming = _json["useSmartTiming"]; |
11676 } | 11676 } |
11677 } | 11677 } |
11678 | 11678 |
11679 core.Map toJson() { | 11679 core.Map<core.String, core.Object> toJson() { |
11680 var _json = new core.Map(); | 11680 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11681 if (defaultTiming != null) { | 11681 if (defaultTiming != null) { |
11682 _json["defaultTiming"] = (defaultTiming).toJson(); | 11682 _json["defaultTiming"] = (defaultTiming).toJson(); |
11683 } | 11683 } |
11684 if (items != null) { | 11684 if (items != null) { |
11685 _json["items"] = items.map((value) => (value).toJson()).toList(); | 11685 _json["items"] = items.map((value) => (value).toJson()).toList(); |
11686 } | 11686 } |
11687 if (position != null) { | 11687 if (position != null) { |
11688 _json["position"] = (position).toJson(); | 11688 _json["position"] = (position).toJson(); |
11689 } | 11689 } |
11690 if (useSmartTiming != null) { | 11690 if (useSmartTiming != null) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11725 durationMs = _json["durationMs"]; | 11725 durationMs = _json["durationMs"]; |
11726 } | 11726 } |
11727 if (_json.containsKey("offsetMs")) { | 11727 if (_json.containsKey("offsetMs")) { |
11728 offsetMs = _json["offsetMs"]; | 11728 offsetMs = _json["offsetMs"]; |
11729 } | 11729 } |
11730 if (_json.containsKey("type")) { | 11730 if (_json.containsKey("type")) { |
11731 type = _json["type"]; | 11731 type = _json["type"]; |
11732 } | 11732 } |
11733 } | 11733 } |
11734 | 11734 |
11735 core.Map toJson() { | 11735 core.Map<core.String, core.Object> toJson() { |
11736 var _json = new core.Map(); | 11736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11737 if (durationMs != null) { | 11737 if (durationMs != null) { |
11738 _json["durationMs"] = durationMs; | 11738 _json["durationMs"] = durationMs; |
11739 } | 11739 } |
11740 if (offsetMs != null) { | 11740 if (offsetMs != null) { |
11741 _json["offsetMs"] = offsetMs; | 11741 _json["offsetMs"] = offsetMs; |
11742 } | 11742 } |
11743 if (type != null) { | 11743 if (type != null) { |
11744 _json["type"] = type; | 11744 _json["type"] = type; |
11745 } | 11745 } |
11746 return _json; | 11746 return _json; |
11747 } | 11747 } |
11748 } | 11748 } |
11749 | 11749 |
11750 class LanguageTag { | 11750 class LanguageTag { |
11751 core.String value; | 11751 core.String value; |
11752 | 11752 |
11753 LanguageTag(); | 11753 LanguageTag(); |
11754 | 11754 |
11755 LanguageTag.fromJson(core.Map _json) { | 11755 LanguageTag.fromJson(core.Map _json) { |
11756 if (_json.containsKey("value")) { | 11756 if (_json.containsKey("value")) { |
11757 value = _json["value"]; | 11757 value = _json["value"]; |
11758 } | 11758 } |
11759 } | 11759 } |
11760 | 11760 |
11761 core.Map toJson() { | 11761 core.Map<core.String, core.Object> toJson() { |
11762 var _json = new core.Map(); | 11762 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11763 if (value != null) { | 11763 if (value != null) { |
11764 _json["value"] = value; | 11764 _json["value"] = value; |
11765 } | 11765 } |
11766 return _json; | 11766 return _json; |
11767 } | 11767 } |
11768 } | 11768 } |
11769 | 11769 |
11770 /** | 11770 /** |
11771 * A liveBroadcast resource represents an event that will be streamed, via live | 11771 * A liveBroadcast resource represents an event that will be streamed, via live |
11772 * video, on YouTube. | 11772 * video, on YouTube. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11826 statistics = new LiveBroadcastStatistics.fromJson(_json["statistics"]); | 11826 statistics = new LiveBroadcastStatistics.fromJson(_json["statistics"]); |
11827 } | 11827 } |
11828 if (_json.containsKey("status")) { | 11828 if (_json.containsKey("status")) { |
11829 status = new LiveBroadcastStatus.fromJson(_json["status"]); | 11829 status = new LiveBroadcastStatus.fromJson(_json["status"]); |
11830 } | 11830 } |
11831 if (_json.containsKey("topicDetails")) { | 11831 if (_json.containsKey("topicDetails")) { |
11832 topicDetails = new LiveBroadcastTopicDetails.fromJson(_json["topicDetails"
]); | 11832 topicDetails = new LiveBroadcastTopicDetails.fromJson(_json["topicDetails"
]); |
11833 } | 11833 } |
11834 } | 11834 } |
11835 | 11835 |
11836 core.Map toJson() { | 11836 core.Map<core.String, core.Object> toJson() { |
11837 var _json = new core.Map(); | 11837 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11838 if (contentDetails != null) { | 11838 if (contentDetails != null) { |
11839 _json["contentDetails"] = (contentDetails).toJson(); | 11839 _json["contentDetails"] = (contentDetails).toJson(); |
11840 } | 11840 } |
11841 if (etag != null) { | 11841 if (etag != null) { |
11842 _json["etag"] = etag; | 11842 _json["etag"] = etag; |
11843 } | 11843 } |
11844 if (id != null) { | 11844 if (id != null) { |
11845 _json["id"] = id; | 11845 _json["id"] = id; |
11846 } | 11846 } |
11847 if (kind != null) { | 11847 if (kind != null) { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11984 projection = _json["projection"]; | 11984 projection = _json["projection"]; |
11985 } | 11985 } |
11986 if (_json.containsKey("recordFromStart")) { | 11986 if (_json.containsKey("recordFromStart")) { |
11987 recordFromStart = _json["recordFromStart"]; | 11987 recordFromStart = _json["recordFromStart"]; |
11988 } | 11988 } |
11989 if (_json.containsKey("startWithSlate")) { | 11989 if (_json.containsKey("startWithSlate")) { |
11990 startWithSlate = _json["startWithSlate"]; | 11990 startWithSlate = _json["startWithSlate"]; |
11991 } | 11991 } |
11992 } | 11992 } |
11993 | 11993 |
11994 core.Map toJson() { | 11994 core.Map<core.String, core.Object> toJson() { |
11995 var _json = new core.Map(); | 11995 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11996 if (boundStreamId != null) { | 11996 if (boundStreamId != null) { |
11997 _json["boundStreamId"] = boundStreamId; | 11997 _json["boundStreamId"] = boundStreamId; |
11998 } | 11998 } |
11999 if (boundStreamLastUpdateTimeMs != null) { | 11999 if (boundStreamLastUpdateTimeMs != null) { |
12000 _json["boundStreamLastUpdateTimeMs"] = (boundStreamLastUpdateTimeMs).toIso
8601String(); | 12000 _json["boundStreamLastUpdateTimeMs"] = (boundStreamLastUpdateTimeMs).toIso
8601String(); |
12001 } | 12001 } |
12002 if (closedCaptionsType != null) { | 12002 if (closedCaptionsType != null) { |
12003 _json["closedCaptionsType"] = closedCaptionsType; | 12003 _json["closedCaptionsType"] = closedCaptionsType; |
12004 } | 12004 } |
12005 if (enableClosedCaptions != null) { | 12005 if (enableClosedCaptions != null) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12085 prevPageToken = _json["prevPageToken"]; | 12085 prevPageToken = _json["prevPageToken"]; |
12086 } | 12086 } |
12087 if (_json.containsKey("tokenPagination")) { | 12087 if (_json.containsKey("tokenPagination")) { |
12088 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 12088 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
12089 } | 12089 } |
12090 if (_json.containsKey("visitorId")) { | 12090 if (_json.containsKey("visitorId")) { |
12091 visitorId = _json["visitorId"]; | 12091 visitorId = _json["visitorId"]; |
12092 } | 12092 } |
12093 } | 12093 } |
12094 | 12094 |
12095 core.Map toJson() { | 12095 core.Map<core.String, core.Object> toJson() { |
12096 var _json = new core.Map(); | 12096 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12097 if (etag != null) { | 12097 if (etag != null) { |
12098 _json["etag"] = etag; | 12098 _json["etag"] = etag; |
12099 } | 12099 } |
12100 if (eventId != null) { | 12100 if (eventId != null) { |
12101 _json["eventId"] = eventId; | 12101 _json["eventId"] = eventId; |
12102 } | 12102 } |
12103 if (items != null) { | 12103 if (items != null) { |
12104 _json["items"] = items.map((value) => (value).toJson()).toList(); | 12104 _json["items"] = items.map((value) => (value).toJson()).toList(); |
12105 } | 12105 } |
12106 if (kind != null) { | 12106 if (kind != null) { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12212 scheduledStartTime = core.DateTime.parse(_json["scheduledStartTime"]); | 12212 scheduledStartTime = core.DateTime.parse(_json["scheduledStartTime"]); |
12213 } | 12213 } |
12214 if (_json.containsKey("thumbnails")) { | 12214 if (_json.containsKey("thumbnails")) { |
12215 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 12215 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
12216 } | 12216 } |
12217 if (_json.containsKey("title")) { | 12217 if (_json.containsKey("title")) { |
12218 title = _json["title"]; | 12218 title = _json["title"]; |
12219 } | 12219 } |
12220 } | 12220 } |
12221 | 12221 |
12222 core.Map toJson() { | 12222 core.Map<core.String, core.Object> toJson() { |
12223 var _json = new core.Map(); | 12223 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12224 if (actualEndTime != null) { | 12224 if (actualEndTime != null) { |
12225 _json["actualEndTime"] = (actualEndTime).toIso8601String(); | 12225 _json["actualEndTime"] = (actualEndTime).toIso8601String(); |
12226 } | 12226 } |
12227 if (actualStartTime != null) { | 12227 if (actualStartTime != null) { |
12228 _json["actualStartTime"] = (actualStartTime).toIso8601String(); | 12228 _json["actualStartTime"] = (actualStartTime).toIso8601String(); |
12229 } | 12229 } |
12230 if (channelId != null) { | 12230 if (channelId != null) { |
12231 _json["channelId"] = channelId; | 12231 _json["channelId"] = channelId; |
12232 } | 12232 } |
12233 if (description != null) { | 12233 if (description != null) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12286 | 12286 |
12287 LiveBroadcastStatistics.fromJson(core.Map _json) { | 12287 LiveBroadcastStatistics.fromJson(core.Map _json) { |
12288 if (_json.containsKey("concurrentViewers")) { | 12288 if (_json.containsKey("concurrentViewers")) { |
12289 concurrentViewers = _json["concurrentViewers"]; | 12289 concurrentViewers = _json["concurrentViewers"]; |
12290 } | 12290 } |
12291 if (_json.containsKey("totalChatCount")) { | 12291 if (_json.containsKey("totalChatCount")) { |
12292 totalChatCount = _json["totalChatCount"]; | 12292 totalChatCount = _json["totalChatCount"]; |
12293 } | 12293 } |
12294 } | 12294 } |
12295 | 12295 |
12296 core.Map toJson() { | 12296 core.Map<core.String, core.Object> toJson() { |
12297 var _json = new core.Map(); | 12297 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12298 if (concurrentViewers != null) { | 12298 if (concurrentViewers != null) { |
12299 _json["concurrentViewers"] = concurrentViewers; | 12299 _json["concurrentViewers"] = concurrentViewers; |
12300 } | 12300 } |
12301 if (totalChatCount != null) { | 12301 if (totalChatCount != null) { |
12302 _json["totalChatCount"] = totalChatCount; | 12302 _json["totalChatCount"] = totalChatCount; |
12303 } | 12303 } |
12304 return _json; | 12304 return _json; |
12305 } | 12305 } |
12306 } | 12306 } |
12307 | 12307 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12362 liveBroadcastPriority = _json["liveBroadcastPriority"]; | 12362 liveBroadcastPriority = _json["liveBroadcastPriority"]; |
12363 } | 12363 } |
12364 if (_json.containsKey("privacyStatus")) { | 12364 if (_json.containsKey("privacyStatus")) { |
12365 privacyStatus = _json["privacyStatus"]; | 12365 privacyStatus = _json["privacyStatus"]; |
12366 } | 12366 } |
12367 if (_json.containsKey("recordingStatus")) { | 12367 if (_json.containsKey("recordingStatus")) { |
12368 recordingStatus = _json["recordingStatus"]; | 12368 recordingStatus = _json["recordingStatus"]; |
12369 } | 12369 } |
12370 } | 12370 } |
12371 | 12371 |
12372 core.Map toJson() { | 12372 core.Map<core.String, core.Object> toJson() { |
12373 var _json = new core.Map(); | 12373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12374 if (lifeCycleStatus != null) { | 12374 if (lifeCycleStatus != null) { |
12375 _json["lifeCycleStatus"] = lifeCycleStatus; | 12375 _json["lifeCycleStatus"] = lifeCycleStatus; |
12376 } | 12376 } |
12377 if (liveBroadcastPriority != null) { | 12377 if (liveBroadcastPriority != null) { |
12378 _json["liveBroadcastPriority"] = liveBroadcastPriority; | 12378 _json["liveBroadcastPriority"] = liveBroadcastPriority; |
12379 } | 12379 } |
12380 if (privacyStatus != null) { | 12380 if (privacyStatus != null) { |
12381 _json["privacyStatus"] = privacyStatus; | 12381 _json["privacyStatus"] = privacyStatus; |
12382 } | 12382 } |
12383 if (recordingStatus != null) { | 12383 if (recordingStatus != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
12409 snippet = new LiveBroadcastTopicSnippet.fromJson(_json["snippet"]); | 12409 snippet = new LiveBroadcastTopicSnippet.fromJson(_json["snippet"]); |
12410 } | 12410 } |
12411 if (_json.containsKey("type")) { | 12411 if (_json.containsKey("type")) { |
12412 type = _json["type"]; | 12412 type = _json["type"]; |
12413 } | 12413 } |
12414 if (_json.containsKey("unmatched")) { | 12414 if (_json.containsKey("unmatched")) { |
12415 unmatched = _json["unmatched"]; | 12415 unmatched = _json["unmatched"]; |
12416 } | 12416 } |
12417 } | 12417 } |
12418 | 12418 |
12419 core.Map toJson() { | 12419 core.Map<core.String, core.Object> toJson() { |
12420 var _json = new core.Map(); | 12420 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12421 if (snippet != null) { | 12421 if (snippet != null) { |
12422 _json["snippet"] = (snippet).toJson(); | 12422 _json["snippet"] = (snippet).toJson(); |
12423 } | 12423 } |
12424 if (type != null) { | 12424 if (type != null) { |
12425 _json["type"] = type; | 12425 _json["type"] = type; |
12426 } | 12426 } |
12427 if (unmatched != null) { | 12427 if (unmatched != null) { |
12428 _json["unmatched"] = unmatched; | 12428 _json["unmatched"] = unmatched; |
12429 } | 12429 } |
12430 return _json; | 12430 return _json; |
12431 } | 12431 } |
12432 } | 12432 } |
12433 | 12433 |
12434 class LiveBroadcastTopicDetails { | 12434 class LiveBroadcastTopicDetails { |
12435 core.List<LiveBroadcastTopic> topics; | 12435 core.List<LiveBroadcastTopic> topics; |
12436 | 12436 |
12437 LiveBroadcastTopicDetails(); | 12437 LiveBroadcastTopicDetails(); |
12438 | 12438 |
12439 LiveBroadcastTopicDetails.fromJson(core.Map _json) { | 12439 LiveBroadcastTopicDetails.fromJson(core.Map _json) { |
12440 if (_json.containsKey("topics")) { | 12440 if (_json.containsKey("topics")) { |
12441 topics = _json["topics"].map((value) => new LiveBroadcastTopic.fromJson(va
lue)).toList(); | 12441 topics = _json["topics"].map((value) => new LiveBroadcastTopic.fromJson(va
lue)).toList(); |
12442 } | 12442 } |
12443 } | 12443 } |
12444 | 12444 |
12445 core.Map toJson() { | 12445 core.Map<core.String, core.Object> toJson() { |
12446 var _json = new core.Map(); | 12446 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12447 if (topics != null) { | 12447 if (topics != null) { |
12448 _json["topics"] = topics.map((value) => (value).toJson()).toList(); | 12448 _json["topics"] = topics.map((value) => (value).toJson()).toList(); |
12449 } | 12449 } |
12450 return _json; | 12450 return _json; |
12451 } | 12451 } |
12452 } | 12452 } |
12453 | 12453 |
12454 class LiveBroadcastTopicSnippet { | 12454 class LiveBroadcastTopicSnippet { |
12455 /** The name of the topic. */ | 12455 /** The name of the topic. */ |
12456 core.String name; | 12456 core.String name; |
12457 /** The date at which the topic was released. Filled for types: videoGame */ | 12457 /** The date at which the topic was released. Filled for types: videoGame */ |
12458 core.String releaseDate; | 12458 core.String releaseDate; |
12459 | 12459 |
12460 LiveBroadcastTopicSnippet(); | 12460 LiveBroadcastTopicSnippet(); |
12461 | 12461 |
12462 LiveBroadcastTopicSnippet.fromJson(core.Map _json) { | 12462 LiveBroadcastTopicSnippet.fromJson(core.Map _json) { |
12463 if (_json.containsKey("name")) { | 12463 if (_json.containsKey("name")) { |
12464 name = _json["name"]; | 12464 name = _json["name"]; |
12465 } | 12465 } |
12466 if (_json.containsKey("releaseDate")) { | 12466 if (_json.containsKey("releaseDate")) { |
12467 releaseDate = _json["releaseDate"]; | 12467 releaseDate = _json["releaseDate"]; |
12468 } | 12468 } |
12469 } | 12469 } |
12470 | 12470 |
12471 core.Map toJson() { | 12471 core.Map<core.String, core.Object> toJson() { |
12472 var _json = new core.Map(); | 12472 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12473 if (name != null) { | 12473 if (name != null) { |
12474 _json["name"] = name; | 12474 _json["name"] = name; |
12475 } | 12475 } |
12476 if (releaseDate != null) { | 12476 if (releaseDate != null) { |
12477 _json["releaseDate"] = releaseDate; | 12477 _json["releaseDate"] = releaseDate; |
12478 } | 12478 } |
12479 return _json; | 12479 return _json; |
12480 } | 12480 } |
12481 } | 12481 } |
12482 | 12482 |
(...skipping 21 matching lines...) Expand all Loading... |
12504 id = _json["id"]; | 12504 id = _json["id"]; |
12505 } | 12505 } |
12506 if (_json.containsKey("kind")) { | 12506 if (_json.containsKey("kind")) { |
12507 kind = _json["kind"]; | 12507 kind = _json["kind"]; |
12508 } | 12508 } |
12509 if (_json.containsKey("snippet")) { | 12509 if (_json.containsKey("snippet")) { |
12510 snippet = new LiveChatBanSnippet.fromJson(_json["snippet"]); | 12510 snippet = new LiveChatBanSnippet.fromJson(_json["snippet"]); |
12511 } | 12511 } |
12512 } | 12512 } |
12513 | 12513 |
12514 core.Map toJson() { | 12514 core.Map<core.String, core.Object> toJson() { |
12515 var _json = new core.Map(); | 12515 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12516 if (etag != null) { | 12516 if (etag != null) { |
12517 _json["etag"] = etag; | 12517 _json["etag"] = etag; |
12518 } | 12518 } |
12519 if (id != null) { | 12519 if (id != null) { |
12520 _json["id"] = id; | 12520 _json["id"] = id; |
12521 } | 12521 } |
12522 if (kind != null) { | 12522 if (kind != null) { |
12523 _json["kind"] = kind; | 12523 _json["kind"] = kind; |
12524 } | 12524 } |
12525 if (snippet != null) { | 12525 if (snippet != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
12553 bannedUserDetails = new ChannelProfileDetails.fromJson(_json["bannedUserDe
tails"]); | 12553 bannedUserDetails = new ChannelProfileDetails.fromJson(_json["bannedUserDe
tails"]); |
12554 } | 12554 } |
12555 if (_json.containsKey("liveChatId")) { | 12555 if (_json.containsKey("liveChatId")) { |
12556 liveChatId = _json["liveChatId"]; | 12556 liveChatId = _json["liveChatId"]; |
12557 } | 12557 } |
12558 if (_json.containsKey("type")) { | 12558 if (_json.containsKey("type")) { |
12559 type = _json["type"]; | 12559 type = _json["type"]; |
12560 } | 12560 } |
12561 } | 12561 } |
12562 | 12562 |
12563 core.Map toJson() { | 12563 core.Map<core.String, core.Object> toJson() { |
12564 var _json = new core.Map(); | 12564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12565 if (banDurationSeconds != null) { | 12565 if (banDurationSeconds != null) { |
12566 _json["banDurationSeconds"] = banDurationSeconds; | 12566 _json["banDurationSeconds"] = banDurationSeconds; |
12567 } | 12567 } |
12568 if (bannedUserDetails != null) { | 12568 if (bannedUserDetails != null) { |
12569 _json["bannedUserDetails"] = (bannedUserDetails).toJson(); | 12569 _json["bannedUserDetails"] = (bannedUserDetails).toJson(); |
12570 } | 12570 } |
12571 if (liveChatId != null) { | 12571 if (liveChatId != null) { |
12572 _json["liveChatId"] = liveChatId; | 12572 _json["liveChatId"] = liveChatId; |
12573 } | 12573 } |
12574 if (type != null) { | 12574 if (type != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
12600 amountMicros = _json["amountMicros"]; | 12600 amountMicros = _json["amountMicros"]; |
12601 } | 12601 } |
12602 if (_json.containsKey("currency")) { | 12602 if (_json.containsKey("currency")) { |
12603 currency = _json["currency"]; | 12603 currency = _json["currency"]; |
12604 } | 12604 } |
12605 if (_json.containsKey("userComment")) { | 12605 if (_json.containsKey("userComment")) { |
12606 userComment = _json["userComment"]; | 12606 userComment = _json["userComment"]; |
12607 } | 12607 } |
12608 } | 12608 } |
12609 | 12609 |
12610 core.Map toJson() { | 12610 core.Map<core.String, core.Object> toJson() { |
12611 var _json = new core.Map(); | 12611 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12612 if (amountDisplayString != null) { | 12612 if (amountDisplayString != null) { |
12613 _json["amountDisplayString"] = amountDisplayString; | 12613 _json["amountDisplayString"] = amountDisplayString; |
12614 } | 12614 } |
12615 if (amountMicros != null) { | 12615 if (amountMicros != null) { |
12616 _json["amountMicros"] = amountMicros; | 12616 _json["amountMicros"] = amountMicros; |
12617 } | 12617 } |
12618 if (currency != null) { | 12618 if (currency != null) { |
12619 _json["currency"] = currency; | 12619 _json["currency"] = currency; |
12620 } | 12620 } |
12621 if (userComment != null) { | 12621 if (userComment != null) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12659 id = _json["id"]; | 12659 id = _json["id"]; |
12660 } | 12660 } |
12661 if (_json.containsKey("kind")) { | 12661 if (_json.containsKey("kind")) { |
12662 kind = _json["kind"]; | 12662 kind = _json["kind"]; |
12663 } | 12663 } |
12664 if (_json.containsKey("snippet")) { | 12664 if (_json.containsKey("snippet")) { |
12665 snippet = new LiveChatMessageSnippet.fromJson(_json["snippet"]); | 12665 snippet = new LiveChatMessageSnippet.fromJson(_json["snippet"]); |
12666 } | 12666 } |
12667 } | 12667 } |
12668 | 12668 |
12669 core.Map toJson() { | 12669 core.Map<core.String, core.Object> toJson() { |
12670 var _json = new core.Map(); | 12670 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12671 if (authorDetails != null) { | 12671 if (authorDetails != null) { |
12672 _json["authorDetails"] = (authorDetails).toJson(); | 12672 _json["authorDetails"] = (authorDetails).toJson(); |
12673 } | 12673 } |
12674 if (etag != null) { | 12674 if (etag != null) { |
12675 _json["etag"] = etag; | 12675 _json["etag"] = etag; |
12676 } | 12676 } |
12677 if (id != null) { | 12677 if (id != null) { |
12678 _json["id"] = id; | 12678 _json["id"] = id; |
12679 } | 12679 } |
12680 if (kind != null) { | 12680 if (kind != null) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12727 isChatSponsor = _json["isChatSponsor"]; | 12727 isChatSponsor = _json["isChatSponsor"]; |
12728 } | 12728 } |
12729 if (_json.containsKey("isVerified")) { | 12729 if (_json.containsKey("isVerified")) { |
12730 isVerified = _json["isVerified"]; | 12730 isVerified = _json["isVerified"]; |
12731 } | 12731 } |
12732 if (_json.containsKey("profileImageUrl")) { | 12732 if (_json.containsKey("profileImageUrl")) { |
12733 profileImageUrl = _json["profileImageUrl"]; | 12733 profileImageUrl = _json["profileImageUrl"]; |
12734 } | 12734 } |
12735 } | 12735 } |
12736 | 12736 |
12737 core.Map toJson() { | 12737 core.Map<core.String, core.Object> toJson() { |
12738 var _json = new core.Map(); | 12738 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12739 if (channelId != null) { | 12739 if (channelId != null) { |
12740 _json["channelId"] = channelId; | 12740 _json["channelId"] = channelId; |
12741 } | 12741 } |
12742 if (channelUrl != null) { | 12742 if (channelUrl != null) { |
12743 _json["channelUrl"] = channelUrl; | 12743 _json["channelUrl"] = channelUrl; |
12744 } | 12744 } |
12745 if (displayName != null) { | 12745 if (displayName != null) { |
12746 _json["displayName"] = displayName; | 12746 _json["displayName"] = displayName; |
12747 } | 12747 } |
12748 if (isChatModerator != null) { | 12748 if (isChatModerator != null) { |
(...skipping 19 matching lines...) Expand all Loading... |
12768 core.String deletedMessageId; | 12768 core.String deletedMessageId; |
12769 | 12769 |
12770 LiveChatMessageDeletedDetails(); | 12770 LiveChatMessageDeletedDetails(); |
12771 | 12771 |
12772 LiveChatMessageDeletedDetails.fromJson(core.Map _json) { | 12772 LiveChatMessageDeletedDetails.fromJson(core.Map _json) { |
12773 if (_json.containsKey("deletedMessageId")) { | 12773 if (_json.containsKey("deletedMessageId")) { |
12774 deletedMessageId = _json["deletedMessageId"]; | 12774 deletedMessageId = _json["deletedMessageId"]; |
12775 } | 12775 } |
12776 } | 12776 } |
12777 | 12777 |
12778 core.Map toJson() { | 12778 core.Map<core.String, core.Object> toJson() { |
12779 var _json = new core.Map(); | 12779 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12780 if (deletedMessageId != null) { | 12780 if (deletedMessageId != null) { |
12781 _json["deletedMessageId"] = deletedMessageId; | 12781 _json["deletedMessageId"] = deletedMessageId; |
12782 } | 12782 } |
12783 return _json; | 12783 return _json; |
12784 } | 12784 } |
12785 } | 12785 } |
12786 | 12786 |
12787 class LiveChatMessageListResponse { | 12787 class LiveChatMessageListResponse { |
12788 /** Etag of this resource. */ | 12788 /** Etag of this resource. */ |
12789 core.String etag; | 12789 core.String etag; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12841 pollingIntervalMillis = _json["pollingIntervalMillis"]; | 12841 pollingIntervalMillis = _json["pollingIntervalMillis"]; |
12842 } | 12842 } |
12843 if (_json.containsKey("tokenPagination")) { | 12843 if (_json.containsKey("tokenPagination")) { |
12844 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 12844 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
12845 } | 12845 } |
12846 if (_json.containsKey("visitorId")) { | 12846 if (_json.containsKey("visitorId")) { |
12847 visitorId = _json["visitorId"]; | 12847 visitorId = _json["visitorId"]; |
12848 } | 12848 } |
12849 } | 12849 } |
12850 | 12850 |
12851 core.Map toJson() { | 12851 core.Map<core.String, core.Object> toJson() { |
12852 var _json = new core.Map(); | 12852 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12853 if (etag != null) { | 12853 if (etag != null) { |
12854 _json["etag"] = etag; | 12854 _json["etag"] = etag; |
12855 } | 12855 } |
12856 if (eventId != null) { | 12856 if (eventId != null) { |
12857 _json["eventId"] = eventId; | 12857 _json["eventId"] = eventId; |
12858 } | 12858 } |
12859 if (items != null) { | 12859 if (items != null) { |
12860 _json["items"] = items.map((value) => (value).toJson()).toList(); | 12860 _json["items"] = items.map((value) => (value).toJson()).toList(); |
12861 } | 12861 } |
12862 if (kind != null) { | 12862 if (kind != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
12888 core.String retractedMessageId; | 12888 core.String retractedMessageId; |
12889 | 12889 |
12890 LiveChatMessageRetractedDetails(); | 12890 LiveChatMessageRetractedDetails(); |
12891 | 12891 |
12892 LiveChatMessageRetractedDetails.fromJson(core.Map _json) { | 12892 LiveChatMessageRetractedDetails.fromJson(core.Map _json) { |
12893 if (_json.containsKey("retractedMessageId")) { | 12893 if (_json.containsKey("retractedMessageId")) { |
12894 retractedMessageId = _json["retractedMessageId"]; | 12894 retractedMessageId = _json["retractedMessageId"]; |
12895 } | 12895 } |
12896 } | 12896 } |
12897 | 12897 |
12898 core.Map toJson() { | 12898 core.Map<core.String, core.Object> toJson() { |
12899 var _json = new core.Map(); | 12899 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
12900 if (retractedMessageId != null) { | 12900 if (retractedMessageId != null) { |
12901 _json["retractedMessageId"] = retractedMessageId; | 12901 _json["retractedMessageId"] = retractedMessageId; |
12902 } | 12902 } |
12903 return _json; | 12903 return _json; |
12904 } | 12904 } |
12905 } | 12905 } |
12906 | 12906 |
12907 class LiveChatMessageSnippet { | 12907 class LiveChatMessageSnippet { |
12908 /** | 12908 /** |
12909 * The ID of the user that authored this message, this field is not always | 12909 * The ID of the user that authored this message, this field is not always |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13021 textMessageDetails = new LiveChatTextMessageDetails.fromJson(_json["textMe
ssageDetails"]); | 13021 textMessageDetails = new LiveChatTextMessageDetails.fromJson(_json["textMe
ssageDetails"]); |
13022 } | 13022 } |
13023 if (_json.containsKey("type")) { | 13023 if (_json.containsKey("type")) { |
13024 type = _json["type"]; | 13024 type = _json["type"]; |
13025 } | 13025 } |
13026 if (_json.containsKey("userBannedDetails")) { | 13026 if (_json.containsKey("userBannedDetails")) { |
13027 userBannedDetails = new LiveChatUserBannedMessageDetails.fromJson(_json["u
serBannedDetails"]); | 13027 userBannedDetails = new LiveChatUserBannedMessageDetails.fromJson(_json["u
serBannedDetails"]); |
13028 } | 13028 } |
13029 } | 13029 } |
13030 | 13030 |
13031 core.Map toJson() { | 13031 core.Map<core.String, core.Object> toJson() { |
13032 var _json = new core.Map(); | 13032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13033 if (authorChannelId != null) { | 13033 if (authorChannelId != null) { |
13034 _json["authorChannelId"] = authorChannelId; | 13034 _json["authorChannelId"] = authorChannelId; |
13035 } | 13035 } |
13036 if (displayMessage != null) { | 13036 if (displayMessage != null) { |
13037 _json["displayMessage"] = displayMessage; | 13037 _json["displayMessage"] = displayMessage; |
13038 } | 13038 } |
13039 if (fanFundingEventDetails != null) { | 13039 if (fanFundingEventDetails != null) { |
13040 _json["fanFundingEventDetails"] = (fanFundingEventDetails).toJson(); | 13040 _json["fanFundingEventDetails"] = (fanFundingEventDetails).toJson(); |
13041 } | 13041 } |
13042 if (hasDisplayContent != null) { | 13042 if (hasDisplayContent != null) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13110 id = _json["id"]; | 13110 id = _json["id"]; |
13111 } | 13111 } |
13112 if (_json.containsKey("kind")) { | 13112 if (_json.containsKey("kind")) { |
13113 kind = _json["kind"]; | 13113 kind = _json["kind"]; |
13114 } | 13114 } |
13115 if (_json.containsKey("snippet")) { | 13115 if (_json.containsKey("snippet")) { |
13116 snippet = new LiveChatModeratorSnippet.fromJson(_json["snippet"]); | 13116 snippet = new LiveChatModeratorSnippet.fromJson(_json["snippet"]); |
13117 } | 13117 } |
13118 } | 13118 } |
13119 | 13119 |
13120 core.Map toJson() { | 13120 core.Map<core.String, core.Object> toJson() { |
13121 var _json = new core.Map(); | 13121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13122 if (etag != null) { | 13122 if (etag != null) { |
13123 _json["etag"] = etag; | 13123 _json["etag"] = etag; |
13124 } | 13124 } |
13125 if (id != null) { | 13125 if (id != null) { |
13126 _json["id"] = id; | 13126 _json["id"] = id; |
13127 } | 13127 } |
13128 if (kind != null) { | 13128 if (kind != null) { |
13129 _json["kind"] = kind; | 13129 _json["kind"] = kind; |
13130 } | 13130 } |
13131 if (snippet != null) { | 13131 if (snippet != null) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13187 prevPageToken = _json["prevPageToken"]; | 13187 prevPageToken = _json["prevPageToken"]; |
13188 } | 13188 } |
13189 if (_json.containsKey("tokenPagination")) { | 13189 if (_json.containsKey("tokenPagination")) { |
13190 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 13190 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
13191 } | 13191 } |
13192 if (_json.containsKey("visitorId")) { | 13192 if (_json.containsKey("visitorId")) { |
13193 visitorId = _json["visitorId"]; | 13193 visitorId = _json["visitorId"]; |
13194 } | 13194 } |
13195 } | 13195 } |
13196 | 13196 |
13197 core.Map toJson() { | 13197 core.Map<core.String, core.Object> toJson() { |
13198 var _json = new core.Map(); | 13198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13199 if (etag != null) { | 13199 if (etag != null) { |
13200 _json["etag"] = etag; | 13200 _json["etag"] = etag; |
13201 } | 13201 } |
13202 if (eventId != null) { | 13202 if (eventId != null) { |
13203 _json["eventId"] = eventId; | 13203 _json["eventId"] = eventId; |
13204 } | 13204 } |
13205 if (items != null) { | 13205 if (items != null) { |
13206 _json["items"] = items.map((value) => (value).toJson()).toList(); | 13206 _json["items"] = items.map((value) => (value).toJson()).toList(); |
13207 } | 13207 } |
13208 if (kind != null) { | 13208 if (kind != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
13237 | 13237 |
13238 LiveChatModeratorSnippet.fromJson(core.Map _json) { | 13238 LiveChatModeratorSnippet.fromJson(core.Map _json) { |
13239 if (_json.containsKey("liveChatId")) { | 13239 if (_json.containsKey("liveChatId")) { |
13240 liveChatId = _json["liveChatId"]; | 13240 liveChatId = _json["liveChatId"]; |
13241 } | 13241 } |
13242 if (_json.containsKey("moderatorDetails")) { | 13242 if (_json.containsKey("moderatorDetails")) { |
13243 moderatorDetails = new ChannelProfileDetails.fromJson(_json["moderatorDeta
ils"]); | 13243 moderatorDetails = new ChannelProfileDetails.fromJson(_json["moderatorDeta
ils"]); |
13244 } | 13244 } |
13245 } | 13245 } |
13246 | 13246 |
13247 core.Map toJson() { | 13247 core.Map<core.String, core.Object> toJson() { |
13248 var _json = new core.Map(); | 13248 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13249 if (liveChatId != null) { | 13249 if (liveChatId != null) { |
13250 _json["liveChatId"] = liveChatId; | 13250 _json["liveChatId"] = liveChatId; |
13251 } | 13251 } |
13252 if (moderatorDetails != null) { | 13252 if (moderatorDetails != null) { |
13253 _json["moderatorDetails"] = (moderatorDetails).toJson(); | 13253 _json["moderatorDetails"] = (moderatorDetails).toJson(); |
13254 } | 13254 } |
13255 return _json; | 13255 return _json; |
13256 } | 13256 } |
13257 } | 13257 } |
13258 | 13258 |
13259 class LiveChatPollClosedDetails { | 13259 class LiveChatPollClosedDetails { |
13260 /** The id of the poll that was closed. */ | 13260 /** The id of the poll that was closed. */ |
13261 core.String pollId; | 13261 core.String pollId; |
13262 | 13262 |
13263 LiveChatPollClosedDetails(); | 13263 LiveChatPollClosedDetails(); |
13264 | 13264 |
13265 LiveChatPollClosedDetails.fromJson(core.Map _json) { | 13265 LiveChatPollClosedDetails.fromJson(core.Map _json) { |
13266 if (_json.containsKey("pollId")) { | 13266 if (_json.containsKey("pollId")) { |
13267 pollId = _json["pollId"]; | 13267 pollId = _json["pollId"]; |
13268 } | 13268 } |
13269 } | 13269 } |
13270 | 13270 |
13271 core.Map toJson() { | 13271 core.Map<core.String, core.Object> toJson() { |
13272 var _json = new core.Map(); | 13272 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13273 if (pollId != null) { | 13273 if (pollId != null) { |
13274 _json["pollId"] = pollId; | 13274 _json["pollId"] = pollId; |
13275 } | 13275 } |
13276 return _json; | 13276 return _json; |
13277 } | 13277 } |
13278 } | 13278 } |
13279 | 13279 |
13280 class LiveChatPollEditedDetails { | 13280 class LiveChatPollEditedDetails { |
13281 core.String id; | 13281 core.String id; |
13282 core.List<LiveChatPollItem> items; | 13282 core.List<LiveChatPollItem> items; |
13283 core.String prompt; | 13283 core.String prompt; |
13284 | 13284 |
13285 LiveChatPollEditedDetails(); | 13285 LiveChatPollEditedDetails(); |
13286 | 13286 |
13287 LiveChatPollEditedDetails.fromJson(core.Map _json) { | 13287 LiveChatPollEditedDetails.fromJson(core.Map _json) { |
13288 if (_json.containsKey("id")) { | 13288 if (_json.containsKey("id")) { |
13289 id = _json["id"]; | 13289 id = _json["id"]; |
13290 } | 13290 } |
13291 if (_json.containsKey("items")) { | 13291 if (_json.containsKey("items")) { |
13292 items = _json["items"].map((value) => new LiveChatPollItem.fromJson(value)
).toList(); | 13292 items = _json["items"].map((value) => new LiveChatPollItem.fromJson(value)
).toList(); |
13293 } | 13293 } |
13294 if (_json.containsKey("prompt")) { | 13294 if (_json.containsKey("prompt")) { |
13295 prompt = _json["prompt"]; | 13295 prompt = _json["prompt"]; |
13296 } | 13296 } |
13297 } | 13297 } |
13298 | 13298 |
13299 core.Map toJson() { | 13299 core.Map<core.String, core.Object> toJson() { |
13300 var _json = new core.Map(); | 13300 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13301 if (id != null) { | 13301 if (id != null) { |
13302 _json["id"] = id; | 13302 _json["id"] = id; |
13303 } | 13303 } |
13304 if (items != null) { | 13304 if (items != null) { |
13305 _json["items"] = items.map((value) => (value).toJson()).toList(); | 13305 _json["items"] = items.map((value) => (value).toJson()).toList(); |
13306 } | 13306 } |
13307 if (prompt != null) { | 13307 if (prompt != null) { |
13308 _json["prompt"] = prompt; | 13308 _json["prompt"] = prompt; |
13309 } | 13309 } |
13310 return _json; | 13310 return _json; |
13311 } | 13311 } |
13312 } | 13312 } |
13313 | 13313 |
13314 class LiveChatPollItem { | 13314 class LiveChatPollItem { |
13315 /** Plain text description of the item. */ | 13315 /** Plain text description of the item. */ |
13316 core.String description; | 13316 core.String description; |
13317 core.String itemId; | 13317 core.String itemId; |
13318 | 13318 |
13319 LiveChatPollItem(); | 13319 LiveChatPollItem(); |
13320 | 13320 |
13321 LiveChatPollItem.fromJson(core.Map _json) { | 13321 LiveChatPollItem.fromJson(core.Map _json) { |
13322 if (_json.containsKey("description")) { | 13322 if (_json.containsKey("description")) { |
13323 description = _json["description"]; | 13323 description = _json["description"]; |
13324 } | 13324 } |
13325 if (_json.containsKey("itemId")) { | 13325 if (_json.containsKey("itemId")) { |
13326 itemId = _json["itemId"]; | 13326 itemId = _json["itemId"]; |
13327 } | 13327 } |
13328 } | 13328 } |
13329 | 13329 |
13330 core.Map toJson() { | 13330 core.Map<core.String, core.Object> toJson() { |
13331 var _json = new core.Map(); | 13331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13332 if (description != null) { | 13332 if (description != null) { |
13333 _json["description"] = description; | 13333 _json["description"] = description; |
13334 } | 13334 } |
13335 if (itemId != null) { | 13335 if (itemId != null) { |
13336 _json["itemId"] = itemId; | 13336 _json["itemId"] = itemId; |
13337 } | 13337 } |
13338 return _json; | 13338 return _json; |
13339 } | 13339 } |
13340 } | 13340 } |
13341 | 13341 |
13342 class LiveChatPollOpenedDetails { | 13342 class LiveChatPollOpenedDetails { |
13343 core.String id; | 13343 core.String id; |
13344 core.List<LiveChatPollItem> items; | 13344 core.List<LiveChatPollItem> items; |
13345 core.String prompt; | 13345 core.String prompt; |
13346 | 13346 |
13347 LiveChatPollOpenedDetails(); | 13347 LiveChatPollOpenedDetails(); |
13348 | 13348 |
13349 LiveChatPollOpenedDetails.fromJson(core.Map _json) { | 13349 LiveChatPollOpenedDetails.fromJson(core.Map _json) { |
13350 if (_json.containsKey("id")) { | 13350 if (_json.containsKey("id")) { |
13351 id = _json["id"]; | 13351 id = _json["id"]; |
13352 } | 13352 } |
13353 if (_json.containsKey("items")) { | 13353 if (_json.containsKey("items")) { |
13354 items = _json["items"].map((value) => new LiveChatPollItem.fromJson(value)
).toList(); | 13354 items = _json["items"].map((value) => new LiveChatPollItem.fromJson(value)
).toList(); |
13355 } | 13355 } |
13356 if (_json.containsKey("prompt")) { | 13356 if (_json.containsKey("prompt")) { |
13357 prompt = _json["prompt"]; | 13357 prompt = _json["prompt"]; |
13358 } | 13358 } |
13359 } | 13359 } |
13360 | 13360 |
13361 core.Map toJson() { | 13361 core.Map<core.String, core.Object> toJson() { |
13362 var _json = new core.Map(); | 13362 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13363 if (id != null) { | 13363 if (id != null) { |
13364 _json["id"] = id; | 13364 _json["id"] = id; |
13365 } | 13365 } |
13366 if (items != null) { | 13366 if (items != null) { |
13367 _json["items"] = items.map((value) => (value).toJson()).toList(); | 13367 _json["items"] = items.map((value) => (value).toJson()).toList(); |
13368 } | 13368 } |
13369 if (prompt != null) { | 13369 if (prompt != null) { |
13370 _json["prompt"] = prompt; | 13370 _json["prompt"] = prompt; |
13371 } | 13371 } |
13372 return _json; | 13372 return _json; |
(...skipping 10 matching lines...) Expand all Loading... |
13383 | 13383 |
13384 LiveChatPollVotedDetails.fromJson(core.Map _json) { | 13384 LiveChatPollVotedDetails.fromJson(core.Map _json) { |
13385 if (_json.containsKey("itemId")) { | 13385 if (_json.containsKey("itemId")) { |
13386 itemId = _json["itemId"]; | 13386 itemId = _json["itemId"]; |
13387 } | 13387 } |
13388 if (_json.containsKey("pollId")) { | 13388 if (_json.containsKey("pollId")) { |
13389 pollId = _json["pollId"]; | 13389 pollId = _json["pollId"]; |
13390 } | 13390 } |
13391 } | 13391 } |
13392 | 13392 |
13393 core.Map toJson() { | 13393 core.Map<core.String, core.Object> toJson() { |
13394 var _json = new core.Map(); | 13394 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13395 if (itemId != null) { | 13395 if (itemId != null) { |
13396 _json["itemId"] = itemId; | 13396 _json["itemId"] = itemId; |
13397 } | 13397 } |
13398 if (pollId != null) { | 13398 if (pollId != null) { |
13399 _json["pollId"] = pollId; | 13399 _json["pollId"] = pollId; |
13400 } | 13400 } |
13401 return _json; | 13401 return _json; |
13402 } | 13402 } |
13403 } | 13403 } |
13404 | 13404 |
(...skipping 27 matching lines...) Expand all Loading... |
13432 currency = _json["currency"]; | 13432 currency = _json["currency"]; |
13433 } | 13433 } |
13434 if (_json.containsKey("tier")) { | 13434 if (_json.containsKey("tier")) { |
13435 tier = _json["tier"]; | 13435 tier = _json["tier"]; |
13436 } | 13436 } |
13437 if (_json.containsKey("userComment")) { | 13437 if (_json.containsKey("userComment")) { |
13438 userComment = _json["userComment"]; | 13438 userComment = _json["userComment"]; |
13439 } | 13439 } |
13440 } | 13440 } |
13441 | 13441 |
13442 core.Map toJson() { | 13442 core.Map<core.String, core.Object> toJson() { |
13443 var _json = new core.Map(); | 13443 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13444 if (amountDisplayString != null) { | 13444 if (amountDisplayString != null) { |
13445 _json["amountDisplayString"] = amountDisplayString; | 13445 _json["amountDisplayString"] = amountDisplayString; |
13446 } | 13446 } |
13447 if (amountMicros != null) { | 13447 if (amountMicros != null) { |
13448 _json["amountMicros"] = amountMicros; | 13448 _json["amountMicros"] = amountMicros; |
13449 } | 13449 } |
13450 if (currency != null) { | 13450 if (currency != null) { |
13451 _json["currency"] = currency; | 13451 _json["currency"] = currency; |
13452 } | 13452 } |
13453 if (tier != null) { | 13453 if (tier != null) { |
(...skipping 11 matching lines...) Expand all Loading... |
13465 core.String messageText; | 13465 core.String messageText; |
13466 | 13466 |
13467 LiveChatTextMessageDetails(); | 13467 LiveChatTextMessageDetails(); |
13468 | 13468 |
13469 LiveChatTextMessageDetails.fromJson(core.Map _json) { | 13469 LiveChatTextMessageDetails.fromJson(core.Map _json) { |
13470 if (_json.containsKey("messageText")) { | 13470 if (_json.containsKey("messageText")) { |
13471 messageText = _json["messageText"]; | 13471 messageText = _json["messageText"]; |
13472 } | 13472 } |
13473 } | 13473 } |
13474 | 13474 |
13475 core.Map toJson() { | 13475 core.Map<core.String, core.Object> toJson() { |
13476 var _json = new core.Map(); | 13476 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13477 if (messageText != null) { | 13477 if (messageText != null) { |
13478 _json["messageText"] = messageText; | 13478 _json["messageText"] = messageText; |
13479 } | 13479 } |
13480 return _json; | 13480 return _json; |
13481 } | 13481 } |
13482 } | 13482 } |
13483 | 13483 |
13484 class LiveChatUserBannedMessageDetails { | 13484 class LiveChatUserBannedMessageDetails { |
13485 /** | 13485 /** |
13486 * The duration of the ban. This property is only present if the banType is | 13486 * The duration of the ban. This property is only present if the banType is |
(...skipping 17 matching lines...) Expand all Loading... |
13504 banDurationSeconds = _json["banDurationSeconds"]; | 13504 banDurationSeconds = _json["banDurationSeconds"]; |
13505 } | 13505 } |
13506 if (_json.containsKey("banType")) { | 13506 if (_json.containsKey("banType")) { |
13507 banType = _json["banType"]; | 13507 banType = _json["banType"]; |
13508 } | 13508 } |
13509 if (_json.containsKey("bannedUserDetails")) { | 13509 if (_json.containsKey("bannedUserDetails")) { |
13510 bannedUserDetails = new ChannelProfileDetails.fromJson(_json["bannedUserDe
tails"]); | 13510 bannedUserDetails = new ChannelProfileDetails.fromJson(_json["bannedUserDe
tails"]); |
13511 } | 13511 } |
13512 } | 13512 } |
13513 | 13513 |
13514 core.Map toJson() { | 13514 core.Map<core.String, core.Object> toJson() { |
13515 var _json = new core.Map(); | 13515 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13516 if (banDurationSeconds != null) { | 13516 if (banDurationSeconds != null) { |
13517 _json["banDurationSeconds"] = banDurationSeconds; | 13517 _json["banDurationSeconds"] = banDurationSeconds; |
13518 } | 13518 } |
13519 if (banType != null) { | 13519 if (banType != null) { |
13520 _json["banType"] = banType; | 13520 _json["banType"] = banType; |
13521 } | 13521 } |
13522 if (bannedUserDetails != null) { | 13522 if (bannedUserDetails != null) { |
13523 _json["bannedUserDetails"] = (bannedUserDetails).toJson(); | 13523 _json["bannedUserDetails"] = (bannedUserDetails).toJson(); |
13524 } | 13524 } |
13525 return _json; | 13525 return _json; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13575 kind = _json["kind"]; | 13575 kind = _json["kind"]; |
13576 } | 13576 } |
13577 if (_json.containsKey("snippet")) { | 13577 if (_json.containsKey("snippet")) { |
13578 snippet = new LiveStreamSnippet.fromJson(_json["snippet"]); | 13578 snippet = new LiveStreamSnippet.fromJson(_json["snippet"]); |
13579 } | 13579 } |
13580 if (_json.containsKey("status")) { | 13580 if (_json.containsKey("status")) { |
13581 status = new LiveStreamStatus.fromJson(_json["status"]); | 13581 status = new LiveStreamStatus.fromJson(_json["status"]); |
13582 } | 13582 } |
13583 } | 13583 } |
13584 | 13584 |
13585 core.Map toJson() { | 13585 core.Map<core.String, core.Object> toJson() { |
13586 var _json = new core.Map(); | 13586 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13587 if (cdn != null) { | 13587 if (cdn != null) { |
13588 _json["cdn"] = (cdn).toJson(); | 13588 _json["cdn"] = (cdn).toJson(); |
13589 } | 13589 } |
13590 if (contentDetails != null) { | 13590 if (contentDetails != null) { |
13591 _json["contentDetails"] = (contentDetails).toJson(); | 13591 _json["contentDetails"] = (contentDetails).toJson(); |
13592 } | 13592 } |
13593 if (etag != null) { | 13593 if (etag != null) { |
13594 _json["etag"] = etag; | 13594 _json["etag"] = etag; |
13595 } | 13595 } |
13596 if (id != null) { | 13596 if (id != null) { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13671 reason = _json["reason"]; | 13671 reason = _json["reason"]; |
13672 } | 13672 } |
13673 if (_json.containsKey("severity")) { | 13673 if (_json.containsKey("severity")) { |
13674 severity = _json["severity"]; | 13674 severity = _json["severity"]; |
13675 } | 13675 } |
13676 if (_json.containsKey("type")) { | 13676 if (_json.containsKey("type")) { |
13677 type = _json["type"]; | 13677 type = _json["type"]; |
13678 } | 13678 } |
13679 } | 13679 } |
13680 | 13680 |
13681 core.Map toJson() { | 13681 core.Map<core.String, core.Object> toJson() { |
13682 var _json = new core.Map(); | 13682 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13683 if (description != null) { | 13683 if (description != null) { |
13684 _json["description"] = description; | 13684 _json["description"] = description; |
13685 } | 13685 } |
13686 if (reason != null) { | 13686 if (reason != null) { |
13687 _json["reason"] = reason; | 13687 _json["reason"] = reason; |
13688 } | 13688 } |
13689 if (severity != null) { | 13689 if (severity != null) { |
13690 _json["severity"] = severity; | 13690 _json["severity"] = severity; |
13691 } | 13691 } |
13692 if (type != null) { | 13692 if (type != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
13723 | 13723 |
13724 LiveStreamContentDetails.fromJson(core.Map _json) { | 13724 LiveStreamContentDetails.fromJson(core.Map _json) { |
13725 if (_json.containsKey("closedCaptionsIngestionUrl")) { | 13725 if (_json.containsKey("closedCaptionsIngestionUrl")) { |
13726 closedCaptionsIngestionUrl = _json["closedCaptionsIngestionUrl"]; | 13726 closedCaptionsIngestionUrl = _json["closedCaptionsIngestionUrl"]; |
13727 } | 13727 } |
13728 if (_json.containsKey("isReusable")) { | 13728 if (_json.containsKey("isReusable")) { |
13729 isReusable = _json["isReusable"]; | 13729 isReusable = _json["isReusable"]; |
13730 } | 13730 } |
13731 } | 13731 } |
13732 | 13732 |
13733 core.Map toJson() { | 13733 core.Map<core.String, core.Object> toJson() { |
13734 var _json = new core.Map(); | 13734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13735 if (closedCaptionsIngestionUrl != null) { | 13735 if (closedCaptionsIngestionUrl != null) { |
13736 _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; | 13736 _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; |
13737 } | 13737 } |
13738 if (isReusable != null) { | 13738 if (isReusable != null) { |
13739 _json["isReusable"] = isReusable; | 13739 _json["isReusable"] = isReusable; |
13740 } | 13740 } |
13741 return _json; | 13741 return _json; |
13742 } | 13742 } |
13743 } | 13743 } |
13744 | 13744 |
(...skipping 20 matching lines...) Expand all Loading... |
13765 configurationIssues = _json["configurationIssues"].map((value) => new Live
StreamConfigurationIssue.fromJson(value)).toList(); | 13765 configurationIssues = _json["configurationIssues"].map((value) => new Live
StreamConfigurationIssue.fromJson(value)).toList(); |
13766 } | 13766 } |
13767 if (_json.containsKey("lastUpdateTimeSeconds")) { | 13767 if (_json.containsKey("lastUpdateTimeSeconds")) { |
13768 lastUpdateTimeSeconds = _json["lastUpdateTimeSeconds"]; | 13768 lastUpdateTimeSeconds = _json["lastUpdateTimeSeconds"]; |
13769 } | 13769 } |
13770 if (_json.containsKey("status")) { | 13770 if (_json.containsKey("status")) { |
13771 status = _json["status"]; | 13771 status = _json["status"]; |
13772 } | 13772 } |
13773 } | 13773 } |
13774 | 13774 |
13775 core.Map toJson() { | 13775 core.Map<core.String, core.Object> toJson() { |
13776 var _json = new core.Map(); | 13776 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13777 if (configurationIssues != null) { | 13777 if (configurationIssues != null) { |
13778 _json["configurationIssues"] = configurationIssues.map((value) => (value).
toJson()).toList(); | 13778 _json["configurationIssues"] = configurationIssues.map((value) => (value).
toJson()).toList(); |
13779 } | 13779 } |
13780 if (lastUpdateTimeSeconds != null) { | 13780 if (lastUpdateTimeSeconds != null) { |
13781 _json["lastUpdateTimeSeconds"] = lastUpdateTimeSeconds; | 13781 _json["lastUpdateTimeSeconds"] = lastUpdateTimeSeconds; |
13782 } | 13782 } |
13783 if (status != null) { | 13783 if (status != null) { |
13784 _json["status"] = status; | 13784 _json["status"] = status; |
13785 } | 13785 } |
13786 return _json; | 13786 return _json; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13839 prevPageToken = _json["prevPageToken"]; | 13839 prevPageToken = _json["prevPageToken"]; |
13840 } | 13840 } |
13841 if (_json.containsKey("tokenPagination")) { | 13841 if (_json.containsKey("tokenPagination")) { |
13842 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 13842 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
13843 } | 13843 } |
13844 if (_json.containsKey("visitorId")) { | 13844 if (_json.containsKey("visitorId")) { |
13845 visitorId = _json["visitorId"]; | 13845 visitorId = _json["visitorId"]; |
13846 } | 13846 } |
13847 } | 13847 } |
13848 | 13848 |
13849 core.Map toJson() { | 13849 core.Map<core.String, core.Object> toJson() { |
13850 var _json = new core.Map(); | 13850 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13851 if (etag != null) { | 13851 if (etag != null) { |
13852 _json["etag"] = etag; | 13852 _json["etag"] = etag; |
13853 } | 13853 } |
13854 if (eventId != null) { | 13854 if (eventId != null) { |
13855 _json["eventId"] = eventId; | 13855 _json["eventId"] = eventId; |
13856 } | 13856 } |
13857 if (items != null) { | 13857 if (items != null) { |
13858 _json["items"] = items.map((value) => (value).toJson()).toList(); | 13858 _json["items"] = items.map((value) => (value).toJson()).toList(); |
13859 } | 13859 } |
13860 if (kind != null) { | 13860 if (kind != null) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13913 isDefaultStream = _json["isDefaultStream"]; | 13913 isDefaultStream = _json["isDefaultStream"]; |
13914 } | 13914 } |
13915 if (_json.containsKey("publishedAt")) { | 13915 if (_json.containsKey("publishedAt")) { |
13916 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 13916 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
13917 } | 13917 } |
13918 if (_json.containsKey("title")) { | 13918 if (_json.containsKey("title")) { |
13919 title = _json["title"]; | 13919 title = _json["title"]; |
13920 } | 13920 } |
13921 } | 13921 } |
13922 | 13922 |
13923 core.Map toJson() { | 13923 core.Map<core.String, core.Object> toJson() { |
13924 var _json = new core.Map(); | 13924 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13925 if (channelId != null) { | 13925 if (channelId != null) { |
13926 _json["channelId"] = channelId; | 13926 _json["channelId"] = channelId; |
13927 } | 13927 } |
13928 if (description != null) { | 13928 if (description != null) { |
13929 _json["description"] = description; | 13929 _json["description"] = description; |
13930 } | 13930 } |
13931 if (isDefaultStream != null) { | 13931 if (isDefaultStream != null) { |
13932 _json["isDefaultStream"] = isDefaultStream; | 13932 _json["isDefaultStream"] = isDefaultStream; |
13933 } | 13933 } |
13934 if (publishedAt != null) { | 13934 if (publishedAt != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
13960 | 13960 |
13961 LiveStreamStatus.fromJson(core.Map _json) { | 13961 LiveStreamStatus.fromJson(core.Map _json) { |
13962 if (_json.containsKey("healthStatus")) { | 13962 if (_json.containsKey("healthStatus")) { |
13963 healthStatus = new LiveStreamHealthStatus.fromJson(_json["healthStatus"]); | 13963 healthStatus = new LiveStreamHealthStatus.fromJson(_json["healthStatus"]); |
13964 } | 13964 } |
13965 if (_json.containsKey("streamStatus")) { | 13965 if (_json.containsKey("streamStatus")) { |
13966 streamStatus = _json["streamStatus"]; | 13966 streamStatus = _json["streamStatus"]; |
13967 } | 13967 } |
13968 } | 13968 } |
13969 | 13969 |
13970 core.Map toJson() { | 13970 core.Map<core.String, core.Object> toJson() { |
13971 var _json = new core.Map(); | 13971 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
13972 if (healthStatus != null) { | 13972 if (healthStatus != null) { |
13973 _json["healthStatus"] = (healthStatus).toJson(); | 13973 _json["healthStatus"] = (healthStatus).toJson(); |
13974 } | 13974 } |
13975 if (streamStatus != null) { | 13975 if (streamStatus != null) { |
13976 _json["streamStatus"] = streamStatus; | 13976 _json["streamStatus"] = streamStatus; |
13977 } | 13977 } |
13978 return _json; | 13978 return _json; |
13979 } | 13979 } |
13980 } | 13980 } |
13981 | 13981 |
(...skipping 10 matching lines...) Expand all Loading... |
13992 default_ = _json["default"]; | 13992 default_ = _json["default"]; |
13993 } | 13993 } |
13994 if (_json.containsKey("defaultLanguage")) { | 13994 if (_json.containsKey("defaultLanguage")) { |
13995 defaultLanguage = new LanguageTag.fromJson(_json["defaultLanguage"]); | 13995 defaultLanguage = new LanguageTag.fromJson(_json["defaultLanguage"]); |
13996 } | 13996 } |
13997 if (_json.containsKey("localized")) { | 13997 if (_json.containsKey("localized")) { |
13998 localized = _json["localized"].map((value) => new LocalizedString.fromJson
(value)).toList(); | 13998 localized = _json["localized"].map((value) => new LocalizedString.fromJson
(value)).toList(); |
13999 } | 13999 } |
14000 } | 14000 } |
14001 | 14001 |
14002 core.Map toJson() { | 14002 core.Map<core.String, core.Object> toJson() { |
14003 var _json = new core.Map(); | 14003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14004 if (default_ != null) { | 14004 if (default_ != null) { |
14005 _json["default"] = default_; | 14005 _json["default"] = default_; |
14006 } | 14006 } |
14007 if (defaultLanguage != null) { | 14007 if (defaultLanguage != null) { |
14008 _json["defaultLanguage"] = (defaultLanguage).toJson(); | 14008 _json["defaultLanguage"] = (defaultLanguage).toJson(); |
14009 } | 14009 } |
14010 if (localized != null) { | 14010 if (localized != null) { |
14011 _json["localized"] = localized.map((value) => (value).toJson()).toList(); | 14011 _json["localized"] = localized.map((value) => (value).toJson()).toList(); |
14012 } | 14012 } |
14013 return _json; | 14013 return _json; |
14014 } | 14014 } |
14015 } | 14015 } |
14016 | 14016 |
14017 class LocalizedString { | 14017 class LocalizedString { |
14018 core.String language; | 14018 core.String language; |
14019 core.String value; | 14019 core.String value; |
14020 | 14020 |
14021 LocalizedString(); | 14021 LocalizedString(); |
14022 | 14022 |
14023 LocalizedString.fromJson(core.Map _json) { | 14023 LocalizedString.fromJson(core.Map _json) { |
14024 if (_json.containsKey("language")) { | 14024 if (_json.containsKey("language")) { |
14025 language = _json["language"]; | 14025 language = _json["language"]; |
14026 } | 14026 } |
14027 if (_json.containsKey("value")) { | 14027 if (_json.containsKey("value")) { |
14028 value = _json["value"]; | 14028 value = _json["value"]; |
14029 } | 14029 } |
14030 } | 14030 } |
14031 | 14031 |
14032 core.Map toJson() { | 14032 core.Map<core.String, core.Object> toJson() { |
14033 var _json = new core.Map(); | 14033 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14034 if (language != null) { | 14034 if (language != null) { |
14035 _json["language"] = language; | 14035 _json["language"] = language; |
14036 } | 14036 } |
14037 if (value != null) { | 14037 if (value != null) { |
14038 _json["value"] = value; | 14038 _json["value"] = value; |
14039 } | 14039 } |
14040 return _json; | 14040 return _json; |
14041 } | 14041 } |
14042 } | 14042 } |
14043 | 14043 |
(...skipping 28 matching lines...) Expand all Loading... |
14072 broadcastStreamDelayMs = _json["broadcastStreamDelayMs"]; | 14072 broadcastStreamDelayMs = _json["broadcastStreamDelayMs"]; |
14073 } | 14073 } |
14074 if (_json.containsKey("embedHtml")) { | 14074 if (_json.containsKey("embedHtml")) { |
14075 embedHtml = _json["embedHtml"]; | 14075 embedHtml = _json["embedHtml"]; |
14076 } | 14076 } |
14077 if (_json.containsKey("enableMonitorStream")) { | 14077 if (_json.containsKey("enableMonitorStream")) { |
14078 enableMonitorStream = _json["enableMonitorStream"]; | 14078 enableMonitorStream = _json["enableMonitorStream"]; |
14079 } | 14079 } |
14080 } | 14080 } |
14081 | 14081 |
14082 core.Map toJson() { | 14082 core.Map<core.String, core.Object> toJson() { |
14083 var _json = new core.Map(); | 14083 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14084 if (broadcastStreamDelayMs != null) { | 14084 if (broadcastStreamDelayMs != null) { |
14085 _json["broadcastStreamDelayMs"] = broadcastStreamDelayMs; | 14085 _json["broadcastStreamDelayMs"] = broadcastStreamDelayMs; |
14086 } | 14086 } |
14087 if (embedHtml != null) { | 14087 if (embedHtml != null) { |
14088 _json["embedHtml"] = embedHtml; | 14088 _json["embedHtml"] = embedHtml; |
14089 } | 14089 } |
14090 if (enableMonitorStream != null) { | 14090 if (enableMonitorStream != null) { |
14091 _json["enableMonitorStream"] = enableMonitorStream; | 14091 _json["enableMonitorStream"] = enableMonitorStream; |
14092 } | 14092 } |
14093 return _json; | 14093 return _json; |
(...skipping 14 matching lines...) Expand all Loading... |
14108 | 14108 |
14109 PageInfo.fromJson(core.Map _json) { | 14109 PageInfo.fromJson(core.Map _json) { |
14110 if (_json.containsKey("resultsPerPage")) { | 14110 if (_json.containsKey("resultsPerPage")) { |
14111 resultsPerPage = _json["resultsPerPage"]; | 14111 resultsPerPage = _json["resultsPerPage"]; |
14112 } | 14112 } |
14113 if (_json.containsKey("totalResults")) { | 14113 if (_json.containsKey("totalResults")) { |
14114 totalResults = _json["totalResults"]; | 14114 totalResults = _json["totalResults"]; |
14115 } | 14115 } |
14116 } | 14116 } |
14117 | 14117 |
14118 core.Map toJson() { | 14118 core.Map<core.String, core.Object> toJson() { |
14119 var _json = new core.Map(); | 14119 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14120 if (resultsPerPage != null) { | 14120 if (resultsPerPage != null) { |
14121 _json["resultsPerPage"] = resultsPerPage; | 14121 _json["resultsPerPage"] = resultsPerPage; |
14122 } | 14122 } |
14123 if (totalResults != null) { | 14123 if (totalResults != null) { |
14124 _json["totalResults"] = totalResults; | 14124 _json["totalResults"] = totalResults; |
14125 } | 14125 } |
14126 return _json; | 14126 return _json; |
14127 } | 14127 } |
14128 } | 14128 } |
14129 | 14129 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14185 if (_json.containsKey("etag")) { | 14185 if (_json.containsKey("etag")) { |
14186 etag = _json["etag"]; | 14186 etag = _json["etag"]; |
14187 } | 14187 } |
14188 if (_json.containsKey("id")) { | 14188 if (_json.containsKey("id")) { |
14189 id = _json["id"]; | 14189 id = _json["id"]; |
14190 } | 14190 } |
14191 if (_json.containsKey("kind")) { | 14191 if (_json.containsKey("kind")) { |
14192 kind = _json["kind"]; | 14192 kind = _json["kind"]; |
14193 } | 14193 } |
14194 if (_json.containsKey("localizations")) { | 14194 if (_json.containsKey("localizations")) { |
14195 localizations = commons.mapMap(_json["localizations"], (item) => new Playl
istLocalization.fromJson(item)); | 14195 localizations = commons.mapMap<core.Map<core.String, core.Object>, Playlis
tLocalization>(_json["localizations"], (core.Map<core.String, core.Object> item)
=> new PlaylistLocalization.fromJson(item)); |
14196 } | 14196 } |
14197 if (_json.containsKey("player")) { | 14197 if (_json.containsKey("player")) { |
14198 player = new PlaylistPlayer.fromJson(_json["player"]); | 14198 player = new PlaylistPlayer.fromJson(_json["player"]); |
14199 } | 14199 } |
14200 if (_json.containsKey("snippet")) { | 14200 if (_json.containsKey("snippet")) { |
14201 snippet = new PlaylistSnippet.fromJson(_json["snippet"]); | 14201 snippet = new PlaylistSnippet.fromJson(_json["snippet"]); |
14202 } | 14202 } |
14203 if (_json.containsKey("status")) { | 14203 if (_json.containsKey("status")) { |
14204 status = new PlaylistStatus.fromJson(_json["status"]); | 14204 status = new PlaylistStatus.fromJson(_json["status"]); |
14205 } | 14205 } |
14206 } | 14206 } |
14207 | 14207 |
14208 core.Map toJson() { | 14208 core.Map<core.String, core.Object> toJson() { |
14209 var _json = new core.Map(); | 14209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14210 if (contentDetails != null) { | 14210 if (contentDetails != null) { |
14211 _json["contentDetails"] = (contentDetails).toJson(); | 14211 _json["contentDetails"] = (contentDetails).toJson(); |
14212 } | 14212 } |
14213 if (etag != null) { | 14213 if (etag != null) { |
14214 _json["etag"] = etag; | 14214 _json["etag"] = etag; |
14215 } | 14215 } |
14216 if (id != null) { | 14216 if (id != null) { |
14217 _json["id"] = id; | 14217 _json["id"] = id; |
14218 } | 14218 } |
14219 if (kind != null) { | 14219 if (kind != null) { |
14220 _json["kind"] = kind; | 14220 _json["kind"] = kind; |
14221 } | 14221 } |
14222 if (localizations != null) { | 14222 if (localizations != null) { |
14223 _json["localizations"] = commons.mapMap(localizations, (item) => (item).to
Json()); | 14223 _json["localizations"] = commons.mapMap<PlaylistLocalization, core.Map<cor
e.String, core.Object>>(localizations, (PlaylistLocalization item) => (item).toJ
son()); |
14224 } | 14224 } |
14225 if (player != null) { | 14225 if (player != null) { |
14226 _json["player"] = (player).toJson(); | 14226 _json["player"] = (player).toJson(); |
14227 } | 14227 } |
14228 if (snippet != null) { | 14228 if (snippet != null) { |
14229 _json["snippet"] = (snippet).toJson(); | 14229 _json["snippet"] = (snippet).toJson(); |
14230 } | 14230 } |
14231 if (status != null) { | 14231 if (status != null) { |
14232 _json["status"] = (status).toJson(); | 14232 _json["status"] = (status).toJson(); |
14233 } | 14233 } |
14234 return _json; | 14234 return _json; |
14235 } | 14235 } |
14236 } | 14236 } |
14237 | 14237 |
14238 class PlaylistContentDetails { | 14238 class PlaylistContentDetails { |
14239 /** The number of videos in the playlist. */ | 14239 /** The number of videos in the playlist. */ |
14240 core.int itemCount; | 14240 core.int itemCount; |
14241 | 14241 |
14242 PlaylistContentDetails(); | 14242 PlaylistContentDetails(); |
14243 | 14243 |
14244 PlaylistContentDetails.fromJson(core.Map _json) { | 14244 PlaylistContentDetails.fromJson(core.Map _json) { |
14245 if (_json.containsKey("itemCount")) { | 14245 if (_json.containsKey("itemCount")) { |
14246 itemCount = _json["itemCount"]; | 14246 itemCount = _json["itemCount"]; |
14247 } | 14247 } |
14248 } | 14248 } |
14249 | 14249 |
14250 core.Map toJson() { | 14250 core.Map<core.String, core.Object> toJson() { |
14251 var _json = new core.Map(); | 14251 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14252 if (itemCount != null) { | 14252 if (itemCount != null) { |
14253 _json["itemCount"] = itemCount; | 14253 _json["itemCount"] = itemCount; |
14254 } | 14254 } |
14255 return _json; | 14255 return _json; |
14256 } | 14256 } |
14257 } | 14257 } |
14258 | 14258 |
14259 /** | 14259 /** |
14260 * A playlistItem resource identifies another resource, such as a video, that is | 14260 * A playlistItem resource identifies another resource, such as a video, that is |
14261 * included in a playlist. In addition, the playlistItem resource contains | 14261 * included in a playlist. In addition, the playlistItem resource contains |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14322 kind = _json["kind"]; | 14322 kind = _json["kind"]; |
14323 } | 14323 } |
14324 if (_json.containsKey("snippet")) { | 14324 if (_json.containsKey("snippet")) { |
14325 snippet = new PlaylistItemSnippet.fromJson(_json["snippet"]); | 14325 snippet = new PlaylistItemSnippet.fromJson(_json["snippet"]); |
14326 } | 14326 } |
14327 if (_json.containsKey("status")) { | 14327 if (_json.containsKey("status")) { |
14328 status = new PlaylistItemStatus.fromJson(_json["status"]); | 14328 status = new PlaylistItemStatus.fromJson(_json["status"]); |
14329 } | 14329 } |
14330 } | 14330 } |
14331 | 14331 |
14332 core.Map toJson() { | 14332 core.Map<core.String, core.Object> toJson() { |
14333 var _json = new core.Map(); | 14333 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14334 if (contentDetails != null) { | 14334 if (contentDetails != null) { |
14335 _json["contentDetails"] = (contentDetails).toJson(); | 14335 _json["contentDetails"] = (contentDetails).toJson(); |
14336 } | 14336 } |
14337 if (etag != null) { | 14337 if (etag != null) { |
14338 _json["etag"] = etag; | 14338 _json["etag"] = etag; |
14339 } | 14339 } |
14340 if (id != null) { | 14340 if (id != null) { |
14341 _json["id"] = id; | 14341 _json["id"] = id; |
14342 } | 14342 } |
14343 if (kind != null) { | 14343 if (kind != null) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14396 startAt = _json["startAt"]; | 14396 startAt = _json["startAt"]; |
14397 } | 14397 } |
14398 if (_json.containsKey("videoId")) { | 14398 if (_json.containsKey("videoId")) { |
14399 videoId = _json["videoId"]; | 14399 videoId = _json["videoId"]; |
14400 } | 14400 } |
14401 if (_json.containsKey("videoPublishedAt")) { | 14401 if (_json.containsKey("videoPublishedAt")) { |
14402 videoPublishedAt = core.DateTime.parse(_json["videoPublishedAt"]); | 14402 videoPublishedAt = core.DateTime.parse(_json["videoPublishedAt"]); |
14403 } | 14403 } |
14404 } | 14404 } |
14405 | 14405 |
14406 core.Map toJson() { | 14406 core.Map<core.String, core.Object> toJson() { |
14407 var _json = new core.Map(); | 14407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14408 if (endAt != null) { | 14408 if (endAt != null) { |
14409 _json["endAt"] = endAt; | 14409 _json["endAt"] = endAt; |
14410 } | 14410 } |
14411 if (note != null) { | 14411 if (note != null) { |
14412 _json["note"] = note; | 14412 _json["note"] = note; |
14413 } | 14413 } |
14414 if (startAt != null) { | 14414 if (startAt != null) { |
14415 _json["startAt"] = startAt; | 14415 _json["startAt"] = startAt; |
14416 } | 14416 } |
14417 if (videoId != null) { | 14417 if (videoId != null) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14476 prevPageToken = _json["prevPageToken"]; | 14476 prevPageToken = _json["prevPageToken"]; |
14477 } | 14477 } |
14478 if (_json.containsKey("tokenPagination")) { | 14478 if (_json.containsKey("tokenPagination")) { |
14479 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 14479 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
14480 } | 14480 } |
14481 if (_json.containsKey("visitorId")) { | 14481 if (_json.containsKey("visitorId")) { |
14482 visitorId = _json["visitorId"]; | 14482 visitorId = _json["visitorId"]; |
14483 } | 14483 } |
14484 } | 14484 } |
14485 | 14485 |
14486 core.Map toJson() { | 14486 core.Map<core.String, core.Object> toJson() { |
14487 var _json = new core.Map(); | 14487 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14488 if (etag != null) { | 14488 if (etag != null) { |
14489 _json["etag"] = etag; | 14489 _json["etag"] = etag; |
14490 } | 14490 } |
14491 if (eventId != null) { | 14491 if (eventId != null) { |
14492 _json["eventId"] = eventId; | 14492 _json["eventId"] = eventId; |
14493 } | 14493 } |
14494 if (items != null) { | 14494 if (items != null) { |
14495 _json["items"] = items.map((value) => (value).toJson()).toList(); | 14495 _json["items"] = items.map((value) => (value).toJson()).toList(); |
14496 } | 14496 } |
14497 if (kind != null) { | 14497 if (kind != null) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14584 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 14584 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
14585 } | 14585 } |
14586 if (_json.containsKey("thumbnails")) { | 14586 if (_json.containsKey("thumbnails")) { |
14587 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 14587 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
14588 } | 14588 } |
14589 if (_json.containsKey("title")) { | 14589 if (_json.containsKey("title")) { |
14590 title = _json["title"]; | 14590 title = _json["title"]; |
14591 } | 14591 } |
14592 } | 14592 } |
14593 | 14593 |
14594 core.Map toJson() { | 14594 core.Map<core.String, core.Object> toJson() { |
14595 var _json = new core.Map(); | 14595 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14596 if (channelId != null) { | 14596 if (channelId != null) { |
14597 _json["channelId"] = channelId; | 14597 _json["channelId"] = channelId; |
14598 } | 14598 } |
14599 if (channelTitle != null) { | 14599 if (channelTitle != null) { |
14600 _json["channelTitle"] = channelTitle; | 14600 _json["channelTitle"] = channelTitle; |
14601 } | 14601 } |
14602 if (description != null) { | 14602 if (description != null) { |
14603 _json["description"] = description; | 14603 _json["description"] = description; |
14604 } | 14604 } |
14605 if (playlistId != null) { | 14605 if (playlistId != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
14636 core.String privacyStatus; | 14636 core.String privacyStatus; |
14637 | 14637 |
14638 PlaylistItemStatus(); | 14638 PlaylistItemStatus(); |
14639 | 14639 |
14640 PlaylistItemStatus.fromJson(core.Map _json) { | 14640 PlaylistItemStatus.fromJson(core.Map _json) { |
14641 if (_json.containsKey("privacyStatus")) { | 14641 if (_json.containsKey("privacyStatus")) { |
14642 privacyStatus = _json["privacyStatus"]; | 14642 privacyStatus = _json["privacyStatus"]; |
14643 } | 14643 } |
14644 } | 14644 } |
14645 | 14645 |
14646 core.Map toJson() { | 14646 core.Map<core.String, core.Object> toJson() { |
14647 var _json = new core.Map(); | 14647 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14648 if (privacyStatus != null) { | 14648 if (privacyStatus != null) { |
14649 _json["privacyStatus"] = privacyStatus; | 14649 _json["privacyStatus"] = privacyStatus; |
14650 } | 14650 } |
14651 return _json; | 14651 return _json; |
14652 } | 14652 } |
14653 } | 14653 } |
14654 | 14654 |
14655 class PlaylistListResponse { | 14655 class PlaylistListResponse { |
14656 /** Etag of this resource. */ | 14656 /** Etag of this resource. */ |
14657 core.String etag; | 14657 core.String etag; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14704 prevPageToken = _json["prevPageToken"]; | 14704 prevPageToken = _json["prevPageToken"]; |
14705 } | 14705 } |
14706 if (_json.containsKey("tokenPagination")) { | 14706 if (_json.containsKey("tokenPagination")) { |
14707 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 14707 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
14708 } | 14708 } |
14709 if (_json.containsKey("visitorId")) { | 14709 if (_json.containsKey("visitorId")) { |
14710 visitorId = _json["visitorId"]; | 14710 visitorId = _json["visitorId"]; |
14711 } | 14711 } |
14712 } | 14712 } |
14713 | 14713 |
14714 core.Map toJson() { | 14714 core.Map<core.String, core.Object> toJson() { |
14715 var _json = new core.Map(); | 14715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14716 if (etag != null) { | 14716 if (etag != null) { |
14717 _json["etag"] = etag; | 14717 _json["etag"] = etag; |
14718 } | 14718 } |
14719 if (eventId != null) { | 14719 if (eventId != null) { |
14720 _json["eventId"] = eventId; | 14720 _json["eventId"] = eventId; |
14721 } | 14721 } |
14722 if (items != null) { | 14722 if (items != null) { |
14723 _json["items"] = items.map((value) => (value).toJson()).toList(); | 14723 _json["items"] = items.map((value) => (value).toJson()).toList(); |
14724 } | 14724 } |
14725 if (kind != null) { | 14725 if (kind != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
14755 | 14755 |
14756 PlaylistLocalization.fromJson(core.Map _json) { | 14756 PlaylistLocalization.fromJson(core.Map _json) { |
14757 if (_json.containsKey("description")) { | 14757 if (_json.containsKey("description")) { |
14758 description = _json["description"]; | 14758 description = _json["description"]; |
14759 } | 14759 } |
14760 if (_json.containsKey("title")) { | 14760 if (_json.containsKey("title")) { |
14761 title = _json["title"]; | 14761 title = _json["title"]; |
14762 } | 14762 } |
14763 } | 14763 } |
14764 | 14764 |
14765 core.Map toJson() { | 14765 core.Map<core.String, core.Object> toJson() { |
14766 var _json = new core.Map(); | 14766 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14767 if (description != null) { | 14767 if (description != null) { |
14768 _json["description"] = description; | 14768 _json["description"] = description; |
14769 } | 14769 } |
14770 if (title != null) { | 14770 if (title != null) { |
14771 _json["title"] = title; | 14771 _json["title"] = title; |
14772 } | 14772 } |
14773 return _json; | 14773 return _json; |
14774 } | 14774 } |
14775 } | 14775 } |
14776 | 14776 |
14777 class PlaylistPlayer { | 14777 class PlaylistPlayer { |
14778 /** An <iframe> tag that embeds a player that will play the playlist. */ | 14778 /** An <iframe> tag that embeds a player that will play the playlist. */ |
14779 core.String embedHtml; | 14779 core.String embedHtml; |
14780 | 14780 |
14781 PlaylistPlayer(); | 14781 PlaylistPlayer(); |
14782 | 14782 |
14783 PlaylistPlayer.fromJson(core.Map _json) { | 14783 PlaylistPlayer.fromJson(core.Map _json) { |
14784 if (_json.containsKey("embedHtml")) { | 14784 if (_json.containsKey("embedHtml")) { |
14785 embedHtml = _json["embedHtml"]; | 14785 embedHtml = _json["embedHtml"]; |
14786 } | 14786 } |
14787 } | 14787 } |
14788 | 14788 |
14789 core.Map toJson() { | 14789 core.Map<core.String, core.Object> toJson() { |
14790 var _json = new core.Map(); | 14790 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14791 if (embedHtml != null) { | 14791 if (embedHtml != null) { |
14792 _json["embedHtml"] = embedHtml; | 14792 _json["embedHtml"] = embedHtml; |
14793 } | 14793 } |
14794 return _json; | 14794 return _json; |
14795 } | 14795 } |
14796 } | 14796 } |
14797 | 14797 |
14798 /** | 14798 /** |
14799 * Basic details about a playlist, including title, description and thumbnails. | 14799 * Basic details about a playlist, including title, description and thumbnails. |
14800 */ | 14800 */ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14853 tags = _json["tags"]; | 14853 tags = _json["tags"]; |
14854 } | 14854 } |
14855 if (_json.containsKey("thumbnails")) { | 14855 if (_json.containsKey("thumbnails")) { |
14856 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 14856 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
14857 } | 14857 } |
14858 if (_json.containsKey("title")) { | 14858 if (_json.containsKey("title")) { |
14859 title = _json["title"]; | 14859 title = _json["title"]; |
14860 } | 14860 } |
14861 } | 14861 } |
14862 | 14862 |
14863 core.Map toJson() { | 14863 core.Map<core.String, core.Object> toJson() { |
14864 var _json = new core.Map(); | 14864 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14865 if (channelId != null) { | 14865 if (channelId != null) { |
14866 _json["channelId"] = channelId; | 14866 _json["channelId"] = channelId; |
14867 } | 14867 } |
14868 if (channelTitle != null) { | 14868 if (channelTitle != null) { |
14869 _json["channelTitle"] = channelTitle; | 14869 _json["channelTitle"] = channelTitle; |
14870 } | 14870 } |
14871 if (defaultLanguage != null) { | 14871 if (defaultLanguage != null) { |
14872 _json["defaultLanguage"] = defaultLanguage; | 14872 _json["defaultLanguage"] = defaultLanguage; |
14873 } | 14873 } |
14874 if (description != null) { | 14874 if (description != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
14904 core.String privacyStatus; | 14904 core.String privacyStatus; |
14905 | 14905 |
14906 PlaylistStatus(); | 14906 PlaylistStatus(); |
14907 | 14907 |
14908 PlaylistStatus.fromJson(core.Map _json) { | 14908 PlaylistStatus.fromJson(core.Map _json) { |
14909 if (_json.containsKey("privacyStatus")) { | 14909 if (_json.containsKey("privacyStatus")) { |
14910 privacyStatus = _json["privacyStatus"]; | 14910 privacyStatus = _json["privacyStatus"]; |
14911 } | 14911 } |
14912 } | 14912 } |
14913 | 14913 |
14914 core.Map toJson() { | 14914 core.Map<core.String, core.Object> toJson() { |
14915 var _json = new core.Map(); | 14915 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14916 if (privacyStatus != null) { | 14916 if (privacyStatus != null) { |
14917 _json["privacyStatus"] = privacyStatus; | 14917 _json["privacyStatus"] = privacyStatus; |
14918 } | 14918 } |
14919 return _json; | 14919 return _json; |
14920 } | 14920 } |
14921 } | 14921 } |
14922 | 14922 |
14923 /** Describes a single promoted item. */ | 14923 /** Describes a single promoted item. */ |
14924 class PromotedItem { | 14924 class PromotedItem { |
14925 /** | 14925 /** |
(...skipping 25 matching lines...) Expand all Loading... |
14951 id = new PromotedItemId.fromJson(_json["id"]); | 14951 id = new PromotedItemId.fromJson(_json["id"]); |
14952 } | 14952 } |
14953 if (_json.containsKey("promotedByContentOwner")) { | 14953 if (_json.containsKey("promotedByContentOwner")) { |
14954 promotedByContentOwner = _json["promotedByContentOwner"]; | 14954 promotedByContentOwner = _json["promotedByContentOwner"]; |
14955 } | 14955 } |
14956 if (_json.containsKey("timing")) { | 14956 if (_json.containsKey("timing")) { |
14957 timing = new InvideoTiming.fromJson(_json["timing"]); | 14957 timing = new InvideoTiming.fromJson(_json["timing"]); |
14958 } | 14958 } |
14959 } | 14959 } |
14960 | 14960 |
14961 core.Map toJson() { | 14961 core.Map<core.String, core.Object> toJson() { |
14962 var _json = new core.Map(); | 14962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
14963 if (customMessage != null) { | 14963 if (customMessage != null) { |
14964 _json["customMessage"] = customMessage; | 14964 _json["customMessage"] = customMessage; |
14965 } | 14965 } |
14966 if (id != null) { | 14966 if (id != null) { |
14967 _json["id"] = (id).toJson(); | 14967 _json["id"] = (id).toJson(); |
14968 } | 14968 } |
14969 if (promotedByContentOwner != null) { | 14969 if (promotedByContentOwner != null) { |
14970 _json["promotedByContentOwner"] = promotedByContentOwner; | 14970 _json["promotedByContentOwner"] = promotedByContentOwner; |
14971 } | 14971 } |
14972 if (timing != null) { | 14972 if (timing != null) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15017 type = _json["type"]; | 15017 type = _json["type"]; |
15018 } | 15018 } |
15019 if (_json.containsKey("videoId")) { | 15019 if (_json.containsKey("videoId")) { |
15020 videoId = _json["videoId"]; | 15020 videoId = _json["videoId"]; |
15021 } | 15021 } |
15022 if (_json.containsKey("websiteUrl")) { | 15022 if (_json.containsKey("websiteUrl")) { |
15023 websiteUrl = _json["websiteUrl"]; | 15023 websiteUrl = _json["websiteUrl"]; |
15024 } | 15024 } |
15025 } | 15025 } |
15026 | 15026 |
15027 core.Map toJson() { | 15027 core.Map<core.String, core.Object> toJson() { |
15028 var _json = new core.Map(); | 15028 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15029 if (recentlyUploadedBy != null) { | 15029 if (recentlyUploadedBy != null) { |
15030 _json["recentlyUploadedBy"] = recentlyUploadedBy; | 15030 _json["recentlyUploadedBy"] = recentlyUploadedBy; |
15031 } | 15031 } |
15032 if (type != null) { | 15032 if (type != null) { |
15033 _json["type"] = type; | 15033 _json["type"] = type; |
15034 } | 15034 } |
15035 if (videoId != null) { | 15035 if (videoId != null) { |
15036 _json["videoId"] = videoId; | 15036 _json["videoId"] = videoId; |
15037 } | 15037 } |
15038 if (websiteUrl != null) { | 15038 if (websiteUrl != null) { |
(...skipping 14 matching lines...) Expand all Loading... |
15053 | 15053 |
15054 PropertyValue.fromJson(core.Map _json) { | 15054 PropertyValue.fromJson(core.Map _json) { |
15055 if (_json.containsKey("property")) { | 15055 if (_json.containsKey("property")) { |
15056 property = _json["property"]; | 15056 property = _json["property"]; |
15057 } | 15057 } |
15058 if (_json.containsKey("value")) { | 15058 if (_json.containsKey("value")) { |
15059 value = _json["value"]; | 15059 value = _json["value"]; |
15060 } | 15060 } |
15061 } | 15061 } |
15062 | 15062 |
15063 core.Map toJson() { | 15063 core.Map<core.String, core.Object> toJson() { |
15064 var _json = new core.Map(); | 15064 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15065 if (property != null) { | 15065 if (property != null) { |
15066 _json["property"] = property; | 15066 _json["property"] = property; |
15067 } | 15067 } |
15068 if (value != null) { | 15068 if (value != null) { |
15069 _json["value"] = value; | 15069 _json["value"] = value; |
15070 } | 15070 } |
15071 return _json; | 15071 return _json; |
15072 } | 15072 } |
15073 } | 15073 } |
15074 | 15074 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15107 kind = _json["kind"]; | 15107 kind = _json["kind"]; |
15108 } | 15108 } |
15109 if (_json.containsKey("playlistId")) { | 15109 if (_json.containsKey("playlistId")) { |
15110 playlistId = _json["playlistId"]; | 15110 playlistId = _json["playlistId"]; |
15111 } | 15111 } |
15112 if (_json.containsKey("videoId")) { | 15112 if (_json.containsKey("videoId")) { |
15113 videoId = _json["videoId"]; | 15113 videoId = _json["videoId"]; |
15114 } | 15114 } |
15115 } | 15115 } |
15116 | 15116 |
15117 core.Map toJson() { | 15117 core.Map<core.String, core.Object> toJson() { |
15118 var _json = new core.Map(); | 15118 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15119 if (channelId != null) { | 15119 if (channelId != null) { |
15120 _json["channelId"] = channelId; | 15120 _json["channelId"] = channelId; |
15121 } | 15121 } |
15122 if (kind != null) { | 15122 if (kind != null) { |
15123 _json["kind"] = kind; | 15123 _json["kind"] = kind; |
15124 } | 15124 } |
15125 if (playlistId != null) { | 15125 if (playlistId != null) { |
15126 _json["playlistId"] = playlistId; | 15126 _json["playlistId"] = playlistId; |
15127 } | 15127 } |
15128 if (videoId != null) { | 15128 if (videoId != null) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15188 regionCode = _json["regionCode"]; | 15188 regionCode = _json["regionCode"]; |
15189 } | 15189 } |
15190 if (_json.containsKey("tokenPagination")) { | 15190 if (_json.containsKey("tokenPagination")) { |
15191 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 15191 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
15192 } | 15192 } |
15193 if (_json.containsKey("visitorId")) { | 15193 if (_json.containsKey("visitorId")) { |
15194 visitorId = _json["visitorId"]; | 15194 visitorId = _json["visitorId"]; |
15195 } | 15195 } |
15196 } | 15196 } |
15197 | 15197 |
15198 core.Map toJson() { | 15198 core.Map<core.String, core.Object> toJson() { |
15199 var _json = new core.Map(); | 15199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15200 if (etag != null) { | 15200 if (etag != null) { |
15201 _json["etag"] = etag; | 15201 _json["etag"] = etag; |
15202 } | 15202 } |
15203 if (eventId != null) { | 15203 if (eventId != null) { |
15204 _json["eventId"] = eventId; | 15204 _json["eventId"] = eventId; |
15205 } | 15205 } |
15206 if (items != null) { | 15206 if (items != null) { |
15207 _json["items"] = items.map((value) => (value).toJson()).toList(); | 15207 _json["items"] = items.map((value) => (value).toJson()).toList(); |
15208 } | 15208 } |
15209 if (kind != null) { | 15209 if (kind != null) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15268 id = new ResourceId.fromJson(_json["id"]); | 15268 id = new ResourceId.fromJson(_json["id"]); |
15269 } | 15269 } |
15270 if (_json.containsKey("kind")) { | 15270 if (_json.containsKey("kind")) { |
15271 kind = _json["kind"]; | 15271 kind = _json["kind"]; |
15272 } | 15272 } |
15273 if (_json.containsKey("snippet")) { | 15273 if (_json.containsKey("snippet")) { |
15274 snippet = new SearchResultSnippet.fromJson(_json["snippet"]); | 15274 snippet = new SearchResultSnippet.fromJson(_json["snippet"]); |
15275 } | 15275 } |
15276 } | 15276 } |
15277 | 15277 |
15278 core.Map toJson() { | 15278 core.Map<core.String, core.Object> toJson() { |
15279 var _json = new core.Map(); | 15279 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15280 if (etag != null) { | 15280 if (etag != null) { |
15281 _json["etag"] = etag; | 15281 _json["etag"] = etag; |
15282 } | 15282 } |
15283 if (id != null) { | 15283 if (id != null) { |
15284 _json["id"] = (id).toJson(); | 15284 _json["id"] = (id).toJson(); |
15285 } | 15285 } |
15286 if (kind != null) { | 15286 if (kind != null) { |
15287 _json["kind"] = kind; | 15287 _json["kind"] = kind; |
15288 } | 15288 } |
15289 if (snippet != null) { | 15289 if (snippet != null) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15354 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 15354 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
15355 } | 15355 } |
15356 if (_json.containsKey("thumbnails")) { | 15356 if (_json.containsKey("thumbnails")) { |
15357 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 15357 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
15358 } | 15358 } |
15359 if (_json.containsKey("title")) { | 15359 if (_json.containsKey("title")) { |
15360 title = _json["title"]; | 15360 title = _json["title"]; |
15361 } | 15361 } |
15362 } | 15362 } |
15363 | 15363 |
15364 core.Map toJson() { | 15364 core.Map<core.String, core.Object> toJson() { |
15365 var _json = new core.Map(); | 15365 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15366 if (channelId != null) { | 15366 if (channelId != null) { |
15367 _json["channelId"] = channelId; | 15367 _json["channelId"] = channelId; |
15368 } | 15368 } |
15369 if (channelTitle != null) { | 15369 if (channelTitle != null) { |
15370 _json["channelTitle"] = channelTitle; | 15370 _json["channelTitle"] = channelTitle; |
15371 } | 15371 } |
15372 if (description != null) { | 15372 if (description != null) { |
15373 _json["description"] = description; | 15373 _json["description"] = description; |
15374 } | 15374 } |
15375 if (liveBroadcastContent != null) { | 15375 if (liveBroadcastContent != null) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15416 id = _json["id"]; | 15416 id = _json["id"]; |
15417 } | 15417 } |
15418 if (_json.containsKey("kind")) { | 15418 if (_json.containsKey("kind")) { |
15419 kind = _json["kind"]; | 15419 kind = _json["kind"]; |
15420 } | 15420 } |
15421 if (_json.containsKey("snippet")) { | 15421 if (_json.containsKey("snippet")) { |
15422 snippet = new SponsorSnippet.fromJson(_json["snippet"]); | 15422 snippet = new SponsorSnippet.fromJson(_json["snippet"]); |
15423 } | 15423 } |
15424 } | 15424 } |
15425 | 15425 |
15426 core.Map toJson() { | 15426 core.Map<core.String, core.Object> toJson() { |
15427 var _json = new core.Map(); | 15427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15428 if (etag != null) { | 15428 if (etag != null) { |
15429 _json["etag"] = etag; | 15429 _json["etag"] = etag; |
15430 } | 15430 } |
15431 if (id != null) { | 15431 if (id != null) { |
15432 _json["id"] = id; | 15432 _json["id"] = id; |
15433 } | 15433 } |
15434 if (kind != null) { | 15434 if (kind != null) { |
15435 _json["kind"] = kind; | 15435 _json["kind"] = kind; |
15436 } | 15436 } |
15437 if (snippet != null) { | 15437 if (snippet != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15485 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 15485 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
15486 } | 15486 } |
15487 if (_json.containsKey("tokenPagination")) { | 15487 if (_json.containsKey("tokenPagination")) { |
15488 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 15488 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
15489 } | 15489 } |
15490 if (_json.containsKey("visitorId")) { | 15490 if (_json.containsKey("visitorId")) { |
15491 visitorId = _json["visitorId"]; | 15491 visitorId = _json["visitorId"]; |
15492 } | 15492 } |
15493 } | 15493 } |
15494 | 15494 |
15495 core.Map toJson() { | 15495 core.Map<core.String, core.Object> toJson() { |
15496 var _json = new core.Map(); | 15496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15497 if (etag != null) { | 15497 if (etag != null) { |
15498 _json["etag"] = etag; | 15498 _json["etag"] = etag; |
15499 } | 15499 } |
15500 if (eventId != null) { | 15500 if (eventId != null) { |
15501 _json["eventId"] = eventId; | 15501 _json["eventId"] = eventId; |
15502 } | 15502 } |
15503 if (items != null) { | 15503 if (items != null) { |
15504 _json["items"] = items.map((value) => (value).toJson()).toList(); | 15504 _json["items"] = items.map((value) => (value).toJson()).toList(); |
15505 } | 15505 } |
15506 if (kind != null) { | 15506 if (kind != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15540 channelId = _json["channelId"]; | 15540 channelId = _json["channelId"]; |
15541 } | 15541 } |
15542 if (_json.containsKey("sponsorDetails")) { | 15542 if (_json.containsKey("sponsorDetails")) { |
15543 sponsorDetails = new ChannelProfileDetails.fromJson(_json["sponsorDetails"
]); | 15543 sponsorDetails = new ChannelProfileDetails.fromJson(_json["sponsorDetails"
]); |
15544 } | 15544 } |
15545 if (_json.containsKey("sponsorSince")) { | 15545 if (_json.containsKey("sponsorSince")) { |
15546 sponsorSince = core.DateTime.parse(_json["sponsorSince"]); | 15546 sponsorSince = core.DateTime.parse(_json["sponsorSince"]); |
15547 } | 15547 } |
15548 } | 15548 } |
15549 | 15549 |
15550 core.Map toJson() { | 15550 core.Map<core.String, core.Object> toJson() { |
15551 var _json = new core.Map(); | 15551 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15552 if (channelId != null) { | 15552 if (channelId != null) { |
15553 _json["channelId"] = channelId; | 15553 _json["channelId"] = channelId; |
15554 } | 15554 } |
15555 if (sponsorDetails != null) { | 15555 if (sponsorDetails != null) { |
15556 _json["sponsorDetails"] = (sponsorDetails).toJson(); | 15556 _json["sponsorDetails"] = (sponsorDetails).toJson(); |
15557 } | 15557 } |
15558 if (sponsorSince != null) { | 15558 if (sponsorSince != null) { |
15559 _json["sponsorSince"] = (sponsorSince).toIso8601String(); | 15559 _json["sponsorSince"] = (sponsorSince).toIso8601String(); |
15560 } | 15560 } |
15561 return _json; | 15561 return _json; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15608 kind = _json["kind"]; | 15608 kind = _json["kind"]; |
15609 } | 15609 } |
15610 if (_json.containsKey("snippet")) { | 15610 if (_json.containsKey("snippet")) { |
15611 snippet = new SubscriptionSnippet.fromJson(_json["snippet"]); | 15611 snippet = new SubscriptionSnippet.fromJson(_json["snippet"]); |
15612 } | 15612 } |
15613 if (_json.containsKey("subscriberSnippet")) { | 15613 if (_json.containsKey("subscriberSnippet")) { |
15614 subscriberSnippet = new SubscriptionSubscriberSnippet.fromJson(_json["subs
criberSnippet"]); | 15614 subscriberSnippet = new SubscriptionSubscriberSnippet.fromJson(_json["subs
criberSnippet"]); |
15615 } | 15615 } |
15616 } | 15616 } |
15617 | 15617 |
15618 core.Map toJson() { | 15618 core.Map<core.String, core.Object> toJson() { |
15619 var _json = new core.Map(); | 15619 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15620 if (contentDetails != null) { | 15620 if (contentDetails != null) { |
15621 _json["contentDetails"] = (contentDetails).toJson(); | 15621 _json["contentDetails"] = (contentDetails).toJson(); |
15622 } | 15622 } |
15623 if (etag != null) { | 15623 if (etag != null) { |
15624 _json["etag"] = etag; | 15624 _json["etag"] = etag; |
15625 } | 15625 } |
15626 if (id != null) { | 15626 if (id != null) { |
15627 _json["id"] = id; | 15627 _json["id"] = id; |
15628 } | 15628 } |
15629 if (kind != null) { | 15629 if (kind != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15663 activityType = _json["activityType"]; | 15663 activityType = _json["activityType"]; |
15664 } | 15664 } |
15665 if (_json.containsKey("newItemCount")) { | 15665 if (_json.containsKey("newItemCount")) { |
15666 newItemCount = _json["newItemCount"]; | 15666 newItemCount = _json["newItemCount"]; |
15667 } | 15667 } |
15668 if (_json.containsKey("totalItemCount")) { | 15668 if (_json.containsKey("totalItemCount")) { |
15669 totalItemCount = _json["totalItemCount"]; | 15669 totalItemCount = _json["totalItemCount"]; |
15670 } | 15670 } |
15671 } | 15671 } |
15672 | 15672 |
15673 core.Map toJson() { | 15673 core.Map<core.String, core.Object> toJson() { |
15674 var _json = new core.Map(); | 15674 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15675 if (activityType != null) { | 15675 if (activityType != null) { |
15676 _json["activityType"] = activityType; | 15676 _json["activityType"] = activityType; |
15677 } | 15677 } |
15678 if (newItemCount != null) { | 15678 if (newItemCount != null) { |
15679 _json["newItemCount"] = newItemCount; | 15679 _json["newItemCount"] = newItemCount; |
15680 } | 15680 } |
15681 if (totalItemCount != null) { | 15681 if (totalItemCount != null) { |
15682 _json["totalItemCount"] = totalItemCount; | 15682 _json["totalItemCount"] = totalItemCount; |
15683 } | 15683 } |
15684 return _json; | 15684 return _json; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15737 prevPageToken = _json["prevPageToken"]; | 15737 prevPageToken = _json["prevPageToken"]; |
15738 } | 15738 } |
15739 if (_json.containsKey("tokenPagination")) { | 15739 if (_json.containsKey("tokenPagination")) { |
15740 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 15740 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
15741 } | 15741 } |
15742 if (_json.containsKey("visitorId")) { | 15742 if (_json.containsKey("visitorId")) { |
15743 visitorId = _json["visitorId"]; | 15743 visitorId = _json["visitorId"]; |
15744 } | 15744 } |
15745 } | 15745 } |
15746 | 15746 |
15747 core.Map toJson() { | 15747 core.Map<core.String, core.Object> toJson() { |
15748 var _json = new core.Map(); | 15748 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15749 if (etag != null) { | 15749 if (etag != null) { |
15750 _json["etag"] = etag; | 15750 _json["etag"] = etag; |
15751 } | 15751 } |
15752 if (eventId != null) { | 15752 if (eventId != null) { |
15753 _json["eventId"] = eventId; | 15753 _json["eventId"] = eventId; |
15754 } | 15754 } |
15755 if (items != null) { | 15755 if (items != null) { |
15756 _json["items"] = items.map((value) => (value).toJson()).toList(); | 15756 _json["items"] = items.map((value) => (value).toJson()).toList(); |
15757 } | 15757 } |
15758 if (kind != null) { | 15758 if (kind != null) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15828 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 15828 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
15829 } | 15829 } |
15830 if (_json.containsKey("thumbnails")) { | 15830 if (_json.containsKey("thumbnails")) { |
15831 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 15831 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
15832 } | 15832 } |
15833 if (_json.containsKey("title")) { | 15833 if (_json.containsKey("title")) { |
15834 title = _json["title"]; | 15834 title = _json["title"]; |
15835 } | 15835 } |
15836 } | 15836 } |
15837 | 15837 |
15838 core.Map toJson() { | 15838 core.Map<core.String, core.Object> toJson() { |
15839 var _json = new core.Map(); | 15839 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15840 if (channelId != null) { | 15840 if (channelId != null) { |
15841 _json["channelId"] = channelId; | 15841 _json["channelId"] = channelId; |
15842 } | 15842 } |
15843 if (channelTitle != null) { | 15843 if (channelTitle != null) { |
15844 _json["channelTitle"] = channelTitle; | 15844 _json["channelTitle"] = channelTitle; |
15845 } | 15845 } |
15846 if (description != null) { | 15846 if (description != null) { |
15847 _json["description"] = description; | 15847 _json["description"] = description; |
15848 } | 15848 } |
15849 if (publishedAt != null) { | 15849 if (publishedAt != null) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15886 description = _json["description"]; | 15886 description = _json["description"]; |
15887 } | 15887 } |
15888 if (_json.containsKey("thumbnails")) { | 15888 if (_json.containsKey("thumbnails")) { |
15889 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 15889 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
15890 } | 15890 } |
15891 if (_json.containsKey("title")) { | 15891 if (_json.containsKey("title")) { |
15892 title = _json["title"]; | 15892 title = _json["title"]; |
15893 } | 15893 } |
15894 } | 15894 } |
15895 | 15895 |
15896 core.Map toJson() { | 15896 core.Map<core.String, core.Object> toJson() { |
15897 var _json = new core.Map(); | 15897 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15898 if (channelId != null) { | 15898 if (channelId != null) { |
15899 _json["channelId"] = channelId; | 15899 _json["channelId"] = channelId; |
15900 } | 15900 } |
15901 if (description != null) { | 15901 if (description != null) { |
15902 _json["description"] = description; | 15902 _json["description"] = description; |
15903 } | 15903 } |
15904 if (thumbnails != null) { | 15904 if (thumbnails != null) { |
15905 _json["thumbnails"] = (thumbnails).toJson(); | 15905 _json["thumbnails"] = (thumbnails).toJson(); |
15906 } | 15906 } |
15907 if (title != null) { | 15907 if (title != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
15938 id = _json["id"]; | 15938 id = _json["id"]; |
15939 } | 15939 } |
15940 if (_json.containsKey("kind")) { | 15940 if (_json.containsKey("kind")) { |
15941 kind = _json["kind"]; | 15941 kind = _json["kind"]; |
15942 } | 15942 } |
15943 if (_json.containsKey("snippet")) { | 15943 if (_json.containsKey("snippet")) { |
15944 snippet = new SuperChatEventSnippet.fromJson(_json["snippet"]); | 15944 snippet = new SuperChatEventSnippet.fromJson(_json["snippet"]); |
15945 } | 15945 } |
15946 } | 15946 } |
15947 | 15947 |
15948 core.Map toJson() { | 15948 core.Map<core.String, core.Object> toJson() { |
15949 var _json = new core.Map(); | 15949 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
15950 if (etag != null) { | 15950 if (etag != null) { |
15951 _json["etag"] = etag; | 15951 _json["etag"] = etag; |
15952 } | 15952 } |
15953 if (id != null) { | 15953 if (id != null) { |
15954 _json["id"] = id; | 15954 _json["id"] = id; |
15955 } | 15955 } |
15956 if (kind != null) { | 15956 if (kind != null) { |
15957 _json["kind"] = kind; | 15957 _json["kind"] = kind; |
15958 } | 15958 } |
15959 if (snippet != null) { | 15959 if (snippet != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16007 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 16007 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
16008 } | 16008 } |
16009 if (_json.containsKey("tokenPagination")) { | 16009 if (_json.containsKey("tokenPagination")) { |
16010 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 16010 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
16011 } | 16011 } |
16012 if (_json.containsKey("visitorId")) { | 16012 if (_json.containsKey("visitorId")) { |
16013 visitorId = _json["visitorId"]; | 16013 visitorId = _json["visitorId"]; |
16014 } | 16014 } |
16015 } | 16015 } |
16016 | 16016 |
16017 core.Map toJson() { | 16017 core.Map<core.String, core.Object> toJson() { |
16018 var _json = new core.Map(); | 16018 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16019 if (etag != null) { | 16019 if (etag != null) { |
16020 _json["etag"] = etag; | 16020 _json["etag"] = etag; |
16021 } | 16021 } |
16022 if (eventId != null) { | 16022 if (eventId != null) { |
16023 _json["eventId"] = eventId; | 16023 _json["eventId"] = eventId; |
16024 } | 16024 } |
16025 if (items != null) { | 16025 if (items != null) { |
16026 _json["items"] = items.map((value) => (value).toJson()).toList(); | 16026 _json["items"] = items.map((value) => (value).toJson()).toList(); |
16027 } | 16027 } |
16028 if (kind != null) { | 16028 if (kind != null) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16096 displayString = _json["displayString"]; | 16096 displayString = _json["displayString"]; |
16097 } | 16097 } |
16098 if (_json.containsKey("messageType")) { | 16098 if (_json.containsKey("messageType")) { |
16099 messageType = _json["messageType"]; | 16099 messageType = _json["messageType"]; |
16100 } | 16100 } |
16101 if (_json.containsKey("supporterDetails")) { | 16101 if (_json.containsKey("supporterDetails")) { |
16102 supporterDetails = new ChannelProfileDetails.fromJson(_json["supporterDeta
ils"]); | 16102 supporterDetails = new ChannelProfileDetails.fromJson(_json["supporterDeta
ils"]); |
16103 } | 16103 } |
16104 } | 16104 } |
16105 | 16105 |
16106 core.Map toJson() { | 16106 core.Map<core.String, core.Object> toJson() { |
16107 var _json = new core.Map(); | 16107 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16108 if (amountMicros != null) { | 16108 if (amountMicros != null) { |
16109 _json["amountMicros"] = amountMicros; | 16109 _json["amountMicros"] = amountMicros; |
16110 } | 16110 } |
16111 if (channelId != null) { | 16111 if (channelId != null) { |
16112 _json["channelId"] = channelId; | 16112 _json["channelId"] = channelId; |
16113 } | 16113 } |
16114 if (commentText != null) { | 16114 if (commentText != null) { |
16115 _json["commentText"] = commentText; | 16115 _json["commentText"] = commentText; |
16116 } | 16116 } |
16117 if (createdAt != null) { | 16117 if (createdAt != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16149 height = _json["height"]; | 16149 height = _json["height"]; |
16150 } | 16150 } |
16151 if (_json.containsKey("url")) { | 16151 if (_json.containsKey("url")) { |
16152 url = _json["url"]; | 16152 url = _json["url"]; |
16153 } | 16153 } |
16154 if (_json.containsKey("width")) { | 16154 if (_json.containsKey("width")) { |
16155 width = _json["width"]; | 16155 width = _json["width"]; |
16156 } | 16156 } |
16157 } | 16157 } |
16158 | 16158 |
16159 core.Map toJson() { | 16159 core.Map<core.String, core.Object> toJson() { |
16160 var _json = new core.Map(); | 16160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16161 if (height != null) { | 16161 if (height != null) { |
16162 _json["height"] = height; | 16162 _json["height"] = height; |
16163 } | 16163 } |
16164 if (url != null) { | 16164 if (url != null) { |
16165 _json["url"] = url; | 16165 _json["url"] = url; |
16166 } | 16166 } |
16167 if (width != null) { | 16167 if (width != null) { |
16168 _json["width"] = width; | 16168 _json["width"] = width; |
16169 } | 16169 } |
16170 return _json; | 16170 return _json; |
(...skipping 26 matching lines...) Expand all Loading... |
16197 maxres = new Thumbnail.fromJson(_json["maxres"]); | 16197 maxres = new Thumbnail.fromJson(_json["maxres"]); |
16198 } | 16198 } |
16199 if (_json.containsKey("medium")) { | 16199 if (_json.containsKey("medium")) { |
16200 medium = new Thumbnail.fromJson(_json["medium"]); | 16200 medium = new Thumbnail.fromJson(_json["medium"]); |
16201 } | 16201 } |
16202 if (_json.containsKey("standard")) { | 16202 if (_json.containsKey("standard")) { |
16203 standard = new Thumbnail.fromJson(_json["standard"]); | 16203 standard = new Thumbnail.fromJson(_json["standard"]); |
16204 } | 16204 } |
16205 } | 16205 } |
16206 | 16206 |
16207 core.Map toJson() { | 16207 core.Map<core.String, core.Object> toJson() { |
16208 var _json = new core.Map(); | 16208 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16209 if (default_ != null) { | 16209 if (default_ != null) { |
16210 _json["default"] = (default_).toJson(); | 16210 _json["default"] = (default_).toJson(); |
16211 } | 16211 } |
16212 if (high != null) { | 16212 if (high != null) { |
16213 _json["high"] = (high).toJson(); | 16213 _json["high"] = (high).toJson(); |
16214 } | 16214 } |
16215 if (maxres != null) { | 16215 if (maxres != null) { |
16216 _json["maxres"] = (maxres).toJson(); | 16216 _json["maxres"] = (maxres).toJson(); |
16217 } | 16217 } |
16218 if (medium != null) { | 16218 if (medium != null) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16253 items = _json["items"].map((value) => new ThumbnailDetails.fromJson(value)
).toList(); | 16253 items = _json["items"].map((value) => new ThumbnailDetails.fromJson(value)
).toList(); |
16254 } | 16254 } |
16255 if (_json.containsKey("kind")) { | 16255 if (_json.containsKey("kind")) { |
16256 kind = _json["kind"]; | 16256 kind = _json["kind"]; |
16257 } | 16257 } |
16258 if (_json.containsKey("visitorId")) { | 16258 if (_json.containsKey("visitorId")) { |
16259 visitorId = _json["visitorId"]; | 16259 visitorId = _json["visitorId"]; |
16260 } | 16260 } |
16261 } | 16261 } |
16262 | 16262 |
16263 core.Map toJson() { | 16263 core.Map<core.String, core.Object> toJson() { |
16264 var _json = new core.Map(); | 16264 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16265 if (etag != null) { | 16265 if (etag != null) { |
16266 _json["etag"] = etag; | 16266 _json["etag"] = etag; |
16267 } | 16267 } |
16268 if (eventId != null) { | 16268 if (eventId != null) { |
16269 _json["eventId"] = eventId; | 16269 _json["eventId"] = eventId; |
16270 } | 16270 } |
16271 if (items != null) { | 16271 if (items != null) { |
16272 _json["items"] = items.map((value) => (value).toJson()).toList(); | 16272 _json["items"] = items.map((value) => (value).toJson()).toList(); |
16273 } | 16273 } |
16274 if (kind != null) { | 16274 if (kind != null) { |
16275 _json["kind"] = kind; | 16275 _json["kind"] = kind; |
16276 } | 16276 } |
16277 if (visitorId != null) { | 16277 if (visitorId != null) { |
16278 _json["visitorId"] = visitorId; | 16278 _json["visitorId"] = visitorId; |
16279 } | 16279 } |
16280 return _json; | 16280 return _json; |
16281 } | 16281 } |
16282 } | 16282 } |
16283 | 16283 |
16284 /** Stub token pagination template to suppress results. */ | 16284 /** Stub token pagination template to suppress results. */ |
16285 class TokenPagination { | 16285 class TokenPagination { |
16286 | 16286 |
16287 TokenPagination(); | 16287 TokenPagination(); |
16288 | 16288 |
16289 TokenPagination.fromJson(core.Map _json) { | 16289 TokenPagination.fromJson(core.Map _json) { |
16290 } | 16290 } |
16291 | 16291 |
16292 core.Map toJson() { | 16292 core.Map<core.String, core.Object> toJson() { |
16293 var _json = new core.Map(); | 16293 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16294 return _json; | 16294 return _json; |
16295 } | 16295 } |
16296 } | 16296 } |
16297 | 16297 |
16298 /** A video resource represents a YouTube video. */ | 16298 /** A video resource represents a YouTube video. */ |
16299 class Video { | 16299 class Video { |
16300 /** | 16300 /** |
16301 * Age restriction details related to a video. This data can only be retrieved | 16301 * Age restriction details related to a video. This data can only be retrieved |
16302 * by the video owner. | 16302 * by the video owner. |
16303 */ | 16303 */ |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16406 if (_json.containsKey("id")) { | 16406 if (_json.containsKey("id")) { |
16407 id = _json["id"]; | 16407 id = _json["id"]; |
16408 } | 16408 } |
16409 if (_json.containsKey("kind")) { | 16409 if (_json.containsKey("kind")) { |
16410 kind = _json["kind"]; | 16410 kind = _json["kind"]; |
16411 } | 16411 } |
16412 if (_json.containsKey("liveStreamingDetails")) { | 16412 if (_json.containsKey("liveStreamingDetails")) { |
16413 liveStreamingDetails = new VideoLiveStreamingDetails.fromJson(_json["liveS
treamingDetails"]); | 16413 liveStreamingDetails = new VideoLiveStreamingDetails.fromJson(_json["liveS
treamingDetails"]); |
16414 } | 16414 } |
16415 if (_json.containsKey("localizations")) { | 16415 if (_json.containsKey("localizations")) { |
16416 localizations = commons.mapMap(_json["localizations"], (item) => new Video
Localization.fromJson(item)); | 16416 localizations = commons.mapMap<core.Map<core.String, core.Object>, VideoLo
calization>(_json["localizations"], (core.Map<core.String, core.Object> item) =>
new VideoLocalization.fromJson(item)); |
16417 } | 16417 } |
16418 if (_json.containsKey("monetizationDetails")) { | 16418 if (_json.containsKey("monetizationDetails")) { |
16419 monetizationDetails = new VideoMonetizationDetails.fromJson(_json["monetiz
ationDetails"]); | 16419 monetizationDetails = new VideoMonetizationDetails.fromJson(_json["monetiz
ationDetails"]); |
16420 } | 16420 } |
16421 if (_json.containsKey("player")) { | 16421 if (_json.containsKey("player")) { |
16422 player = new VideoPlayer.fromJson(_json["player"]); | 16422 player = new VideoPlayer.fromJson(_json["player"]); |
16423 } | 16423 } |
16424 if (_json.containsKey("processingDetails")) { | 16424 if (_json.containsKey("processingDetails")) { |
16425 processingDetails = new VideoProcessingDetails.fromJson(_json["processingD
etails"]); | 16425 processingDetails = new VideoProcessingDetails.fromJson(_json["processingD
etails"]); |
16426 } | 16426 } |
(...skipping 13 matching lines...) Expand all Loading... |
16440 status = new VideoStatus.fromJson(_json["status"]); | 16440 status = new VideoStatus.fromJson(_json["status"]); |
16441 } | 16441 } |
16442 if (_json.containsKey("suggestions")) { | 16442 if (_json.containsKey("suggestions")) { |
16443 suggestions = new VideoSuggestions.fromJson(_json["suggestions"]); | 16443 suggestions = new VideoSuggestions.fromJson(_json["suggestions"]); |
16444 } | 16444 } |
16445 if (_json.containsKey("topicDetails")) { | 16445 if (_json.containsKey("topicDetails")) { |
16446 topicDetails = new VideoTopicDetails.fromJson(_json["topicDetails"]); | 16446 topicDetails = new VideoTopicDetails.fromJson(_json["topicDetails"]); |
16447 } | 16447 } |
16448 } | 16448 } |
16449 | 16449 |
16450 core.Map toJson() { | 16450 core.Map<core.String, core.Object> toJson() { |
16451 var _json = new core.Map(); | 16451 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16452 if (ageGating != null) { | 16452 if (ageGating != null) { |
16453 _json["ageGating"] = (ageGating).toJson(); | 16453 _json["ageGating"] = (ageGating).toJson(); |
16454 } | 16454 } |
16455 if (contentDetails != null) { | 16455 if (contentDetails != null) { |
16456 _json["contentDetails"] = (contentDetails).toJson(); | 16456 _json["contentDetails"] = (contentDetails).toJson(); |
16457 } | 16457 } |
16458 if (etag != null) { | 16458 if (etag != null) { |
16459 _json["etag"] = etag; | 16459 _json["etag"] = etag; |
16460 } | 16460 } |
16461 if (fileDetails != null) { | 16461 if (fileDetails != null) { |
16462 _json["fileDetails"] = (fileDetails).toJson(); | 16462 _json["fileDetails"] = (fileDetails).toJson(); |
16463 } | 16463 } |
16464 if (id != null) { | 16464 if (id != null) { |
16465 _json["id"] = id; | 16465 _json["id"] = id; |
16466 } | 16466 } |
16467 if (kind != null) { | 16467 if (kind != null) { |
16468 _json["kind"] = kind; | 16468 _json["kind"] = kind; |
16469 } | 16469 } |
16470 if (liveStreamingDetails != null) { | 16470 if (liveStreamingDetails != null) { |
16471 _json["liveStreamingDetails"] = (liveStreamingDetails).toJson(); | 16471 _json["liveStreamingDetails"] = (liveStreamingDetails).toJson(); |
16472 } | 16472 } |
16473 if (localizations != null) { | 16473 if (localizations != null) { |
16474 _json["localizations"] = commons.mapMap(localizations, (item) => (item).to
Json()); | 16474 _json["localizations"] = commons.mapMap<VideoLocalization, core.Map<core.S
tring, core.Object>>(localizations, (VideoLocalization item) => (item).toJson())
; |
16475 } | 16475 } |
16476 if (monetizationDetails != null) { | 16476 if (monetizationDetails != null) { |
16477 _json["monetizationDetails"] = (monetizationDetails).toJson(); | 16477 _json["monetizationDetails"] = (monetizationDetails).toJson(); |
16478 } | 16478 } |
16479 if (player != null) { | 16479 if (player != null) { |
16480 _json["player"] = (player).toJson(); | 16480 _json["player"] = (player).toJson(); |
16481 } | 16481 } |
16482 if (processingDetails != null) { | 16482 if (processingDetails != null) { |
16483 _json["processingDetails"] = (processingDetails).toJson(); | 16483 _json["processingDetails"] = (processingDetails).toJson(); |
16484 } | 16484 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16539 reasonId = _json["reasonId"]; | 16539 reasonId = _json["reasonId"]; |
16540 } | 16540 } |
16541 if (_json.containsKey("secondaryReasonId")) { | 16541 if (_json.containsKey("secondaryReasonId")) { |
16542 secondaryReasonId = _json["secondaryReasonId"]; | 16542 secondaryReasonId = _json["secondaryReasonId"]; |
16543 } | 16543 } |
16544 if (_json.containsKey("videoId")) { | 16544 if (_json.containsKey("videoId")) { |
16545 videoId = _json["videoId"]; | 16545 videoId = _json["videoId"]; |
16546 } | 16546 } |
16547 } | 16547 } |
16548 | 16548 |
16549 core.Map toJson() { | 16549 core.Map<core.String, core.Object> toJson() { |
16550 var _json = new core.Map(); | 16550 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16551 if (comments != null) { | 16551 if (comments != null) { |
16552 _json["comments"] = comments; | 16552 _json["comments"] = comments; |
16553 } | 16553 } |
16554 if (language != null) { | 16554 if (language != null) { |
16555 _json["language"] = language; | 16555 _json["language"] = language; |
16556 } | 16556 } |
16557 if (reasonId != null) { | 16557 if (reasonId != null) { |
16558 _json["reasonId"] = reasonId; | 16558 _json["reasonId"] = reasonId; |
16559 } | 16559 } |
16560 if (secondaryReasonId != null) { | 16560 if (secondaryReasonId != null) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16597 id = _json["id"]; | 16597 id = _json["id"]; |
16598 } | 16598 } |
16599 if (_json.containsKey("kind")) { | 16599 if (_json.containsKey("kind")) { |
16600 kind = _json["kind"]; | 16600 kind = _json["kind"]; |
16601 } | 16601 } |
16602 if (_json.containsKey("snippet")) { | 16602 if (_json.containsKey("snippet")) { |
16603 snippet = new VideoAbuseReportReasonSnippet.fromJson(_json["snippet"]); | 16603 snippet = new VideoAbuseReportReasonSnippet.fromJson(_json["snippet"]); |
16604 } | 16604 } |
16605 } | 16605 } |
16606 | 16606 |
16607 core.Map toJson() { | 16607 core.Map<core.String, core.Object> toJson() { |
16608 var _json = new core.Map(); | 16608 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16609 if (etag != null) { | 16609 if (etag != null) { |
16610 _json["etag"] = etag; | 16610 _json["etag"] = etag; |
16611 } | 16611 } |
16612 if (id != null) { | 16612 if (id != null) { |
16613 _json["id"] = id; | 16613 _json["id"] = id; |
16614 } | 16614 } |
16615 if (kind != null) { | 16615 if (kind != null) { |
16616 _json["kind"] = kind; | 16616 _json["kind"] = kind; |
16617 } | 16617 } |
16618 if (snippet != null) { | 16618 if (snippet != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16650 items = _json["items"].map((value) => new VideoAbuseReportReason.fromJson(
value)).toList(); | 16650 items = _json["items"].map((value) => new VideoAbuseReportReason.fromJson(
value)).toList(); |
16651 } | 16651 } |
16652 if (_json.containsKey("kind")) { | 16652 if (_json.containsKey("kind")) { |
16653 kind = _json["kind"]; | 16653 kind = _json["kind"]; |
16654 } | 16654 } |
16655 if (_json.containsKey("visitorId")) { | 16655 if (_json.containsKey("visitorId")) { |
16656 visitorId = _json["visitorId"]; | 16656 visitorId = _json["visitorId"]; |
16657 } | 16657 } |
16658 } | 16658 } |
16659 | 16659 |
16660 core.Map toJson() { | 16660 core.Map<core.String, core.Object> toJson() { |
16661 var _json = new core.Map(); | 16661 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16662 if (etag != null) { | 16662 if (etag != null) { |
16663 _json["etag"] = etag; | 16663 _json["etag"] = etag; |
16664 } | 16664 } |
16665 if (eventId != null) { | 16665 if (eventId != null) { |
16666 _json["eventId"] = eventId; | 16666 _json["eventId"] = eventId; |
16667 } | 16667 } |
16668 if (items != null) { | 16668 if (items != null) { |
16669 _json["items"] = items.map((value) => (value).toJson()).toList(); | 16669 _json["items"] = items.map((value) => (value).toJson()).toList(); |
16670 } | 16670 } |
16671 if (kind != null) { | 16671 if (kind != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
16692 | 16692 |
16693 VideoAbuseReportReasonSnippet.fromJson(core.Map _json) { | 16693 VideoAbuseReportReasonSnippet.fromJson(core.Map _json) { |
16694 if (_json.containsKey("label")) { | 16694 if (_json.containsKey("label")) { |
16695 label = _json["label"]; | 16695 label = _json["label"]; |
16696 } | 16696 } |
16697 if (_json.containsKey("secondaryReasons")) { | 16697 if (_json.containsKey("secondaryReasons")) { |
16698 secondaryReasons = _json["secondaryReasons"].map((value) => new VideoAbuse
ReportSecondaryReason.fromJson(value)).toList(); | 16698 secondaryReasons = _json["secondaryReasons"].map((value) => new VideoAbuse
ReportSecondaryReason.fromJson(value)).toList(); |
16699 } | 16699 } |
16700 } | 16700 } |
16701 | 16701 |
16702 core.Map toJson() { | 16702 core.Map<core.String, core.Object> toJson() { |
16703 var _json = new core.Map(); | 16703 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16704 if (label != null) { | 16704 if (label != null) { |
16705 _json["label"] = label; | 16705 _json["label"] = label; |
16706 } | 16706 } |
16707 if (secondaryReasons != null) { | 16707 if (secondaryReasons != null) { |
16708 _json["secondaryReasons"] = secondaryReasons.map((value) => (value).toJson
()).toList(); | 16708 _json["secondaryReasons"] = secondaryReasons.map((value) => (value).toJson
()).toList(); |
16709 } | 16709 } |
16710 return _json; | 16710 return _json; |
16711 } | 16711 } |
16712 } | 16712 } |
16713 | 16713 |
16714 class VideoAbuseReportSecondaryReason { | 16714 class VideoAbuseReportSecondaryReason { |
16715 /** The ID of this abuse report secondary reason. */ | 16715 /** The ID of this abuse report secondary reason. */ |
16716 core.String id; | 16716 core.String id; |
16717 /** The localized label for this abuse report secondary reason. */ | 16717 /** The localized label for this abuse report secondary reason. */ |
16718 core.String label; | 16718 core.String label; |
16719 | 16719 |
16720 VideoAbuseReportSecondaryReason(); | 16720 VideoAbuseReportSecondaryReason(); |
16721 | 16721 |
16722 VideoAbuseReportSecondaryReason.fromJson(core.Map _json) { | 16722 VideoAbuseReportSecondaryReason.fromJson(core.Map _json) { |
16723 if (_json.containsKey("id")) { | 16723 if (_json.containsKey("id")) { |
16724 id = _json["id"]; | 16724 id = _json["id"]; |
16725 } | 16725 } |
16726 if (_json.containsKey("label")) { | 16726 if (_json.containsKey("label")) { |
16727 label = _json["label"]; | 16727 label = _json["label"]; |
16728 } | 16728 } |
16729 } | 16729 } |
16730 | 16730 |
16731 core.Map toJson() { | 16731 core.Map<core.String, core.Object> toJson() { |
16732 var _json = new core.Map(); | 16732 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16733 if (id != null) { | 16733 if (id != null) { |
16734 _json["id"] = id; | 16734 _json["id"] = id; |
16735 } | 16735 } |
16736 if (label != null) { | 16736 if (label != null) { |
16737 _json["label"] = label; | 16737 _json["label"] = label; |
16738 } | 16738 } |
16739 return _json; | 16739 return _json; |
16740 } | 16740 } |
16741 } | 16741 } |
16742 | 16742 |
(...skipping 27 matching lines...) Expand all Loading... |
16770 alcoholContent = _json["alcoholContent"]; | 16770 alcoholContent = _json["alcoholContent"]; |
16771 } | 16771 } |
16772 if (_json.containsKey("restricted")) { | 16772 if (_json.containsKey("restricted")) { |
16773 restricted = _json["restricted"]; | 16773 restricted = _json["restricted"]; |
16774 } | 16774 } |
16775 if (_json.containsKey("videoGameRating")) { | 16775 if (_json.containsKey("videoGameRating")) { |
16776 videoGameRating = _json["videoGameRating"]; | 16776 videoGameRating = _json["videoGameRating"]; |
16777 } | 16777 } |
16778 } | 16778 } |
16779 | 16779 |
16780 core.Map toJson() { | 16780 core.Map<core.String, core.Object> toJson() { |
16781 var _json = new core.Map(); | 16781 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16782 if (alcoholContent != null) { | 16782 if (alcoholContent != null) { |
16783 _json["alcoholContent"] = alcoholContent; | 16783 _json["alcoholContent"] = alcoholContent; |
16784 } | 16784 } |
16785 if (restricted != null) { | 16785 if (restricted != null) { |
16786 _json["restricted"] = restricted; | 16786 _json["restricted"] = restricted; |
16787 } | 16787 } |
16788 if (videoGameRating != null) { | 16788 if (videoGameRating != null) { |
16789 _json["videoGameRating"] = videoGameRating; | 16789 _json["videoGameRating"] = videoGameRating; |
16790 } | 16790 } |
16791 return _json; | 16791 return _json; |
(...skipping 30 matching lines...) Expand all Loading... |
16822 id = _json["id"]; | 16822 id = _json["id"]; |
16823 } | 16823 } |
16824 if (_json.containsKey("kind")) { | 16824 if (_json.containsKey("kind")) { |
16825 kind = _json["kind"]; | 16825 kind = _json["kind"]; |
16826 } | 16826 } |
16827 if (_json.containsKey("snippet")) { | 16827 if (_json.containsKey("snippet")) { |
16828 snippet = new VideoCategorySnippet.fromJson(_json["snippet"]); | 16828 snippet = new VideoCategorySnippet.fromJson(_json["snippet"]); |
16829 } | 16829 } |
16830 } | 16830 } |
16831 | 16831 |
16832 core.Map toJson() { | 16832 core.Map<core.String, core.Object> toJson() { |
16833 var _json = new core.Map(); | 16833 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16834 if (etag != null) { | 16834 if (etag != null) { |
16835 _json["etag"] = etag; | 16835 _json["etag"] = etag; |
16836 } | 16836 } |
16837 if (id != null) { | 16837 if (id != null) { |
16838 _json["id"] = id; | 16838 _json["id"] = id; |
16839 } | 16839 } |
16840 if (kind != null) { | 16840 if (kind != null) { |
16841 _json["kind"] = kind; | 16841 _json["kind"] = kind; |
16842 } | 16842 } |
16843 if (snippet != null) { | 16843 if (snippet != null) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16903 prevPageToken = _json["prevPageToken"]; | 16903 prevPageToken = _json["prevPageToken"]; |
16904 } | 16904 } |
16905 if (_json.containsKey("tokenPagination")) { | 16905 if (_json.containsKey("tokenPagination")) { |
16906 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 16906 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
16907 } | 16907 } |
16908 if (_json.containsKey("visitorId")) { | 16908 if (_json.containsKey("visitorId")) { |
16909 visitorId = _json["visitorId"]; | 16909 visitorId = _json["visitorId"]; |
16910 } | 16910 } |
16911 } | 16911 } |
16912 | 16912 |
16913 core.Map toJson() { | 16913 core.Map<core.String, core.Object> toJson() { |
16914 var _json = new core.Map(); | 16914 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16915 if (etag != null) { | 16915 if (etag != null) { |
16916 _json["etag"] = etag; | 16916 _json["etag"] = etag; |
16917 } | 16917 } |
16918 if (eventId != null) { | 16918 if (eventId != null) { |
16919 _json["eventId"] = eventId; | 16919 _json["eventId"] = eventId; |
16920 } | 16920 } |
16921 if (items != null) { | 16921 if (items != null) { |
16922 _json["items"] = items.map((value) => (value).toJson()).toList(); | 16922 _json["items"] = items.map((value) => (value).toJson()).toList(); |
16923 } | 16923 } |
16924 if (kind != null) { | 16924 if (kind != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16958 assignable = _json["assignable"]; | 16958 assignable = _json["assignable"]; |
16959 } | 16959 } |
16960 if (_json.containsKey("channelId")) { | 16960 if (_json.containsKey("channelId")) { |
16961 channelId = _json["channelId"]; | 16961 channelId = _json["channelId"]; |
16962 } | 16962 } |
16963 if (_json.containsKey("title")) { | 16963 if (_json.containsKey("title")) { |
16964 title = _json["title"]; | 16964 title = _json["title"]; |
16965 } | 16965 } |
16966 } | 16966 } |
16967 | 16967 |
16968 core.Map toJson() { | 16968 core.Map<core.String, core.Object> toJson() { |
16969 var _json = new core.Map(); | 16969 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
16970 if (assignable != null) { | 16970 if (assignable != null) { |
16971 _json["assignable"] = assignable; | 16971 _json["assignable"] = assignable; |
16972 } | 16972 } |
16973 if (channelId != null) { | 16973 if (channelId != null) { |
16974 _json["channelId"] = channelId; | 16974 _json["channelId"] = channelId; |
16975 } | 16975 } |
16976 if (title != null) { | 16976 if (title != null) { |
16977 _json["title"] = title; | 16977 _json["title"] = title; |
16978 } | 16978 } |
16979 return _json; | 16979 return _json; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17074 licensedContent = _json["licensedContent"]; | 17074 licensedContent = _json["licensedContent"]; |
17075 } | 17075 } |
17076 if (_json.containsKey("projection")) { | 17076 if (_json.containsKey("projection")) { |
17077 projection = _json["projection"]; | 17077 projection = _json["projection"]; |
17078 } | 17078 } |
17079 if (_json.containsKey("regionRestriction")) { | 17079 if (_json.containsKey("regionRestriction")) { |
17080 regionRestriction = new VideoContentDetailsRegionRestriction.fromJson(_jso
n["regionRestriction"]); | 17080 regionRestriction = new VideoContentDetailsRegionRestriction.fromJson(_jso
n["regionRestriction"]); |
17081 } | 17081 } |
17082 } | 17082 } |
17083 | 17083 |
17084 core.Map toJson() { | 17084 core.Map<core.String, core.Object> toJson() { |
17085 var _json = new core.Map(); | 17085 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17086 if (caption != null) { | 17086 if (caption != null) { |
17087 _json["caption"] = caption; | 17087 _json["caption"] = caption; |
17088 } | 17088 } |
17089 if (contentRating != null) { | 17089 if (contentRating != null) { |
17090 _json["contentRating"] = (contentRating).toJson(); | 17090 _json["contentRating"] = (contentRating).toJson(); |
17091 } | 17091 } |
17092 if (countryRestriction != null) { | 17092 if (countryRestriction != null) { |
17093 _json["countryRestriction"] = (countryRestriction).toJson(); | 17093 _json["countryRestriction"] = (countryRestriction).toJson(); |
17094 } | 17094 } |
17095 if (definition != null) { | 17095 if (definition != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17138 | 17138 |
17139 VideoContentDetailsRegionRestriction.fromJson(core.Map _json) { | 17139 VideoContentDetailsRegionRestriction.fromJson(core.Map _json) { |
17140 if (_json.containsKey("allowed")) { | 17140 if (_json.containsKey("allowed")) { |
17141 allowed = _json["allowed"]; | 17141 allowed = _json["allowed"]; |
17142 } | 17142 } |
17143 if (_json.containsKey("blocked")) { | 17143 if (_json.containsKey("blocked")) { |
17144 blocked = _json["blocked"]; | 17144 blocked = _json["blocked"]; |
17145 } | 17145 } |
17146 } | 17146 } |
17147 | 17147 |
17148 core.Map toJson() { | 17148 core.Map<core.String, core.Object> toJson() { |
17149 var _json = new core.Map(); | 17149 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17150 if (allowed != null) { | 17150 if (allowed != null) { |
17151 _json["allowed"] = allowed; | 17151 _json["allowed"] = allowed; |
17152 } | 17152 } |
17153 if (blocked != null) { | 17153 if (blocked != null) { |
17154 _json["blocked"] = blocked; | 17154 _json["blocked"] = blocked; |
17155 } | 17155 } |
17156 return _json; | 17156 return _json; |
17157 } | 17157 } |
17158 } | 17158 } |
17159 | 17159 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17241 fileSize = _json["fileSize"]; | 17241 fileSize = _json["fileSize"]; |
17242 } | 17242 } |
17243 if (_json.containsKey("fileType")) { | 17243 if (_json.containsKey("fileType")) { |
17244 fileType = _json["fileType"]; | 17244 fileType = _json["fileType"]; |
17245 } | 17245 } |
17246 if (_json.containsKey("videoStreams")) { | 17246 if (_json.containsKey("videoStreams")) { |
17247 videoStreams = _json["videoStreams"].map((value) => new VideoFileDetailsVi
deoStream.fromJson(value)).toList(); | 17247 videoStreams = _json["videoStreams"].map((value) => new VideoFileDetailsVi
deoStream.fromJson(value)).toList(); |
17248 } | 17248 } |
17249 } | 17249 } |
17250 | 17250 |
17251 core.Map toJson() { | 17251 core.Map<core.String, core.Object> toJson() { |
17252 var _json = new core.Map(); | 17252 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17253 if (audioStreams != null) { | 17253 if (audioStreams != null) { |
17254 _json["audioStreams"] = audioStreams.map((value) => (value).toJson()).toLi
st(); | 17254 _json["audioStreams"] = audioStreams.map((value) => (value).toJson()).toLi
st(); |
17255 } | 17255 } |
17256 if (bitrateBps != null) { | 17256 if (bitrateBps != null) { |
17257 _json["bitrateBps"] = bitrateBps; | 17257 _json["bitrateBps"] = bitrateBps; |
17258 } | 17258 } |
17259 if (container != null) { | 17259 if (container != null) { |
17260 _json["container"] = container; | 17260 _json["container"] = container; |
17261 } | 17261 } |
17262 if (creationTime != null) { | 17262 if (creationTime != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17305 channelCount = _json["channelCount"]; | 17305 channelCount = _json["channelCount"]; |
17306 } | 17306 } |
17307 if (_json.containsKey("codec")) { | 17307 if (_json.containsKey("codec")) { |
17308 codec = _json["codec"]; | 17308 codec = _json["codec"]; |
17309 } | 17309 } |
17310 if (_json.containsKey("vendor")) { | 17310 if (_json.containsKey("vendor")) { |
17311 vendor = _json["vendor"]; | 17311 vendor = _json["vendor"]; |
17312 } | 17312 } |
17313 } | 17313 } |
17314 | 17314 |
17315 core.Map toJson() { | 17315 core.Map<core.String, core.Object> toJson() { |
17316 var _json = new core.Map(); | 17316 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17317 if (bitrateBps != null) { | 17317 if (bitrateBps != null) { |
17318 _json["bitrateBps"] = bitrateBps; | 17318 _json["bitrateBps"] = bitrateBps; |
17319 } | 17319 } |
17320 if (channelCount != null) { | 17320 if (channelCount != null) { |
17321 _json["channelCount"] = channelCount; | 17321 _json["channelCount"] = channelCount; |
17322 } | 17322 } |
17323 if (codec != null) { | 17323 if (codec != null) { |
17324 _json["codec"] = codec; | 17324 _json["codec"] = codec; |
17325 } | 17325 } |
17326 if (vendor != null) { | 17326 if (vendor != null) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17389 rotation = _json["rotation"]; | 17389 rotation = _json["rotation"]; |
17390 } | 17390 } |
17391 if (_json.containsKey("vendor")) { | 17391 if (_json.containsKey("vendor")) { |
17392 vendor = _json["vendor"]; | 17392 vendor = _json["vendor"]; |
17393 } | 17393 } |
17394 if (_json.containsKey("widthPixels")) { | 17394 if (_json.containsKey("widthPixels")) { |
17395 widthPixels = _json["widthPixels"]; | 17395 widthPixels = _json["widthPixels"]; |
17396 } | 17396 } |
17397 } | 17397 } |
17398 | 17398 |
17399 core.Map toJson() { | 17399 core.Map<core.String, core.Object> toJson() { |
17400 var _json = new core.Map(); | 17400 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17401 if (aspectRatio != null) { | 17401 if (aspectRatio != null) { |
17402 _json["aspectRatio"] = aspectRatio; | 17402 _json["aspectRatio"] = aspectRatio; |
17403 } | 17403 } |
17404 if (bitrateBps != null) { | 17404 if (bitrateBps != null) { |
17405 _json["bitrateBps"] = bitrateBps; | 17405 _json["bitrateBps"] = bitrateBps; |
17406 } | 17406 } |
17407 if (codec != null) { | 17407 if (codec != null) { |
17408 _json["codec"] = codec; | 17408 _json["codec"] = codec; |
17409 } | 17409 } |
17410 if (frameRateFps != null) { | 17410 if (frameRateFps != null) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17454 items = _json["items"].map((value) => new VideoRating.fromJson(value)).toL
ist(); | 17454 items = _json["items"].map((value) => new VideoRating.fromJson(value)).toL
ist(); |
17455 } | 17455 } |
17456 if (_json.containsKey("kind")) { | 17456 if (_json.containsKey("kind")) { |
17457 kind = _json["kind"]; | 17457 kind = _json["kind"]; |
17458 } | 17458 } |
17459 if (_json.containsKey("visitorId")) { | 17459 if (_json.containsKey("visitorId")) { |
17460 visitorId = _json["visitorId"]; | 17460 visitorId = _json["visitorId"]; |
17461 } | 17461 } |
17462 } | 17462 } |
17463 | 17463 |
17464 core.Map toJson() { | 17464 core.Map<core.String, core.Object> toJson() { |
17465 var _json = new core.Map(); | 17465 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17466 if (etag != null) { | 17466 if (etag != null) { |
17467 _json["etag"] = etag; | 17467 _json["etag"] = etag; |
17468 } | 17468 } |
17469 if (eventId != null) { | 17469 if (eventId != null) { |
17470 _json["eventId"] = eventId; | 17470 _json["eventId"] = eventId; |
17471 } | 17471 } |
17472 if (items != null) { | 17472 if (items != null) { |
17473 _json["items"] = items.map((value) => (value).toJson()).toList(); | 17473 _json["items"] = items.map((value) => (value).toJson()).toList(); |
17474 } | 17474 } |
17475 if (kind != null) { | 17475 if (kind != null) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17534 prevPageToken = _json["prevPageToken"]; | 17534 prevPageToken = _json["prevPageToken"]; |
17535 } | 17535 } |
17536 if (_json.containsKey("tokenPagination")) { | 17536 if (_json.containsKey("tokenPagination")) { |
17537 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 17537 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
17538 } | 17538 } |
17539 if (_json.containsKey("visitorId")) { | 17539 if (_json.containsKey("visitorId")) { |
17540 visitorId = _json["visitorId"]; | 17540 visitorId = _json["visitorId"]; |
17541 } | 17541 } |
17542 } | 17542 } |
17543 | 17543 |
17544 core.Map toJson() { | 17544 core.Map<core.String, core.Object> toJson() { |
17545 var _json = new core.Map(); | 17545 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17546 if (etag != null) { | 17546 if (etag != null) { |
17547 _json["etag"] = etag; | 17547 _json["etag"] = etag; |
17548 } | 17548 } |
17549 if (eventId != null) { | 17549 if (eventId != null) { |
17550 _json["eventId"] = eventId; | 17550 _json["eventId"] = eventId; |
17551 } | 17551 } |
17552 if (items != null) { | 17552 if (items != null) { |
17553 _json["items"] = items.map((value) => (value).toJson()).toList(); | 17553 _json["items"] = items.map((value) => (value).toJson()).toList(); |
17554 } | 17554 } |
17555 if (kind != null) { | 17555 if (kind != null) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17635 concurrentViewers = _json["concurrentViewers"]; | 17635 concurrentViewers = _json["concurrentViewers"]; |
17636 } | 17636 } |
17637 if (_json.containsKey("scheduledEndTime")) { | 17637 if (_json.containsKey("scheduledEndTime")) { |
17638 scheduledEndTime = core.DateTime.parse(_json["scheduledEndTime"]); | 17638 scheduledEndTime = core.DateTime.parse(_json["scheduledEndTime"]); |
17639 } | 17639 } |
17640 if (_json.containsKey("scheduledStartTime")) { | 17640 if (_json.containsKey("scheduledStartTime")) { |
17641 scheduledStartTime = core.DateTime.parse(_json["scheduledStartTime"]); | 17641 scheduledStartTime = core.DateTime.parse(_json["scheduledStartTime"]); |
17642 } | 17642 } |
17643 } | 17643 } |
17644 | 17644 |
17645 core.Map toJson() { | 17645 core.Map<core.String, core.Object> toJson() { |
17646 var _json = new core.Map(); | 17646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17647 if (activeLiveChatId != null) { | 17647 if (activeLiveChatId != null) { |
17648 _json["activeLiveChatId"] = activeLiveChatId; | 17648 _json["activeLiveChatId"] = activeLiveChatId; |
17649 } | 17649 } |
17650 if (actualEndTime != null) { | 17650 if (actualEndTime != null) { |
17651 _json["actualEndTime"] = (actualEndTime).toIso8601String(); | 17651 _json["actualEndTime"] = (actualEndTime).toIso8601String(); |
17652 } | 17652 } |
17653 if (actualStartTime != null) { | 17653 if (actualStartTime != null) { |
17654 _json["actualStartTime"] = (actualStartTime).toIso8601String(); | 17654 _json["actualStartTime"] = (actualStartTime).toIso8601String(); |
17655 } | 17655 } |
17656 if (concurrentViewers != null) { | 17656 if (concurrentViewers != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
17677 | 17677 |
17678 VideoLocalization.fromJson(core.Map _json) { | 17678 VideoLocalization.fromJson(core.Map _json) { |
17679 if (_json.containsKey("description")) { | 17679 if (_json.containsKey("description")) { |
17680 description = _json["description"]; | 17680 description = _json["description"]; |
17681 } | 17681 } |
17682 if (_json.containsKey("title")) { | 17682 if (_json.containsKey("title")) { |
17683 title = _json["title"]; | 17683 title = _json["title"]; |
17684 } | 17684 } |
17685 } | 17685 } |
17686 | 17686 |
17687 core.Map toJson() { | 17687 core.Map<core.String, core.Object> toJson() { |
17688 var _json = new core.Map(); | 17688 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17689 if (description != null) { | 17689 if (description != null) { |
17690 _json["description"] = description; | 17690 _json["description"] = description; |
17691 } | 17691 } |
17692 if (title != null) { | 17692 if (title != null) { |
17693 _json["title"] = title; | 17693 _json["title"] = title; |
17694 } | 17694 } |
17695 return _json; | 17695 return _json; |
17696 } | 17696 } |
17697 } | 17697 } |
17698 | 17698 |
17699 /** Details about monetization of a YouTube Video. */ | 17699 /** Details about monetization of a YouTube Video. */ |
17700 class VideoMonetizationDetails { | 17700 class VideoMonetizationDetails { |
17701 /** | 17701 /** |
17702 * The value of access indicates whether the video can be monetized or not. | 17702 * The value of access indicates whether the video can be monetized or not. |
17703 */ | 17703 */ |
17704 AccessPolicy access; | 17704 AccessPolicy access; |
17705 | 17705 |
17706 VideoMonetizationDetails(); | 17706 VideoMonetizationDetails(); |
17707 | 17707 |
17708 VideoMonetizationDetails.fromJson(core.Map _json) { | 17708 VideoMonetizationDetails.fromJson(core.Map _json) { |
17709 if (_json.containsKey("access")) { | 17709 if (_json.containsKey("access")) { |
17710 access = new AccessPolicy.fromJson(_json["access"]); | 17710 access = new AccessPolicy.fromJson(_json["access"]); |
17711 } | 17711 } |
17712 } | 17712 } |
17713 | 17713 |
17714 core.Map toJson() { | 17714 core.Map<core.String, core.Object> toJson() { |
17715 var _json = new core.Map(); | 17715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17716 if (access != null) { | 17716 if (access != null) { |
17717 _json["access"] = (access).toJson(); | 17717 _json["access"] = (access).toJson(); |
17718 } | 17718 } |
17719 return _json; | 17719 return _json; |
17720 } | 17720 } |
17721 } | 17721 } |
17722 | 17722 |
17723 /** Player to be used for a video playback. */ | 17723 /** Player to be used for a video playback. */ |
17724 class VideoPlayer { | 17724 class VideoPlayer { |
17725 core.String embedHeight; | 17725 core.String embedHeight; |
17726 /** An <iframe> tag that embeds a player that will play the video. */ | 17726 /** An <iframe> tag that embeds a player that will play the video. */ |
17727 core.String embedHtml; | 17727 core.String embedHtml; |
17728 /** The embed width */ | 17728 /** The embed width */ |
17729 core.String embedWidth; | 17729 core.String embedWidth; |
17730 | 17730 |
17731 VideoPlayer(); | 17731 VideoPlayer(); |
17732 | 17732 |
17733 VideoPlayer.fromJson(core.Map _json) { | 17733 VideoPlayer.fromJson(core.Map _json) { |
17734 if (_json.containsKey("embedHeight")) { | 17734 if (_json.containsKey("embedHeight")) { |
17735 embedHeight = _json["embedHeight"]; | 17735 embedHeight = _json["embedHeight"]; |
17736 } | 17736 } |
17737 if (_json.containsKey("embedHtml")) { | 17737 if (_json.containsKey("embedHtml")) { |
17738 embedHtml = _json["embedHtml"]; | 17738 embedHtml = _json["embedHtml"]; |
17739 } | 17739 } |
17740 if (_json.containsKey("embedWidth")) { | 17740 if (_json.containsKey("embedWidth")) { |
17741 embedWidth = _json["embedWidth"]; | 17741 embedWidth = _json["embedWidth"]; |
17742 } | 17742 } |
17743 } | 17743 } |
17744 | 17744 |
17745 core.Map toJson() { | 17745 core.Map<core.String, core.Object> toJson() { |
17746 var _json = new core.Map(); | 17746 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17747 if (embedHeight != null) { | 17747 if (embedHeight != null) { |
17748 _json["embedHeight"] = embedHeight; | 17748 _json["embedHeight"] = embedHeight; |
17749 } | 17749 } |
17750 if (embedHtml != null) { | 17750 if (embedHtml != null) { |
17751 _json["embedHtml"] = embedHtml; | 17751 _json["embedHtml"] = embedHtml; |
17752 } | 17752 } |
17753 if (embedWidth != null) { | 17753 if (embedWidth != null) { |
17754 _json["embedWidth"] = embedWidth; | 17754 _json["embedWidth"] = embedWidth; |
17755 } | 17755 } |
17756 return _json; | 17756 return _json; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17844 processingStatus = _json["processingStatus"]; | 17844 processingStatus = _json["processingStatus"]; |
17845 } | 17845 } |
17846 if (_json.containsKey("tagSuggestionsAvailability")) { | 17846 if (_json.containsKey("tagSuggestionsAvailability")) { |
17847 tagSuggestionsAvailability = _json["tagSuggestionsAvailability"]; | 17847 tagSuggestionsAvailability = _json["tagSuggestionsAvailability"]; |
17848 } | 17848 } |
17849 if (_json.containsKey("thumbnailsAvailability")) { | 17849 if (_json.containsKey("thumbnailsAvailability")) { |
17850 thumbnailsAvailability = _json["thumbnailsAvailability"]; | 17850 thumbnailsAvailability = _json["thumbnailsAvailability"]; |
17851 } | 17851 } |
17852 } | 17852 } |
17853 | 17853 |
17854 core.Map toJson() { | 17854 core.Map<core.String, core.Object> toJson() { |
17855 var _json = new core.Map(); | 17855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17856 if (editorSuggestionsAvailability != null) { | 17856 if (editorSuggestionsAvailability != null) { |
17857 _json["editorSuggestionsAvailability"] = editorSuggestionsAvailability; | 17857 _json["editorSuggestionsAvailability"] = editorSuggestionsAvailability; |
17858 } | 17858 } |
17859 if (fileDetailsAvailability != null) { | 17859 if (fileDetailsAvailability != null) { |
17860 _json["fileDetailsAvailability"] = fileDetailsAvailability; | 17860 _json["fileDetailsAvailability"] = fileDetailsAvailability; |
17861 } | 17861 } |
17862 if (processingFailureReason != null) { | 17862 if (processingFailureReason != null) { |
17863 _json["processingFailureReason"] = processingFailureReason; | 17863 _json["processingFailureReason"] = processingFailureReason; |
17864 } | 17864 } |
17865 if (processingIssuesAvailability != null) { | 17865 if (processingIssuesAvailability != null) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17914 partsProcessed = _json["partsProcessed"]; | 17914 partsProcessed = _json["partsProcessed"]; |
17915 } | 17915 } |
17916 if (_json.containsKey("partsTotal")) { | 17916 if (_json.containsKey("partsTotal")) { |
17917 partsTotal = _json["partsTotal"]; | 17917 partsTotal = _json["partsTotal"]; |
17918 } | 17918 } |
17919 if (_json.containsKey("timeLeftMs")) { | 17919 if (_json.containsKey("timeLeftMs")) { |
17920 timeLeftMs = _json["timeLeftMs"]; | 17920 timeLeftMs = _json["timeLeftMs"]; |
17921 } | 17921 } |
17922 } | 17922 } |
17923 | 17923 |
17924 core.Map toJson() { | 17924 core.Map<core.String, core.Object> toJson() { |
17925 var _json = new core.Map(); | 17925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17926 if (partsProcessed != null) { | 17926 if (partsProcessed != null) { |
17927 _json["partsProcessed"] = partsProcessed; | 17927 _json["partsProcessed"] = partsProcessed; |
17928 } | 17928 } |
17929 if (partsTotal != null) { | 17929 if (partsTotal != null) { |
17930 _json["partsTotal"] = partsTotal; | 17930 _json["partsTotal"] = partsTotal; |
17931 } | 17931 } |
17932 if (timeLeftMs != null) { | 17932 if (timeLeftMs != null) { |
17933 _json["timeLeftMs"] = timeLeftMs; | 17933 _json["timeLeftMs"] = timeLeftMs; |
17934 } | 17934 } |
17935 return _json; | 17935 return _json; |
17936 } | 17936 } |
17937 } | 17937 } |
17938 | 17938 |
17939 /** Project specific details about the content of a YouTube Video. */ | 17939 /** Project specific details about the content of a YouTube Video. */ |
17940 class VideoProjectDetails { | 17940 class VideoProjectDetails { |
17941 /** A list of project tags associated with the video during the upload. */ | 17941 /** A list of project tags associated with the video during the upload. */ |
17942 core.List<core.String> tags; | 17942 core.List<core.String> tags; |
17943 | 17943 |
17944 VideoProjectDetails(); | 17944 VideoProjectDetails(); |
17945 | 17945 |
17946 VideoProjectDetails.fromJson(core.Map _json) { | 17946 VideoProjectDetails.fromJson(core.Map _json) { |
17947 if (_json.containsKey("tags")) { | 17947 if (_json.containsKey("tags")) { |
17948 tags = _json["tags"]; | 17948 tags = _json["tags"]; |
17949 } | 17949 } |
17950 } | 17950 } |
17951 | 17951 |
17952 core.Map toJson() { | 17952 core.Map<core.String, core.Object> toJson() { |
17953 var _json = new core.Map(); | 17953 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17954 if (tags != null) { | 17954 if (tags != null) { |
17955 _json["tags"] = tags; | 17955 _json["tags"] = tags; |
17956 } | 17956 } |
17957 return _json; | 17957 return _json; |
17958 } | 17958 } |
17959 } | 17959 } |
17960 | 17960 |
17961 class VideoRating { | 17961 class VideoRating { |
17962 /** | 17962 /** |
17963 * | 17963 * |
(...skipping 10 matching lines...) Expand all Loading... |
17974 | 17974 |
17975 VideoRating.fromJson(core.Map _json) { | 17975 VideoRating.fromJson(core.Map _json) { |
17976 if (_json.containsKey("rating")) { | 17976 if (_json.containsKey("rating")) { |
17977 rating = _json["rating"]; | 17977 rating = _json["rating"]; |
17978 } | 17978 } |
17979 if (_json.containsKey("videoId")) { | 17979 if (_json.containsKey("videoId")) { |
17980 videoId = _json["videoId"]; | 17980 videoId = _json["videoId"]; |
17981 } | 17981 } |
17982 } | 17982 } |
17983 | 17983 |
17984 core.Map toJson() { | 17984 core.Map<core.String, core.Object> toJson() { |
17985 var _json = new core.Map(); | 17985 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
17986 if (rating != null) { | 17986 if (rating != null) { |
17987 _json["rating"] = rating; | 17987 _json["rating"] = rating; |
17988 } | 17988 } |
17989 if (videoId != null) { | 17989 if (videoId != null) { |
17990 _json["videoId"] = videoId; | 17990 _json["videoId"] = videoId; |
17991 } | 17991 } |
17992 return _json; | 17992 return _json; |
17993 } | 17993 } |
17994 } | 17994 } |
17995 | 17995 |
(...skipping 16 matching lines...) Expand all Loading... |
18012 location = new GeoPoint.fromJson(_json["location"]); | 18012 location = new GeoPoint.fromJson(_json["location"]); |
18013 } | 18013 } |
18014 if (_json.containsKey("locationDescription")) { | 18014 if (_json.containsKey("locationDescription")) { |
18015 locationDescription = _json["locationDescription"]; | 18015 locationDescription = _json["locationDescription"]; |
18016 } | 18016 } |
18017 if (_json.containsKey("recordingDate")) { | 18017 if (_json.containsKey("recordingDate")) { |
18018 recordingDate = core.DateTime.parse(_json["recordingDate"]); | 18018 recordingDate = core.DateTime.parse(_json["recordingDate"]); |
18019 } | 18019 } |
18020 } | 18020 } |
18021 | 18021 |
18022 core.Map toJson() { | 18022 core.Map<core.String, core.Object> toJson() { |
18023 var _json = new core.Map(); | 18023 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
18024 if (location != null) { | 18024 if (location != null) { |
18025 _json["location"] = (location).toJson(); | 18025 _json["location"] = (location).toJson(); |
18026 } | 18026 } |
18027 if (locationDescription != null) { | 18027 if (locationDescription != null) { |
18028 _json["locationDescription"] = locationDescription; | 18028 _json["locationDescription"] = locationDescription; |
18029 } | 18029 } |
18030 if (recordingDate != null) { | 18030 if (recordingDate != null) { |
18031 _json["recordingDate"] = (recordingDate).toIso8601String(); | 18031 _json["recordingDate"] = (recordingDate).toIso8601String(); |
18032 } | 18032 } |
18033 return _json; | 18033 return _json; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18123 tags = _json["tags"]; | 18123 tags = _json["tags"]; |
18124 } | 18124 } |
18125 if (_json.containsKey("thumbnails")) { | 18125 if (_json.containsKey("thumbnails")) { |
18126 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 18126 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
18127 } | 18127 } |
18128 if (_json.containsKey("title")) { | 18128 if (_json.containsKey("title")) { |
18129 title = _json["title"]; | 18129 title = _json["title"]; |
18130 } | 18130 } |
18131 } | 18131 } |
18132 | 18132 |
18133 core.Map toJson() { | 18133 core.Map<core.String, core.Object> toJson() { |
18134 var _json = new core.Map(); | 18134 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
18135 if (categoryId != null) { | 18135 if (categoryId != null) { |
18136 _json["categoryId"] = categoryId; | 18136 _json["categoryId"] = categoryId; |
18137 } | 18137 } |
18138 if (channelId != null) { | 18138 if (channelId != null) { |
18139 _json["channelId"] = channelId; | 18139 _json["channelId"] = channelId; |
18140 } | 18140 } |
18141 if (channelTitle != null) { | 18141 if (channelTitle != null) { |
18142 _json["channelTitle"] = channelTitle; | 18142 _json["channelTitle"] = channelTitle; |
18143 } | 18143 } |
18144 if (defaultAudioLanguage != null) { | 18144 if (defaultAudioLanguage != null) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18210 favoriteCount = _json["favoriteCount"]; | 18210 favoriteCount = _json["favoriteCount"]; |
18211 } | 18211 } |
18212 if (_json.containsKey("likeCount")) { | 18212 if (_json.containsKey("likeCount")) { |
18213 likeCount = _json["likeCount"]; | 18213 likeCount = _json["likeCount"]; |
18214 } | 18214 } |
18215 if (_json.containsKey("viewCount")) { | 18215 if (_json.containsKey("viewCount")) { |
18216 viewCount = _json["viewCount"]; | 18216 viewCount = _json["viewCount"]; |
18217 } | 18217 } |
18218 } | 18218 } |
18219 | 18219 |
18220 core.Map toJson() { | 18220 core.Map<core.String, core.Object> toJson() { |
18221 var _json = new core.Map(); | 18221 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
18222 if (commentCount != null) { | 18222 if (commentCount != null) { |
18223 _json["commentCount"] = commentCount; | 18223 _json["commentCount"] = commentCount; |
18224 } | 18224 } |
18225 if (dislikeCount != null) { | 18225 if (dislikeCount != null) { |
18226 _json["dislikeCount"] = dislikeCount; | 18226 _json["dislikeCount"] = dislikeCount; |
18227 } | 18227 } |
18228 if (favoriteCount != null) { | 18228 if (favoriteCount != null) { |
18229 _json["favoriteCount"] = favoriteCount; | 18229 _json["favoriteCount"] = favoriteCount; |
18230 } | 18230 } |
18231 if (likeCount != null) { | 18231 if (likeCount != null) { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18331 publishAt = core.DateTime.parse(_json["publishAt"]); | 18331 publishAt = core.DateTime.parse(_json["publishAt"]); |
18332 } | 18332 } |
18333 if (_json.containsKey("rejectionReason")) { | 18333 if (_json.containsKey("rejectionReason")) { |
18334 rejectionReason = _json["rejectionReason"]; | 18334 rejectionReason = _json["rejectionReason"]; |
18335 } | 18335 } |
18336 if (_json.containsKey("uploadStatus")) { | 18336 if (_json.containsKey("uploadStatus")) { |
18337 uploadStatus = _json["uploadStatus"]; | 18337 uploadStatus = _json["uploadStatus"]; |
18338 } | 18338 } |
18339 } | 18339 } |
18340 | 18340 |
18341 core.Map toJson() { | 18341 core.Map<core.String, core.Object> toJson() { |
18342 var _json = new core.Map(); | 18342 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
18343 if (embeddable != null) { | 18343 if (embeddable != null) { |
18344 _json["embeddable"] = embeddable; | 18344 _json["embeddable"] = embeddable; |
18345 } | 18345 } |
18346 if (failureReason != null) { | 18346 if (failureReason != null) { |
18347 _json["failureReason"] = failureReason; | 18347 _json["failureReason"] = failureReason; |
18348 } | 18348 } |
18349 if (license != null) { | 18349 if (license != null) { |
18350 _json["license"] = license; | 18350 _json["license"] = license; |
18351 } | 18351 } |
18352 if (privacyStatus != null) { | 18352 if (privacyStatus != null) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18419 processingHints = _json["processingHints"]; | 18419 processingHints = _json["processingHints"]; |
18420 } | 18420 } |
18421 if (_json.containsKey("processingWarnings")) { | 18421 if (_json.containsKey("processingWarnings")) { |
18422 processingWarnings = _json["processingWarnings"]; | 18422 processingWarnings = _json["processingWarnings"]; |
18423 } | 18423 } |
18424 if (_json.containsKey("tagSuggestions")) { | 18424 if (_json.containsKey("tagSuggestions")) { |
18425 tagSuggestions = _json["tagSuggestions"].map((value) => new VideoSuggestio
nsTagSuggestion.fromJson(value)).toList(); | 18425 tagSuggestions = _json["tagSuggestions"].map((value) => new VideoSuggestio
nsTagSuggestion.fromJson(value)).toList(); |
18426 } | 18426 } |
18427 } | 18427 } |
18428 | 18428 |
18429 core.Map toJson() { | 18429 core.Map<core.String, core.Object> toJson() { |
18430 var _json = new core.Map(); | 18430 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
18431 if (editorSuggestions != null) { | 18431 if (editorSuggestions != null) { |
18432 _json["editorSuggestions"] = editorSuggestions; | 18432 _json["editorSuggestions"] = editorSuggestions; |
18433 } | 18433 } |
18434 if (processingErrors != null) { | 18434 if (processingErrors != null) { |
18435 _json["processingErrors"] = processingErrors; | 18435 _json["processingErrors"] = processingErrors; |
18436 } | 18436 } |
18437 if (processingHints != null) { | 18437 if (processingHints != null) { |
18438 _json["processingHints"] = processingHints; | 18438 _json["processingHints"] = processingHints; |
18439 } | 18439 } |
18440 if (processingWarnings != null) { | 18440 if (processingWarnings != null) { |
(...skipping 23 matching lines...) Expand all Loading... |
18464 | 18464 |
18465 VideoSuggestionsTagSuggestion.fromJson(core.Map _json) { | 18465 VideoSuggestionsTagSuggestion.fromJson(core.Map _json) { |
18466 if (_json.containsKey("categoryRestricts")) { | 18466 if (_json.containsKey("categoryRestricts")) { |
18467 categoryRestricts = _json["categoryRestricts"]; | 18467 categoryRestricts = _json["categoryRestricts"]; |
18468 } | 18468 } |
18469 if (_json.containsKey("tag")) { | 18469 if (_json.containsKey("tag")) { |
18470 tag = _json["tag"]; | 18470 tag = _json["tag"]; |
18471 } | 18471 } |
18472 } | 18472 } |
18473 | 18473 |
18474 core.Map toJson() { | 18474 core.Map<core.String, core.Object> toJson() { |
18475 var _json = new core.Map(); | 18475 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
18476 if (categoryRestricts != null) { | 18476 if (categoryRestricts != null) { |
18477 _json["categoryRestricts"] = categoryRestricts; | 18477 _json["categoryRestricts"] = categoryRestricts; |
18478 } | 18478 } |
18479 if (tag != null) { | 18479 if (tag != null) { |
18480 _json["tag"] = tag; | 18480 _json["tag"] = tag; |
18481 } | 18481 } |
18482 return _json; | 18482 return _json; |
18483 } | 18483 } |
18484 } | 18484 } |
18485 | 18485 |
(...skipping 25 matching lines...) Expand all Loading... |
18511 relevantTopicIds = _json["relevantTopicIds"]; | 18511 relevantTopicIds = _json["relevantTopicIds"]; |
18512 } | 18512 } |
18513 if (_json.containsKey("topicCategories")) { | 18513 if (_json.containsKey("topicCategories")) { |
18514 topicCategories = _json["topicCategories"]; | 18514 topicCategories = _json["topicCategories"]; |
18515 } | 18515 } |
18516 if (_json.containsKey("topicIds")) { | 18516 if (_json.containsKey("topicIds")) { |
18517 topicIds = _json["topicIds"]; | 18517 topicIds = _json["topicIds"]; |
18518 } | 18518 } |
18519 } | 18519 } |
18520 | 18520 |
18521 core.Map toJson() { | 18521 core.Map<core.String, core.Object> toJson() { |
18522 var _json = new core.Map(); | 18522 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
18523 if (relevantTopicIds != null) { | 18523 if (relevantTopicIds != null) { |
18524 _json["relevantTopicIds"] = relevantTopicIds; | 18524 _json["relevantTopicIds"] = relevantTopicIds; |
18525 } | 18525 } |
18526 if (topicCategories != null) { | 18526 if (topicCategories != null) { |
18527 _json["topicCategories"] = topicCategories; | 18527 _json["topicCategories"] = topicCategories; |
18528 } | 18528 } |
18529 if (topicIds != null) { | 18529 if (topicIds != null) { |
18530 _json["topicIds"] = topicIds; | 18530 _json["topicIds"] = topicIds; |
18531 } | 18531 } |
18532 return _json; | 18532 return _json; |
(...skipping 19 matching lines...) Expand all Loading... |
18552 backgroundColor = _json["backgroundColor"]; | 18552 backgroundColor = _json["backgroundColor"]; |
18553 } | 18553 } |
18554 if (_json.containsKey("featuredPlaylistId")) { | 18554 if (_json.containsKey("featuredPlaylistId")) { |
18555 featuredPlaylistId = _json["featuredPlaylistId"]; | 18555 featuredPlaylistId = _json["featuredPlaylistId"]; |
18556 } | 18556 } |
18557 if (_json.containsKey("textColor")) { | 18557 if (_json.containsKey("textColor")) { |
18558 textColor = _json["textColor"]; | 18558 textColor = _json["textColor"]; |
18559 } | 18559 } |
18560 } | 18560 } |
18561 | 18561 |
18562 core.Map toJson() { | 18562 core.Map<core.String, core.Object> toJson() { |
18563 var _json = new core.Map(); | 18563 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
18564 if (backgroundColor != null) { | 18564 if (backgroundColor != null) { |
18565 _json["backgroundColor"] = backgroundColor; | 18565 _json["backgroundColor"] = backgroundColor; |
18566 } | 18566 } |
18567 if (featuredPlaylistId != null) { | 18567 if (featuredPlaylistId != null) { |
18568 _json["featuredPlaylistId"] = featuredPlaylistId; | 18568 _json["featuredPlaylistId"] = featuredPlaylistId; |
18569 } | 18569 } |
18570 if (textColor != null) { | 18570 if (textColor != null) { |
18571 _json["textColor"] = textColor; | 18571 _json["textColor"] = textColor; |
18572 } | 18572 } |
18573 return _json; | 18573 return _json; |
18574 } | 18574 } |
18575 } | 18575 } |
OLD | NEW |