forked from Nexus/nexus
parent
a54004736b
commit
0fcbc275cd
1 changed files with 326 additions and 1 deletions
14
lib/models/typing.dart
Normal file
14
lib/models/typing.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import "package:fast_immutable_collections/fast_immutable_collections.dart";
|
||||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "typing.freezed.dart";
|
||||
part "typing.g.dart";
|
||||
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable(createToJson: false)
|
||||
class const Typing({
|
||||
required final String roomId,
|
||||
final IList<String> userIds = const .empty(),
|
||||
}) with _$Typing {
|
||||
factory Typing.fromJson(Map<String, Object?> json) => _$TypingFromJson(json);
|
||||
}
|
||||
Loading…
Reference in a new issue