TimelinePostReaction.fromJson constructor
Implementation
factory TimelinePostReaction.fromJson(
String id,
String postId,
Map<String, dynamic> json,
) =>
TimelinePostReaction(
id: id,
postId: postId,
creatorId: json['creator_id'] as String,
reaction: json['reaction'] as String?,
imageUrl: json['image_url'] as String?,
createdAt: DateTime.parse(json['created_at'] as String),
createdAtString: json['created_at'] as String,
);