import 'package:freezed_annotation/freezed_annotation.dart'; part 'create_comment_request.freezed.dart'; part 'create_comment_request.g.dart'; /// Request model for creating a comment. /// See lexicon: social.grain.comment.createComment @freezed class CreateCommentRequest with _$CreateCommentRequest { const factory CreateCommentRequest({ required String text, required String subject, String? focus, String? replyTo, }) = _CreateCommentRequest; factory CreateCommentRequest.fromJson(Map json) => _$CreateCommentRequestFromJson(json); }