///
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
class BlogData {
/*
{
  "PostId": 1,
  "CatalogId": 2,
  "CatalogName": "Kinh nghiệm",
  "VietnameseName": "Kinh nghiệm bắn son cho kia",
  "EnglishName": "Kinh nghiệm bắn son cho kia",
  "VietnameseSlug": "kinh-nghiem-ban-son-cho-kia",
  "EnglishSlug": "kinh-nghiem-ban-son-cho-kia",
  "Image": "\\Content\\images\\no_image.png",
  "VietnameseShortDescription": "vsvsvs",
  "EnglishShortDescription": "vsvsvs",
  "VietnameseKeyword": null,
  "EnglishKeyword": null,
  "VietnameseDescription": null,
  "EnglishDescription": null,
  "VietnameseContent": "<p>vsvsvsvs</p>\n",
  "EnglishContent": "<p>vsvsvsvs</p>\n",
  "PublishDate": "2021-08-28T00:00:00",
  "CreateBy": 1,
  "CreateName": "admin-Administrator",
  "CreateDate": "2021-08-28T20:31:39.397",
  "LastUpdateDate": null,
  "UpdateName": "",
  "LastUpdateBy": null,
  "RowNumber": 0
}
*/

  int? postId;
  int? catalogId;
  String? catalogName;
  String? vietnameseName;
  String? englishName;
  String? vietnameseSlug;
  String? englishSlug;
  String? image;
  String? vietnameseShortDescription;
  String? englishShortDescription;
  String? vietnameseKeyword;
  String? englishKeyword;
  String? vietnameseDescription;
  String? englishDescription;
  String? vietnameseContent;
  String? englishContent;
  String? publishDate;
  int? createBy;
  String? createName;
  String? createDate;
  String? lastUpdateDate;
  String? updateName;
  String? lastUpdateBy;
  int? rowNumber;

  BlogData({
    this.postId,
    this.catalogId,
    this.catalogName,
    this.vietnameseName,
    this.englishName,
    this.vietnameseSlug,
    this.englishSlug,
    this.image,
    this.vietnameseShortDescription,
    this.englishShortDescription,
    this.vietnameseKeyword,
    this.englishKeyword,
    this.vietnameseDescription,
    this.englishDescription,
    this.vietnameseContent,
    this.englishContent,
    this.publishDate,
    this.createBy,
    this.createName,
    this.createDate,
    this.lastUpdateDate,
    this.updateName,
    this.lastUpdateBy,
    this.rowNumber,
  });
  BlogData.fromJson(Map<String, dynamic> json) {
    postId = json["PostId"]?.toInt();
    catalogId = json["CatalogId"]?.toInt();
    catalogName = json["CatalogName"]?.toString();
    vietnameseName = json["VietnameseName"]?.toString();
    englishName = json["EnglishName"]?.toString();
    vietnameseSlug = json["VietnameseSlug"]?.toString();
    englishSlug = json["EnglishSlug"]?.toString();
    image = json["Image"]?.toString();
    vietnameseShortDescription = json["VietnameseShortDescription"]?.toString();
    englishShortDescription = json["EnglishShortDescription"]?.toString();
    vietnameseKeyword = json["VietnameseKeyword"]?.toString();
    englishKeyword = json["EnglishKeyword"]?.toString();
    vietnameseDescription = json["VietnameseDescription"]?.toString();
    englishDescription = json["EnglishDescription"]?.toString();
    vietnameseContent = json["VietnameseContent"]?.toString();
    englishContent = json["EnglishContent"]?.toString();
    publishDate = json["PublishDate"]?.toString();
    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["PostId"] = postId;
    data["CatalogId"] = catalogId;
    data["CatalogName"] = catalogName;
    data["VietnameseName"] = vietnameseName;
    data["EnglishName"] = englishName;
    data["VietnameseSlug"] = vietnameseSlug;
    data["EnglishSlug"] = englishSlug;
    data["Image"] = image;
    data["VietnameseShortDescription"] = vietnameseShortDescription;
    data["EnglishShortDescription"] = englishShortDescription;
    data["VietnameseKeyword"] = vietnameseKeyword;
    data["EnglishKeyword"] = englishKeyword;
    data["VietnameseDescription"] = vietnameseDescription;
    data["EnglishDescription"] = englishDescription;
    data["VietnameseContent"] = vietnameseContent;
    data["EnglishContent"] = englishContent;
    data["PublishDate"] = publishDate;
    data["CreateBy"] = createBy;
    data["CreateName"] = createName;
    data["CreateDate"] = createDate;
    data["LastUpdateDate"] = lastUpdateDate;
    data["UpdateName"] = updateName;
    data["LastUpdateBy"] = lastUpdateBy;
    data["RowNumber"] = rowNumber;
    return data;
  }
}

class BlogResponse {
/*
{
  "totalRecord": 1,
  "isSuccess": true,
  "errorMesssage": null,
  "Data": [
    {
      "PostId": 1,
      "CatalogId": 2,
      "CatalogName": "Kinh nghiệm",
      "VietnameseName": "Kinh nghiệm bắn son cho kia",
      "EnglishName": "Kinh nghiệm bắn son cho kia",
      "VietnameseSlug": "kinh-nghiem-ban-son-cho-kia",
      "EnglishSlug": "kinh-nghiem-ban-son-cho-kia",
      "Image": "\\Content\\images\\no_image.png",
      "VietnameseShortDescription": "vsvsvs",
      "EnglishShortDescription": "vsvsvs",
      "VietnameseKeyword": null,
      "EnglishKeyword": null,
      "VietnameseDescription": null,
      "EnglishDescription": null,
      "VietnameseContent": "<p>vsvsvsvs</p>\n",
      "EnglishContent": "<p>vsvsvsvs</p>\n",
      "PublishDate": "2021-08-28T00:00:00",
      "CreateBy": 1,
      "CreateName": "admin-Administrator",
      "CreateDate": "2021-08-28T20:31:39.397",
      "LastUpdateDate": null,
      "UpdateName": "",
      "LastUpdateBy": null,
      "RowNumber": 0
    }
  ],
  "message": null
}
*/

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

  BlogResponse({
    this.totalRecord,
    this.isSuccess,
    this.errorMesssage,
    this.data,
    this.message,
  });
  BlogResponse.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 = <BlogData>[];
      v.forEach((v) {
        arr0.add(BlogData.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;
  }
}
