20 lines
497 B
Dart
20 lines
497 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;
|
|
|
|
MessageBean(this.id, this.name, this.biography, this.iconImage, this.lastContactTime);
|
|
|
|
factory MessageBean.fromJson(Map<String, dynamic> json) => _$MessageBeanFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$MessageBeanToJson(this);
|
|
}
|