feat:增加服务器接口模块
This commit is contained in:
20
lib/models/ImMessage.dart
Normal file
20
lib/models/ImMessage.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
class ImMessage {
|
||||
final String type;
|
||||
final String from;
|
||||
final String to;
|
||||
final String content;
|
||||
|
||||
ImMessage({
|
||||
required this.type,
|
||||
required this.from,
|
||||
required this.to,
|
||||
required this.content,
|
||||
});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'type': type,
|
||||
'from': from,
|
||||
'to': to,
|
||||
'content': content,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user