Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus
nexus/lib/models/mentions_response.dart

16 lines
593 B
Dart

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);
}