CommentReply.fromJson constructor

CommentReply.fromJson(
  1. Map json_
)

Implementation

CommentReply.fromJson(core.Map json_)
  : this(
      author:
          json_.containsKey('author')
              ? User.fromJson(
                json_['author'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      content: json_['content'] as core.String?,
      createdDate:
          json_.containsKey('createdDate')
              ? core.DateTime.parse(json_['createdDate'] as core.String)
              : null,
      deleted: json_['deleted'] as core.bool?,
      htmlContent: json_['htmlContent'] as core.String?,
      kind: json_['kind'] as core.String?,
      modifiedDate:
          json_.containsKey('modifiedDate')
              ? core.DateTime.parse(json_['modifiedDate'] as core.String)
              : null,
      replyId: json_['replyId'] as core.String?,
      verb: json_['verb'] as core.String?,
    );