VideoStatistics.fromJson constructor

VideoStatistics.fromJson(
  1. Map json_
)

Implementation

VideoStatistics.fromJson(core.Map json_)
    : this(
        commentCount: json_.containsKey('commentCount')
            ? json_['commentCount'] as core.String
            : null,
        dislikeCount: json_.containsKey('dislikeCount')
            ? json_['dislikeCount'] as core.String
            : null,
        favoriteCount: json_.containsKey('favoriteCount')
            ? json_['favoriteCount'] as core.String
            : null,
        likeCount: json_.containsKey('likeCount')
            ? json_['likeCount'] as core.String
            : null,
        viewCount: json_.containsKey('viewCount')
            ? json_['viewCount'] as core.String
            : null,
      );