class ActivityBannerModel { String? contentId; String? title; String? type; //点击banner跳转 activity->富文本+视频. ,article->富文本 column->专题 String? image; String? contentType; //article video String? sourceId; ActivityBannerModel({ this.contentId, this.title, this.type, this.image, this.contentType, this.sourceId, }); ActivityBannerModel.fromJson(Map json) { contentId = json['contentId']?.toString(); title = json['title']?.toString(); type = json['type']?.toString(); image = json['image']?.toString(); contentType = json['contentType']?.toString(); sourceId = json['sourceId']?.toString(); } Map toJson() { final data = {}; data['contentId'] = contentId; data['title'] = title; data['type'] = type; data['image'] = image; data['contentType'] = contentType; data['sourceId'] = sourceId; return data; } }