at main 645 B view raw
1import 'package:freezed_annotation/freezed_annotation.dart'; 2import 'package:grain/models/gallery.dart'; 3import 'package:grain/models/profile.dart'; 4 5import 'gallery_photo.dart'; 6 7part 'comment.freezed.dart'; 8part 'comment.g.dart'; 9 10@freezed 11class Comment with _$Comment { 12 const factory Comment({ 13 required String uri, 14 required String cid, 15 required Profile author, 16 required String text, 17 required Gallery subject, 18 String? replyTo, 19 String? createdAt, 20 GalleryPhoto? focus, 21 List<Map<String, dynamic>>? facets, 22 }) = _Comment; 23 24 factory Comment.fromJson(Map<String, dynamic> json) => _$CommentFromJson(json); 25}