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_.containsKey('authorChannelUrl')
            ? json_['authorChannelUrl'] as core.String
            : null,
        authorDisplayName: json_.containsKey('authorDisplayName')
            ? json_['authorDisplayName'] as core.String
            : null,
        authorProfileImageUrl: json_.containsKey('authorProfileImageUrl')
            ? json_['authorProfileImageUrl'] as core.String
            : null,
        canRate: json_.containsKey('canRate')
            ? json_['canRate'] as core.bool
            : null,
        channelId: json_.containsKey('channelId')
            ? json_['channelId'] as core.String
            : null,
        likeCount: json_.containsKey('likeCount')
            ? json_['likeCount'] as core.int
            : null,
        moderationStatus: json_.containsKey('moderationStatus')
            ? json_['moderationStatus'] as core.String
            : null,
        parentId: json_.containsKey('parentId')
            ? json_['parentId'] as core.String
            : null,
        publishedAt: json_.containsKey('publishedAt')
            ? core.DateTime.parse(json_['publishedAt'] as core.String)
            : null,
        textDisplay: json_.containsKey('textDisplay')
            ? json_['textDisplay'] as core.String
            : null,
        textOriginal: json_.containsKey('textOriginal')
            ? json_['textOriginal'] as core.String
            : null,
        updatedAt: json_.containsKey('updatedAt')
            ? core.DateTime.parse(json_['updatedAt'] as core.String)
            : null,
        videoId: json_.containsKey('videoId')
            ? json_['videoId'] as core.String
            : null,
        viewerRating: json_.containsKey('viewerRating')
            ? json_['viewerRating'] as core.String
            : null,
      );