$TopListFromJson function

TopList $TopListFromJson(
  1. Map<String, dynamic> json
)

Implementation

TopList $TopListFromJson(Map<String, dynamic> json) {
	final TopList topList = TopList();
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		topList.name = name;
	}
	final String? dec = jsonConvert.convert<String>(json['dec']);
	if (dec != null) {
		topList.dec = dec;
	}
	final String? headImage = jsonConvert.convert<String>(json['headImage']);
	if (headImage != null) {
		topList.headImage = headImage;
	}
	final String? money = jsonConvert.convert<String>(json['money']);
	if (money != null) {
		topList.money = money;
	}
	final String? userId = jsonConvert.convert<String>(json['userId']);
	if (userId != null) {
		topList.userId = userId;
	}
	final String? isAnchor = jsonConvert.convert<String>(json['isAnchor']);
	if (isAnchor != null) {
		topList.isAnchor = isAnchor;
	}
	final String? online = jsonConvert.convert<String>(json['online']);
	if (online != null) {
		topList.online = online;
	}
	final int? order = jsonConvert.convert<int>(json['order']);
	if (order != null) {
		topList.order = order;
	}
	final String? cared = jsonConvert.convert<String>(json['cared']);
	if (cared != null) {
		topList.cared = cared;
	}
	final String? userVipLevel = jsonConvert.convert<String>(json['userVipLevel']);
	if (userVipLevel != null) {
		topList.userVipLevel = userVipLevel;
	}
	final String? lastFreeVideoId = jsonConvert.convert<String>(json['lastFreeVideoId']);
	if (lastFreeVideoId != null) {
		topList.lastFreeVideoId = lastFreeVideoId;
	}
	final String? birthday = jsonConvert.convert<String>(json['birthday']);
	if (birthday != null) {
		topList.birthday = birthday;
	}
	return topList;
}