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