///
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
class FilterData {
/*
{
  "FilterId": 1,
  "VietnameseName": "Aloha Medicinals",
  "EnglishName": "string",
  "Description": "string",
  "EnglishGroupName": "string",
  "VietnameseGroupName": "string",
  "Icon": "string",
  "Display": true,
  "ItemId": 0
}
*/

  int? filterId;
  String? vietnameseName;
  String? englishName;
  String? description;
  String? englishGroupName;
  String? vietnameseGroupName;
  String? icon;
  bool? display;
  int? itemId;

  FilterData({
    this.filterId,
    this.vietnameseName,
    this.englishName,
    this.description,
    this.englishGroupName,
    this.vietnameseGroupName,
    this.icon,
    this.display,
    this.itemId,
  });
  FilterData.fromJson(Map<String, dynamic> json) {
    filterId = json["FilterId"]?.toInt();
    vietnameseName = json["VietnameseName"]?.toString();
    englishName = json["EnglishName"]?.toString();
    description = json["Description"]?.toString();
    englishGroupName = json["EnglishGroupName"]?.toString();
    vietnameseGroupName = json["VietnameseGroupName"]?.toString();
    icon = json["Icon"]?.toString();
    display = json["Display"];
    itemId = json["ItemId"]?.toInt();
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data["FilterId"] = filterId;
    data["VietnameseName"] = vietnameseName;
    data["EnglishName"] = englishName;
    data["Description"] = description;
    data["EnglishGroupName"] = englishGroupName;
    data["VietnameseGroupName"] = vietnameseGroupName;
    data["Icon"] = icon;
    data["Display"] = display;
    data["ItemId"] = itemId;
    return data;
  }
}

class FilterResponse {
/*
{
  "totalRecord": 0,
  "isSuccess": true,
  "errorMesssage": "string",
  "Data": [
    {
      "FilterId": 1,
      "VietnameseName": "Aloha Medicinals",
      "EnglishName": "string",
      "Description": "string",
      "EnglishGroupName": "string",
      "VietnameseGroupName": "string",
      "Icon": "string",
      "Display": true,
      "ItemId": 0
    }
  ],
  "message": "string"
}
*/

  int? totalRecord;
  bool? isSuccess;
  String? errorMesssage;
  List<FilterData>? data;
  String? message;

  FilterResponse({
    this.totalRecord,
    this.isSuccess,
    this.errorMesssage,
    this.data,
    this.message,
  });
  FilterResponse.fromJson(Map<String, dynamic> json) {
    totalRecord = json["totalRecord"]?.toInt();
    isSuccess = json["isSuccess"];
    errorMesssage = json["errorMesssage"]?.toString();
    if (json["Data"] != null) {
      final v = json["Data"];
      final arr0 = <FilterData>[];
      v.forEach((v) {
        arr0.add(FilterData.fromJson(v));
      });
      data = arr0;
    }
    message = json["message"]?.toString();
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data["totalRecord"] = totalRecord;
    data["isSuccess"] = isSuccess;
    data["errorMesssage"] = errorMesssage;
    if (this.data != null) {
      final v = this.data;
      final arr0 = [];
      v!.forEach((v) {
        arr0.add(v.toJson());
      });
      data["Data"] = arr0;
    }
    data["message"] = message;
    return data;
  }
}
