V2TimMessageSearchParam.fromJson constructor

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

Implementation

V2TimMessageSearchParam.fromJson(Map<String, dynamic> 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'];
}