class MemberInfoModel { MemberInfoModel({ this.mid, this.name, this.sex, this.face, this.sign, this.level, this.isFollowed, this.topPhoto, this.official, this.vip, this.liveRoom, }); int? mid; String? name; String? sex; String? face; String? sign; int? level; bool? isFollowed; String? topPhoto; Map? official; Vip? vip; LiveRoom? liveRoom; MemberInfoModel.fromJson(Map json) { mid = json['mid']; name = json['name']; sex = json['sex']; face = json['face']; sign = json['sign'] == '' ? '该用户还没有签名' : json['sign'].replaceAll('\n', ''); level = json['level']; isFollowed = json['is_followed']; topPhoto = json['top_photo']; official = json['official']; vip = Vip.fromJson(json['vip']); liveRoom = json['live_room'] != null ? LiveRoom.fromJson(json['live_room']) : null; } } class Vip { Vip({ this.type, this.status, this.dueDate, this.label, this.nicknameColor, }); int? type; int? status; int? dueDate; Map? label; int? nicknameColor; Vip.fromJson(Map json) { type = json['type']; status = json['status']; dueDate = json['due_date']; label = json['label']; nicknameColor = json['nickname_color'] == '' ? null : int.parse("0xFF${json['nickname_color'].replaceAll('#', '')}"); } } class LiveRoom { LiveRoom({ this.roomStatus, this.liveStatus, this.url, this.title, this.cover, this.roomId, this.roundStatus, this.watchedShow, }); int? roomStatus; int? liveStatus; String? url; String? title; String? cover; int? roomId; int? roundStatus; Map? watchedShow; LiveRoom.fromJson(Map json) { roomStatus = json['roomStatus']; liveStatus = json['liveStatus']; url = json['url']; title = json['title']; cover = json['cover']; roomId = json['roomid']; roundStatus = json['roundStatus']; watchedShow = json['watched_show']; } }