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<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    createdAt = json['createdAt'];
    type = json['type'];
    link = json['link'];
    category = json['category'];
    image = json['image'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['title'] = title;
    data['createdAt'] = createdAt;
    data['type'] = type;
    data['link'] = link;
    data['category'] = category;
    data['image'] = image;
    return data;
  }
}