Repost.fromJson constructor

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

Implementation

factory Repost.fromJson(Map<String, dynamic> json) {
  return Repost(
    id: _requiredString(json, 'id'),
    postId: _requiredString(json, 'postId'),
    userId: _requiredString(json, 'userId'),
    createdAt: _requiredDateTime(json, 'createdAt'),
  );
}