$AnchorEntityFromJson function

AnchorEntity $AnchorEntityFromJson(
  1. Map<String, dynamic> json
)

Implementation

AnchorEntity $AnchorEntityFromJson(Map<String, dynamic> json) {
	final AnchorEntity anchorEntity = AnchorEntity();
	final List<AnchorGift>? gift = jsonConvert.convertListNotNull<AnchorGift>(json['gift']);
	if (gift != null) {
		anchorEntity.gift = gift;
	}
	final String? country = jsonConvert.convert<String>(json['country']);
	if (country != null) {
		anchorEntity.country = country;
	}
	final String? cost = jsonConvert.convert<String>(json['cost']);
	if (cost != null) {
		anchorEntity.cost = cost;
	}
	final String? signature = jsonConvert.convert<String>(json['signature']);
	if (signature != null) {
		anchorEntity.signature = signature;
	}
	final List<AnchorLabelNum>? labelNum = jsonConvert.convertListNotNull<AnchorLabelNum>(json['labelNum']);
	if (labelNum != null) {
		anchorEntity.labelNum = labelNum;
	}
	final String? headImage = jsonConvert.convert<String>(json['headImage']);
	if (headImage != null) {
		anchorEntity.headImage = headImage;
	}
	final List<String>? language = jsonConvert.convertListNotNull<String>(json['language']);
	if (language != null) {
		anchorEntity.language = language;
	}
	final List<AnchorPic>? pic = jsonConvert.convertListNotNull<AnchorPic>(json['pic']);
	if (pic != null) {
		anchorEntity.pic = pic;
	}
	final List<AnchorEntityAchieves>? achieves = jsonConvert.convertListNotNull<AnchorEntityAchieves>(json['achieves']);
	if (achieves != null) {
		anchorEntity.achieves = achieves;
	}
	final String? down = jsonConvert.convert<String>(json['down']);
	if (down != null) {
		anchorEntity.down = down;
	}
	final String? answerRate = jsonConvert.convert<String>(json['answerRate']);
	if (answerRate != null) {
		anchorEntity.answerRate = answerRate;
	}
	final String? nickname = jsonConvert.convert<String>(json['nickname']);
	if (nickname != null) {
		anchorEntity.nickname = nickname;
	}
	final String? online = jsonConvert.convert<String>(json['online']);
	if (online != null) {
		anchorEntity.online = online;
	}
	final String? isCare = jsonConvert.convert<String>(json['isCare']);
	if (isCare != null) {
		anchorEntity.isCare = isCare;
	}
	final String? shareUrl = jsonConvert.convert<String>(json['shareUrl']);
	if (shareUrl != null) {
		anchorEntity.shareUrl = shareUrl;
	}
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		anchorEntity.id = id;
	}
	final String? up = jsonConvert.convert<String>(json['up']);
	if (up != null) {
		anchorEntity.up = up;
	}
	final String? age = jsonConvert.convert<String>(json['age']);
	if (age != null) {
		anchorEntity.age = age;
	}
	final String? birthday = jsonConvert.convert<String>(json['birthday']);
	if (birthday != null) {
		anchorEntity.birthday = birthday;
	}
	final String? followNum = jsonConvert.convert<String>(json['followNum']);
	if (followNum != null) {
		anchorEntity.followNum = followNum;
	}
	final String? gender = jsonConvert.convert<String>(json['gender']);
	if (gender != null) {
		anchorEntity.gender = gender;
	}
	final List<String>? anchorLabel = jsonConvert.convertListNotNull<String>(json['anchorLabel']);
	if (anchorLabel != null) {
		anchorEntity.anchorLabel = anchorLabel;
	}
	final String? videoId = jsonConvert.convert<String>(json['videoId']);
	if (videoId != null) {
		anchorEntity.videoId = videoId;
	}
	final String? videoPic = jsonConvert.convert<String>(json['videoPic']);
	if (videoPic != null) {
		anchorEntity.videoPic = videoPic;
	}
	final bool? localData = jsonConvert.convert<bool>(json['localData']);
	if (localData != null) {
		anchorEntity.localData = localData;
	}
	final int? sort = jsonConvert.convert<int>(json['sort']);
	if (sort != null) {
		anchorEntity.sort = sort;
	}
	final int? ab = jsonConvert.convert<int>(json['ab']);
	if (ab != null) {
		anchorEntity.ab = ab;
	}
	final int? userVideoId = jsonConvert.convert<int>(json['userVideoId']);
	if (userVideoId != null) {
		anchorEntity.userVideoId = userVideoId;
	}
	final int? toy = jsonConvert.convert<int>(json['toy']);
	if (toy != null) {
		anchorEntity.toy = toy;
	}
	final int? toyCost = jsonConvert.convert<int>(json['toyCost']);
	if (toyCost != null) {
		anchorEntity.toyCost = toyCost;
	}
	return anchorEntity;
}