V2TimMessageSearchResult.fromJson constructor

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

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));
    });
  }
}