ReadReceiptInfo.fromJson constructor

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

Implementation

ReadReceiptInfo.fromJson(Map<String, dynamic> json) {
  userID = json['uid'] ?? json['userID'];
  groupID = json['groupID'];
  if (json['msgIDList'] is List) {
    msgIDList = (json['msgIDList'] as List).map((e) => '$e').toList();
  }
  readTime = json['readTime'];
  msgFrom = json['msgFrom'];
  contentType = json['contentType'];
  sessionType = json['sessionType'];
}