V2TimMessageSearchResult.fromJson constructor
Implementation
V2TimMessageSearchResult.fromJson(Map<String, dynamic> json) {
totalCount = json['totalCount'];
if (json['messageSearchResultItems'] != null) {
messageSearchResultItems = List.empty(growable: true);
json['messageSearchResultItems'].forEach((v) {
messageSearchResultItems!
.add(V2TimMessageSearchResultItem.fromJson(v));
});
}
}