parent
40f5d0f459
commit
f6aaf49164
2 changed files with 1041 additions and 144 deletions
16
lib/models/configs/event.dart
Normal file
16
lib/models/configs/event.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "event.freezed.dart";
|
||||
part "event.g.dart";
|
||||
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class const EventConfig({
|
||||
required final String roomId,
|
||||
required final int eventRowId,
|
||||
}) with _$EventConfig {
|
||||
Map<String, Object?> toJson() => _$EventConfigToJson(this);
|
||||
|
||||
factory EventConfig.fromJson(Map<String, Object?> json) =>
|
||||
_$EventConfigFromJson(json);
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "reactions.freezed.dart";
|
||||
part "reactions.g.dart";
|
||||
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class const ReactionsConfig({
|
||||
required final String roomId,
|
||||
required final int eventRowId,
|
||||
}) with _$ReactionsConfig {
|
||||
Map<String, Object?> toJson() => _$ReactionsConfigToJson(this);
|
||||
|
||||
factory ReactionsConfig.fromJson(Map<String, Object?> json) =>
|
||||
_$ReactionsConfigFromJson(json);
|
||||
}
|
||||
Loading…
Reference in a new issue