class WidgetResponse { int? id; String? title; String? createdAt; String? type; String? link; String? category; String? image; WidgetResponse( {this.id, this.title, this.createdAt, this.type, this.link, this.category, this.image}); WidgetResponse.fromJson(Map json) { id = json['id']; title = json['title']; createdAt = json['createdAt']; type = json['type']; link = json['link']; category = json['category']; image = json['image']; } Map toJson() { final Map data = {}; data['id'] = id; data['title'] = title; data['createdAt'] = createdAt; data['type'] = type; data['link'] = link; data['category'] = category; data['image'] = image; return data; } }