userProfile2DartUserFullInfo static method

V2TimUserFullInfo userProfile2DartUserFullInfo(
  1. dynamic jsonInfo
)

Implementation

static V2TimUserFullInfo userProfile2DartUserFullInfo(jsonInfo) {
  return V2TimUserFullInfo.fromJson({
    "userID": jsonInfo["user_profile_identifier"],
    "nickName": jsonInfo["user_profile_nick_name"],
    "faceUrl": jsonInfo["user_profile_face_url"],
    "selfSignature": jsonInfo["user_profile_self_signature"],
    "gender": jsonInfo["user_profile_gender"],
    "allowType": jsonInfo["user_profile_add_permission"],
    "role": jsonInfo["user_profile_role"],
    "level": jsonInfo["user_profile_level"],
    "birthday": jsonInfo["user_profile_birthday"],
    "customInfo": convert2DartMap(jsonInfo["user_profile_custom_string_array"], "user_profile_custom_string_info_key", "user_profile_custom_string_info_value"),
  });
}