22 lines
579 B
Dart
22 lines
579 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'message_bean.g.dart';
|
|
|
|
///标签
|
|
@JsonSerializable(explicitToJson: true)
|
|
class MessageBean {
|
|
int? id;
|
|
String? name;
|
|
String? biography;
|
|
String? iconImage;
|
|
String? lastContactTime;
|
|
String? lastMessage;
|
|
bool? isMemoryCard;
|
|
|
|
MessageBean(this.id, this.name, this.biography, this.iconImage, this.lastContactTime, this.lastMessage, this.isMemoryCard);
|
|
|
|
factory MessageBean.fromJson(Map<String, dynamic> json) => _$MessageBeanFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$MessageBeanToJson(this);
|
|
}
|