this repo has no description
at main 19 lines 586 B view raw
1import 'package:freezed_annotation/freezed_annotation.dart'; 2 3part 'create_comment_request.freezed.dart'; 4part 'create_comment_request.g.dart'; 5 6/// Request model for creating a comment. 7/// See lexicon: social.grain.comment.createComment 8@freezed 9class CreateCommentRequest with _$CreateCommentRequest { 10 const factory CreateCommentRequest({ 11 required String text, 12 required String subject, 13 String? focus, 14 String? replyTo, 15 }) = _CreateCommentRequest; 16 17 factory CreateCommentRequest.fromJson(Map<String, dynamic> json) => 18 _$CreateCommentRequestFromJson(json); 19}