V2TimGroupSearchParam.fromJson constructor
V2TimGroupSearchParam.fromJson(
- Map json
Implementation
V2TimGroupSearchParam.fromJson(Map json) {
json = Utils.formatJson(json);
keywordList = json['group_search_params_keyword_list']?.cast<String>() ?? [];
List<int> searchFieldList = json['group_search_params_field_list']?.cast<int>() ?? [];
for (int searchField in searchFieldList) {
if (searchField == _kTIMGroupSearchFieldKey_GroupId) {
isSearchGroupID = true;
} else if (searchField == _kTIMGroupSearchFieldKey_GroupName) {
isSearchGroupName = true;
}
}
}