generateNativeMemberListByDartParam static method
List<Map<String, dynamic>>
generateNativeMemberListByDartParam(
- List<V2TimGroupMember> memberList
)
Implementation
static List<Map<String, dynamic>> generateNativeMemberListByDartParam(List<V2TimGroupMember> memberList) {
List<Map<String, dynamic>> res = List<Map<String, dynamic>>.empty(growable: true);
for (V2TimGroupMember element in memberList) {
Map<String, dynamic> nativeMap = Map.from({
"group_member_info_identifier": element.userID,
"group_member_info_member_role": element.role.index,
});
res.add(nativeMap);
}
return res;
}