You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
926 B

class PostUpload {
String? title;
String? thumbnail;
String? aspect;
String? campaignID;
String? path;
PostUpload({
this.title,
this.aspect,
this.campaignID,
this.path,
this.thumbnail,
});
PostUpload.fromJson(Map<dynamic, dynamic> json)
: title = json['title'],
aspect = json['aspect'],
campaignID = json['campaignID'],
path = json['path'],
thumbnail = json['thumbnail'];
Map<dynamic, dynamic> toJson() {
final Map<dynamic, dynamic> data = Map<dynamic, dynamic>();
data['title'] = this.title;
data['aspect'] = this.aspect;
data['campaignID'] = this.campaignID;
data['path'] = this.path;
data['thumbnail'] = this.thumbnail;
return data;
}
@override
String toString() {
return '{"title": "$title","aspect": "$aspect", "campaignID": "$campaignID","path": "$path",' +
'"thumbnail": "$thumbnail"}';
}
}