ChatListMo.fromJson constructor

ChatListMo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

ChatListMo.fromJson(Map<String, dynamic> json) {
  gmtModified = json['gmtModified'];
  gmtCreateCn = json['gmtCreateCn'];
  msgType = json['msgType'];
  receiveUid = json['receiveUid'];
  converseId = json['converseId'];
  isRead = json['isRead'];
  sendUid = json['sendUid'];
  id = json['id'];
  gmtCreate = json['gmtCreate'];
  contentType = json['contentType'];
  content = json['content'];
  icon = json['icon'];
  nobilityType = json['nobilityType'];
  giftName = json['giftName'];
  giftNum = json['giftNum'] ?? 1;
  giftIcon = json['giftIcon'] ?? '';
}