///
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
class BaseCategoryData {
/*
{
  "BaseCategoryId": 1,
  "BaseCategoryCode": "BASE-0004",
  "VietnameseName": "Bóng + Cứng",
  "EnglishName": "Bóng + Cứng",
  "VietnameseSlug": "bong-cung",
  "EnglishSlug": "bong-cung",
  "VietnameseShortDescription": null,
  "EnglishShortDescription": null,
  "Image": "\\Content\\images\\no_image.png",
  "VietnameseContent": "<p>Tất cả sản phẩm bóng cứng cao cấp đến trung bình ! Bao gồm cả hệ HS, MS và hệ bóng mờ dùng cho nhu cầu cần thiết của từng đơn vị !</p>",
  "EnglishContent": "<p>Tất cả sản phẩm bóng cứng cao cấp đến trung bình ! Bao gồm cả hệ HS, MS và hệ bóng mờ dùng cho nhu cầu cần thiết của từng đơn vị !</p>",
  "BaseParentId": null,
  "BaseCategoryPath": "ROOT/BASE-0004/",
  "VietnameseKeyword": null,
  "EnglishKeyword": null,
  "VietnameseDescription": null,
  "EnglishDescription": null,
  "IsActive": true,
  "IsFeature": true,
  "Background": "\\Content\\images\\no_image.png",
  "SortOrder": 0,
  "BackgroundSquare": "\\Content\\images\\background-square.png",
  "IsHome": true,
  "CreateBy": 1,
  "CreateName": "admin-Administrator",
  "CreateDate": "2021-08-28T21:23:24.903",
  "LastUpdateDate": null,
  "UpdateName": "",
  "LastUpdateBy": null,
  "RowNumber": 0
}
*/

  int? baseCategoryId;
  String? baseCategoryCode;
  String? vietnameseName;
  String? englishName;
  String? vietnameseSlug;
  String? englishSlug;
  String? vietnameseShortDescription;
  String? englishShortDescription;
  String? image;
  String? vietnameseContent;
  String? englishContent;
  String? baseParentId;
  String? baseCategoryPath;
  String? vietnameseKeyword;
  String? englishKeyword;
  String? vietnameseDescription;
  String? englishDescription;
  bool? isActive;
  bool? isFeature;
  String? background;
  int? sortOrder;
  String? backgroundSquare;
  bool? isHome;
  int? createBy;
  String? createName;
  String? createDate;
  String? lastUpdateDate;
  String? updateName;
  String? lastUpdateBy;
  int? rowNumber;

  BaseCategoryData({
    this.baseCategoryId,
    this.baseCategoryCode,
    this.vietnameseName,
    this.englishName,
    this.vietnameseSlug,
    this.englishSlug,
    this.vietnameseShortDescription,
    this.englishShortDescription,
    this.image,
    this.vietnameseContent,
    this.englishContent,
    this.baseParentId,
    this.baseCategoryPath,
    this.vietnameseKeyword,
    this.englishKeyword,
    this.vietnameseDescription,
    this.englishDescription,
    this.isActive,
    this.isFeature,
    this.background,
    this.sortOrder,
    this.backgroundSquare,
    this.isHome,
    this.createBy,
    this.createName,
    this.createDate,
    this.lastUpdateDate,
    this.updateName,
    this.lastUpdateBy,
    this.rowNumber,
  });
  BaseCategoryData.fromJson(Map<String, dynamic> json) {
    baseCategoryId = json["BaseCategoryId"]?.toInt();
    baseCategoryCode = json["BaseCategoryCode"]?.toString();
    vietnameseName = json["VietnameseName"]?.toString();
    englishName = json["EnglishName"]?.toString();
    vietnameseSlug = json["VietnameseSlug"]?.toString();
    englishSlug = json["EnglishSlug"]?.toString();
    vietnameseShortDescription = json["VietnameseShortDescription"]?.toString();
    englishShortDescription = json["EnglishShortDescription"]?.toString();
    image = json["Image"]?.toString();
    vietnameseContent = json["VietnameseContent"]?.toString();
    englishContent = json["EnglishContent"]?.toString();
    baseParentId = json["BaseParentId"]?.toString();
    baseCategoryPath = json["BaseCategoryPath"]?.toString();
    vietnameseKeyword = json["VietnameseKeyword"]?.toString();
    englishKeyword = json["EnglishKeyword"]?.toString();
    vietnameseDescription = json["VietnameseDescription"]?.toString();
    englishDescription = json["EnglishDescription"]?.toString();
    isActive = json["IsActive"];
    isFeature = json["IsFeature"];
    background = json["Background"]?.toString();
    sortOrder = json["SortOrder"]?.toInt();
    backgroundSquare = json["BackgroundSquare"]?.toString();
    isHome = json["IsHome"];
    createBy = json["CreateBy"]?.toInt();
    createName = json["CreateName"]?.toString();
    createDate = json["CreateDate"]?.toString();
    lastUpdateDate = json["LastUpdateDate"]?.toString();
    updateName = json["UpdateName"]?.toString();
    lastUpdateBy = json["LastUpdateBy"]?.toString();
    rowNumber = json["RowNumber"]?.toInt();
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data["BaseCategoryId"] = baseCategoryId;
    data["BaseCategoryCode"] = baseCategoryCode;
    data["VietnameseName"] = vietnameseName;
    data["EnglishName"] = englishName;
    data["VietnameseSlug"] = vietnameseSlug;
    data["EnglishSlug"] = englishSlug;
    data["VietnameseShortDescription"] = vietnameseShortDescription;
    data["EnglishShortDescription"] = englishShortDescription;
    data["Image"] = image;
    data["VietnameseContent"] = vietnameseContent;
    data["EnglishContent"] = englishContent;
    data["BaseParentId"] = baseParentId;
    data["BaseCategoryPath"] = baseCategoryPath;
    data["VietnameseKeyword"] = vietnameseKeyword;
    data["EnglishKeyword"] = englishKeyword;
    data["VietnameseDescription"] = vietnameseDescription;
    data["EnglishDescription"] = englishDescription;
    data["IsActive"] = isActive;
    data["IsFeature"] = isFeature;
    data["Background"] = background;
    data["SortOrder"] = sortOrder;
    data["BackgroundSquare"] = backgroundSquare;
    data["IsHome"] = isHome;
    data["CreateBy"] = createBy;
    data["CreateName"] = createName;
    data["CreateDate"] = createDate;
    data["LastUpdateDate"] = lastUpdateDate;
    data["UpdateName"] = updateName;
    data["LastUpdateBy"] = lastUpdateBy;
    data["RowNumber"] = rowNumber;
    return data;
  }
}

class BaseCategoryResponse {
/*
{
  "totalRecord": 9,
  "isSuccess": true,
  "errorMesssage": null,
  "Data": [
    {
      "BaseCategoryId": 1,
      "BaseCategoryCode": "BASE-0004",
      "VietnameseName": "Bóng + Cứng",
      "EnglishName": "Bóng + Cứng",
      "VietnameseSlug": "bong-cung",
      "EnglishSlug": "bong-cung",
      "VietnameseShortDescription": null,
      "EnglishShortDescription": null,
      "Image": "\\Content\\images\\no_image.png",
      "VietnameseContent": "<p>Tất cả sản phẩm bóng cứng cao cấp đến trung bình ! Bao gồm cả hệ HS, MS và hệ bóng mờ dùng cho nhu cầu cần thiết của từng đơn vị !</p>",
      "EnglishContent": "<p>Tất cả sản phẩm bóng cứng cao cấp đến trung bình ! Bao gồm cả hệ HS, MS và hệ bóng mờ dùng cho nhu cầu cần thiết của từng đơn vị !</p>",
      "BaseParentId": null,
      "BaseCategoryPath": "ROOT/BASE-0004/",
      "VietnameseKeyword": null,
      "EnglishKeyword": null,
      "VietnameseDescription": null,
      "EnglishDescription": null,
      "IsActive": true,
      "IsFeature": true,
      "Background": "\\Content\\images\\no_image.png",
      "SortOrder": 0,
      "BackgroundSquare": "\\Content\\images\\background-square.png",
      "IsHome": true,
      "CreateBy": 1,
      "CreateName": "admin-Administrator",
      "CreateDate": "2021-08-28T21:23:24.903",
      "LastUpdateDate": null,
      "UpdateName": "",
      "LastUpdateBy": null,
      "RowNumber": 0
    }
  ]
}
*/

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

  BaseCategoryResponse({
    this.totalRecord,
    this.isSuccess,
    this.errorMesssage,
    this.data,
  });
  BaseCategoryResponse.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 = <BaseCategoryData>[];
      v.forEach((v) {
        arr0.add(BaseCategoryData.fromJson(v));
      });
      data = arr0;
    }
  }
  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;
    }
    return data;
  }
}
