ChannelStatistics.fromJson constructor

ChannelStatistics.fromJson(
  1. Map json_
)

Implementation

ChannelStatistics.fromJson(core.Map json_)
    : this(
        commentCount: json_.containsKey('commentCount')
            ? json_['commentCount'] as core.String
            : null,
        hiddenSubscriberCount: json_.containsKey('hiddenSubscriberCount')
            ? json_['hiddenSubscriberCount'] as core.bool
            : null,
        subscriberCount: json_.containsKey('subscriberCount')
            ? json_['subscriberCount'] as core.String
            : null,
        videoCount: json_.containsKey('videoCount')
            ? json_['videoCount'] as core.String
            : null,
        viewCount: json_.containsKey('viewCount')
            ? json_['viewCount'] as core.String
            : null,
      );