create static method

YoutubeSearchVideos create({
  1. String? special_type,
  2. int? count,
  3. 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;
}