$LiveAnchorFromJson function
Implementation
LiveAnchor $LiveAnchorFromJson(Map<String, dynamic> json) {
final LiveAnchor liveAnchor = LiveAnchor();
final String? nickname = jsonConvert.convert<String>(json['nickname']);
if (nickname != null) {
liveAnchor.nickname = nickname;
}
final String? userId = jsonConvert.convert<String>(json['userId']);
if (userId != null) {
liveAnchor.userId = userId;
}
final String? online = jsonConvert.convert<String>(json['online']);
if (online != null) {
liveAnchor.online = online;
}
final String? pic = jsonConvert.convert<String>(json['pic']);
if (pic != null) {
liveAnchor.pic = pic;
}
final String? birthday = jsonConvert.convert<String>(json['birthday']);
if (birthday != null) {
liveAnchor.birthday = birthday;
}
final String? gender = jsonConvert.convert<String>(json['gender']);
if (gender != null) {
liveAnchor.gender = gender;
}
final String? signature = jsonConvert.convert<String>(json['signature']);
if (signature != null) {
liveAnchor.signature = signature;
}
final bool? check = jsonConvert.convert<bool>(json['check']);
if (check != null) {
liveAnchor.check = check;
}
return liveAnchor;
}