CommentSnippet.fromJson constructor

CommentSnippet.fromJson(
  1. Map json_
)

Implementation

CommentSnippet.fromJson(core.Map json_)
    : this(
        authorChannelId: json_.containsKey('authorChannelId')
            ? CommentSnippetAuthorChannelId.fromJson(json_['authorChannelId']
                as core.Map<core.String, core.dynamic>)
            : null,
        authorChannelUrl: json_['authorChannelUrl'] as core.String?,
        authorDisplayName: json_['authorDisplayName'] as core.String?,
        authorProfileImageUrl: json_['authorProfileImageUrl'] as core.String?,
        canRate: json_['canRate'] as core.bool?,
        channelId: json_['channelId'] as core.String?,
        likeCount: json_['likeCount'] as core.int?,
        moderationStatus: json_['moderationStatus'] as core.String?,
        parentId: json_['parentId'] as core.String?,
        publishedAt: json_.containsKey('publishedAt')
            ? core.DateTime.parse(json_['publishedAt'] as core.String)
            : null,
        textDisplay: json_['textDisplay'] as core.String?,
        textOriginal: json_['textOriginal'] as core.String?,
        updatedAt: json_.containsKey('updatedAt')
            ? core.DateTime.parse(json_['updatedAt'] as core.String)
            : null,
        videoId: json_['videoId'] as core.String?,
        viewerRating: json_['viewerRating'] as core.String?,
      );