toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['conversationID'] = conversationID;
  data['keywordList'] = keywordList;
  data['type'] = type;
  data['userIDList'] =
      userIDList ?? List.empty(growable: true);
  data['messageTypeList'] = messageTypeList ?? List.empty(growable: true);
  data['searchTimePosition'] = searchTimePosition;
  data['searchTimePeriod'] = searchTimePeriod;
  data['pageSize'] = pageSize;
  data['pageIndex'] = pageIndex;
  return data;
}