import "package:fast_immutable_collections/fast_immutable_collections.dart"; import "package:freezed_annotation/freezed_annotation.dart"; part "room_chat.freezed.dart"; part "room_chat.g.dart"; @Freezed(toJson: false, fromJson: false) @JsonSerializable() class const RoomChat({ /// List of eventRowId required final IList timeline, required final bool hasMoreForward, required final bool hasMoreBackward, final HistoricalData? historicalData, }) with _$RoomChat { Map toJson() => _$RoomChatToJson(this); factory RoomChat.fromJson(Map json) => _$RoomChatFromJson(json); } @Freezed(toJson: false, fromJson: false) @JsonSerializable() class const HistoricalData({ required final String start, required final String end, }) with _$HistoricalData { Map toJson() => _$HistoricalDataToJson(this); factory HistoricalData.fromJson(Map json) => _$HistoricalDataFromJson(json); }