v1 release
This commit is contained in:
commit
cb24b68069
116 changed files with 4913 additions and 0 deletions
23
lib/data/models/message/message.dart
Normal file
23
lib/data/models/message/message.dart
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "message.freezed.dart";
|
||||
part "message.g.dart";
|
||||
|
||||
@freezed
|
||||
class TMMessage with _$TMMessage {
|
||||
factory TMMessage({
|
||||
required String id,
|
||||
required Map<String, String> from,
|
||||
required List<Map<String, String>> to,
|
||||
required String? intro,
|
||||
required String subject,
|
||||
required bool seen,
|
||||
required bool isDeleted,
|
||||
required bool hasAttachments,
|
||||
required String downloadUrl,
|
||||
required DateTime createdAt,
|
||||
}) = _TMMessage;
|
||||
|
||||
factory TMMessage.fromJson(Map<String, dynamic> json) =>
|
||||
_$TMMessageFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue