store related events for mentions

This commit is contained in:
Henry Hiles 2026-10-15 00:44:08 -04:00
commit 24e516e6dd
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 25 additions and 9 deletions

View file

@ -0,0 +1,16 @@
import "package:fast_immutable_collections/fast_immutable_collections.dart";
import "package:freezed_annotation/freezed_annotation.dart";
import "package:nexus/models/event.dart";
part "mentions_response.freezed.dart";
part "mentions_response.g.dart";
@Freezed(toJson: false, fromJson: false)
@JsonSerializable(createToJson: false)
class const MentionsResponse({
required final IList<Event> events,
final IList<Event> relatedEvents = const .empty(),
}) with _$MentionsResponse {
factory MentionsResponse.fromJson(Map<String, Object?> json) =>
_$MentionsResponseFromJson(json);
}