groupBaseInfo2DartGroupInfo static method

V2TimGroupInfo groupBaseInfo2DartGroupInfo(
  1. dynamic jsonInfo
)

Implementation

static V2TimGroupInfo groupBaseInfo2DartGroupInfo(jsonInfo) {
  return V2TimGroupInfo.fromJson({
    "groupID": jsonInfo["group_base_info_group_id"],
    "groupType": groupType2Dart(jsonInfo["group_base_info_group_type"]),
    "groupName": jsonInfo["group_base_info_group_name"],
    "faceUrl": jsonInfo["group_base_info_face_url"],
    "isAllMuted": jsonInfo["group_base_info_is_shutup_all"],
    "role": jsonInfo["group_base_info_self_info"]["group_self_info_role"],
    "joinTime": jsonInfo["group_base_info_self_info"]["group_self_info_join_time"],
  });
}