create static method

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