V2TimMessageSearchParam.fromJson constructor
V2TimMessageSearchParam.fromJson(
- Map json
Implementation
V2TimMessageSearchParam.fromJson(Map json) {
json = Utils.formatJson(json);
conversationID = json['conversationID'];
keywordList = json['keywordList'] == null
? List.empty(growable: true)
: json['keywordList'].cast<String>();
type = json['type'];
userIDList = json['userIDList'] == null
? List.empty(growable: true)
: json['userIDList'].cast<String>();
messageTypeList = json['messageTypeList'] == null
? List.empty(growable: true)
: json['messageTypeList'].cast<int>();
searchTimePosition = json['searchTimePosition'];
searchTimePeriod = json['searchTimePeriod'];
pageSize = json['pageSize'];
pageIndex = json['pageIndex'];
searchCount = json["searchCount"] ?? 10;
searchCursor = json["searchCursor"] ?? "";
}