membersResult2DartSearchResult static method

V2GroupMemberInfoSearchResult membersResult2DartSearchResult(
  1. dynamic jsonResult
)

Implementation

static V2GroupMemberInfoSearchResult membersResult2DartSearchResult(jsonResult) {
  Map<String, dynamic> map = {};
  if (jsonResult != null) {
    for (dynamic item in jsonResult) {
      List list = List.empty(growable: true);
      for (dynamic info in item["group_search_member_result_member_info_list"]) {
        list.add(memberInfo2DartFullInfo(item));
      }
      map.addAll({item["group_search_member_result_groupid"]: list});
    }
  }
  return V2GroupMemberInfoSearchResult.fromJson({
    "groupMemberSearchResultItems": map,
  });
}