$PopBannerListFromJson function

PopBannerList $PopBannerListFromJson(
  1. Map<String, dynamic> json
)

Implementation

PopBannerList $PopBannerListFromJson(Map<String, dynamic> json) {
	final PopBannerList popBannerList = PopBannerList();
	final String? imageUrl = jsonConvert.convert<String>(json['imageUrl']);
	if (imageUrl != null) {
		popBannerList.imageUrl = imageUrl;
	}
	final String? targetUrl = jsonConvert.convert<String>(json['targetUrl']);
	if (targetUrl != null) {
		popBannerList.targetUrl = targetUrl;
	}
	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		popBannerList.title = title;
	}
	final int? type = jsonConvert.convert<int>(json['type']);
	if (type != null) {
		popBannerList.type = type;
	}
	final String? value = jsonConvert.convert<String>(json['value']);
	if (value != null) {
		popBannerList.value = value;
	}
	return popBannerList;
}