toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['msg_receipt_conv_type'] = TIMConvType.kTIMConv_C2C.value;
  data['msg_receipt_conv_id'] = userID;
  data['msg_receipt_time_stamp'] = timestamp;
  if (groupID != null) {
    data['msg_receipt_conv_id'] = groupID;
    data['msg_receipt_conv_type'] = TIMConvType.kTIMConv_Group.value;
  }
  data['msg_receipt_msg_id'] = msgID;
  data['msg_receipt_read_count'] = readCount;
  data['msg_receipt_unread_count'] = unreadCount;
  data["msg_receipt_is_peer_read"] = isPeerRead;
  return data;
}