Repost.fromJson constructor
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'),
);
}