CommentThreadSnippet.fromJson constructor

CommentThreadSnippet.fromJson(
  1. Map json_
)

Implementation

CommentThreadSnippet.fromJson(core.Map json_)
  : this(
      canReply: json_['canReply'] as core.bool?,
      channelId: json_['channelId'] as core.String?,
      isPublic: json_['isPublic'] as core.bool?,
      postId: json_['postId'] as core.String?,
      topLevelComment:
          json_.containsKey('topLevelComment')
              ? Comment.fromJson(
                json_['topLevelComment']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      totalReplyCount: json_['totalReplyCount'] as core.int?,
      videoId: json_['videoId'] as core.String?,
    );