///
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
class KeywordSuggestData {
/*
{
  "id": 1,
  "title": "Bio",
  "image": "",
  "description": "",
  "caption": "",
  "orderBy": 1
}
*/

  int? id;
  String? title;
  String? image;
  String? description;
  String? caption;
  int? orderBy;

  KeywordSuggestData({
    this.id,
    this.title,
    this.image,
    this.description,
    this.caption,
    this.orderBy,
  });
  KeywordSuggestData.fromJson(Map<String, dynamic> json) {
    id = json["id"]?.toInt();
    title = json["title"]?.toString();
    image = json["image"]?.toString();
    description = json["description"]?.toString();
    caption = json["caption"]?.toString();
    orderBy = json["orderBy"]?.toInt();
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data["id"] = id;
    data["title"] = title;
    data["image"] = image;
    data["description"] = description;
    data["caption"] = caption;
    data["orderBy"] = orderBy;
    return data;
  }
}

class KeywordSuggestResponse {
/*
{
  "status": "",
  "message": "",
  "data": [
    {
      "id": 1,
      "title": "Bio",
      "image": "",
      "description": "",
      "caption": "",
      "orderBy": 1
    }
  ]
}
*/

  String? status;
  String? message;
  List<KeywordSuggestData>? data;

  KeywordSuggestResponse({
    this.status,
    this.message,
    this.data,
  });
  KeywordSuggestResponse.fromJson(Map<String, dynamic> json) {
    status = json["status"]?.toString();
    message = json["message"]?.toString();
    if (json["data"] != null) {
      final v = json["data"];
      final arr0 = <KeywordSuggestData>[];
      v.forEach((v) {
        arr0.add(KeywordSuggestData.fromJson(v));
      });
      this.data = arr0;
    }
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data["status"] = status;
    data["message"] = message;
    if (this.data != null) {
      final v = this.data;
      final arr0 = [];
      v!.forEach((v) {
        arr0.add(v.toJson());
      });
      data["data"] = arr0;
    }
    return data;
  }
}
