Comment.fromJson constructor

Comment.fromJson(
  1. Map json_
)

Implementation

Comment.fromJson(core.Map json_)
    : this(
        anchor: json_.containsKey('anchor')
            ? json_['anchor'] as core.String
            : null,
        author: json_.containsKey('author')
            ? User.fromJson(
                json_['author'] as core.Map<core.String, core.dynamic>)
            : null,
        content: json_.containsKey('content')
            ? json_['content'] as core.String
            : null,
        createdTime: json_.containsKey('createdTime')
            ? core.DateTime.parse(json_['createdTime'] as core.String)
            : null,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : null,
        htmlContent: json_.containsKey('htmlContent')
            ? json_['htmlContent'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        modifiedTime: json_.containsKey('modifiedTime')
            ? core.DateTime.parse(json_['modifiedTime'] as core.String)
            : null,
        quotedFileContent: json_.containsKey('quotedFileContent')
            ? CommentQuotedFileContent.fromJson(json_['quotedFileContent']
                as core.Map<core.String, core.dynamic>)
            : null,
        replies: json_.containsKey('replies')
            ? (json_['replies'] as core.List)
                .map((value) => Reply.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resolved: json_.containsKey('resolved')
            ? json_['resolved'] as core.bool
            : null,
      );