create static method
YoutubeVideoComments
create({
- String? special_type,
- int? count,
- List<
YoutubeVideoComment> ? comments,
override
return original data json
Implementation
static YoutubeVideoComments create({
String? special_type,
int? count,
List<YoutubeVideoComment>? comments,
}) {
YoutubeVideoComments youtubeVideoComments = YoutubeVideoComments({
"@type": special_type,
"count": count,
"comments": (comments != null)
? comments.map((res) => res.toJson()).toList().cast<Map>()
: null,
});
return youtubeVideoComments;
}