store related events for mentions
This commit is contained in:
parent
66a437094a
commit
24e516e6dd
3 changed files with 25 additions and 9 deletions
16
lib/models/mentions_response.dart
Normal file
16
lib/models/mentions_response.dart
Normal 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);
|
||||
}
|
||||
Loading…
Reference in a new issue