CommentReaction.fromJson constructor

CommentReaction.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CommentReaction.fromJson(Map<String, dynamic> json) => CommentReaction(
      id: _requiredString(json, 'id'),
      commentId: _requiredString(json, 'commentId'),
      userId: _requiredString(json, 'userId'),
      type: _requiredString(json, 'type'),
      createdAt: _requiredDateTime(json, 'createdAt'),
    );