| 123456789101112131415161718192021222324252627282930313233343536 |
- 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<String, dynamic> 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<String, dynamic> toJson() {
- final data = <String, dynamic>{};
- data['contentId'] = contentId;
- data['title'] = title;
- data['type'] = type;
- data['image'] = image;
- data['contentType'] = contentType;
- data['sourceId'] = sourceId;
- return data;
- }
- }
|