Erweiterungen
This commit is contained in:
1 parent
550c11cb58
commit
fcda77177a
9 files changed
+1275
-13
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'message.g.dart';
|
||||
|
||||
@collection
|
||||
@JsonSerializable()
|
||||
class Message {
|
||||
late Id id;
|
||||
|
||||
late String time;
|
||||
|
||||
late String from;
|
||||
|
||||
late String subj;
|
||||
|
||||
late List<String> text;
|
||||
|
||||
Message();
|
||||
|
||||
factory Message.fromJson(Map<String, dynamic> json) => _$MessageFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$MessageToJson(this);
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user