/// totalRecord : 1
/// isSuccess : true
/// errorMesssage : null
/// Data : [{"ItemId":1,"ItemCode":"NSP-000001","BaseCategoryId":6,"CategoryId":0,"BrandId":5,"UnitId":0,"MinPrice":240000,"MaxPrice":560000,"VietnameseName":"Chất đánh bóng Bước 1 Roar","EnglishName":"Chất đánh bóng Bước 1 Roar","VietnameseSlug":"chat-danh-bong-buoc-1-roar","EnglishSlug":"chat-danh-bong-buoc-1-roar","VietnameseShortDescription":null,"EnglishShortDescription":null,"Image":"/uploads/images/SP-DANH-BONG/637660064231542625-Document-Name1_46.JPG","VietnameseContent":null,"EnglishContent":null,"VietnameseOthorContent":null,"EnglishOthorContent":null,"VietnameseKeyword":null,"EnglishKeyword":null,"VietnameseDescription":null,"EnglishDescription":null,"Price":0,"Length":null,"Width":null,"Heighth":null,"Weight":null,"WarrantyTime":null,"IsActive":true,"IsFeature":false,"IsNewest":false,"IsBestSell":false,"IsFreeShip":false,"VoucherExpired":null,"IsMixItem":false,"SearchKeyword":null,"ItemFilters":null,"ItemImages":null,"Variants":null,"ItemReviews":null,"ItemRelates":null,"ItemSpecificationses":null,"ItemBoxes":null,"ItemVouchers":null,"VariantsArray":"<ArrayOfVariant><Variant><EnglishName>Xi dánh bóng bu?c 1 lo?i 1.2KG</EnglishName><FullVariantCode>Roar 511-1.2</FullVariantCode><Image>/uploads/images/SP-DANH-BONG/637660064231542625-Document-Name1_46.JPG</Image><ItemId>1</ItemId><Price>240000.0000</Price><VariantCode>Roar 511-1.2</VariantCode><VariantId>1</VariantId><VietnameseName>Xi dánh bóng bu?c 1 lo?i 1.2KG</VietnameseName><Weight>1200.0</Weight></Variant><Variant><EnglishName>Xi dánh bóng bu?c 1 lo?i 3KG</EnglishName><FullVariantCode>Roar 511-3</FullVariantCode><Image>/uploads/images/SP-DANH-BONG/637660064231542625-Document-Name1_46.JPG</Image><ItemId>1</ItemId><Price>560000.0000</Price><VariantCode>Roar 511-3</VariantCode><VariantId>2</VariantId><VietnameseName>Xi dánh bóng bu?c 1 lo?i 3KG</VietnameseName><Weight>3000.0</Weight></Variant></ArrayOfVariant>","ReviewCount":0,"ReviewAvgPoint":0,"DiscountType":0,"DiscountValue":0,"UnitCode":"","BrandCode":null,"BrandName":"ROAR","CategoryName":"","BaseCategoryName":"Đánh Bóng - Chăm Sóc Xe","BrandSlug":null,"ItemCompares":null,"ItemVideos":null,"ItemPosts":null,"CreateBy":1,"CreateName":"admin-Administrator","CreateDate":"2021-08-31T11:39:24.527","LastUpdateDate":null,"UpdateName":"","LastUpdateBy":null,"RowNumber":0}]
/// message : null

class ListProductResponse {
  int? _totalRecord;
  bool? _isSuccess;
  dynamic? _errorMesssage;
  List<ListProductData>? _data;
  dynamic? _message;

  int? get totalRecord => _totalRecord;

  bool? get isSuccess => _isSuccess;

  dynamic? get errorMesssage => _errorMesssage;

  List<ListProductData>? get data => _data;

  dynamic? get message => _message;

  ListProductResponse(
      {int? totalRecord,
      bool? isSuccess,
      dynamic? errorMesssage,
      List<ListProductData>? data,
      dynamic? message}) {
    _totalRecord = totalRecord;
    _isSuccess = isSuccess;
    _errorMesssage = errorMesssage;
    _data = data;
    _message = message;
  }

  ListProductResponse.fromJson(dynamic json) {
    _totalRecord = json['totalRecord'];
    _isSuccess = json['isSuccess'];
    _errorMesssage = json['errorMesssage'];
    if (json['Data'] != null) {
      _data = [];
      json['Data'].forEach((v) {
        _data?.add(ListProductData.fromJson(v));
      });
    }
    _message = json['message'];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map['totalRecord'] = _totalRecord;
    map['isSuccess'] = _isSuccess;
    map['errorMesssage'] = _errorMesssage;
    if (_data != null) {
      map['Data'] = _data?.map((v) => v.toJson()).toList();
    }
    map['message'] = _message;
    return map;
  }
}

/// ItemId : 1
/// ItemCode : "NSP-000001"
/// BaseCategoryId : 6
/// CategoryId : 0
/// BrandId : 5
/// UnitId : 0
/// MinPrice : 240000
/// MaxPrice : 560000
/// VietnameseName : "Chất đánh bóng Bước 1 Roar"
/// EnglishName : "Chất đánh bóng Bước 1 Roar"
/// VietnameseSlug : "chat-danh-bong-buoc-1-roar"
/// EnglishSlug : "chat-danh-bong-buoc-1-roar"
/// VietnameseShortDescription : null
/// EnglishShortDescription : null
/// Image : "/uploads/images/SP-DANH-BONG/637660064231542625-Document-Name1_46.JPG"
/// VietnameseContent : null
/// EnglishContent : null
/// VietnameseOthorContent : null
/// EnglishOthorContent : null
/// VietnameseKeyword : null
/// EnglishKeyword : null
/// VietnameseDescription : null
/// EnglishDescription : null
/// Price : 0
/// Length : null
/// Width : null
/// Heighth : null
/// Weight : null
/// WarrantyTime : null
/// IsActive : true
/// IsFeature : false
/// IsNewest : false
/// IsBestSell : false
/// IsFreeShip : false
/// VoucherExpired : null
/// IsMixItem : false
/// SearchKeyword : null
/// ItemFilters : null
/// ItemImages : null
/// Variants : null
/// ItemReviews : null
/// ItemRelates : null
/// ItemSpecificationses : null
/// ItemBoxes : null
/// ItemVouchers : null
/// VariantsArray : "<ArrayOfVariant><Variant><EnglishName>Xi dánh bóng bu?c 1 lo?i 1.2KG</EnglishName><FullVariantCode>Roar 511-1.2</FullVariantCode><Image>/uploads/images/SP-DANH-BONG/637660064231542625-Document-Name1_46.JPG</Image><ItemId>1</ItemId><Price>240000.0000</Price><VariantCode>Roar 511-1.2</VariantCode><VariantId>1</VariantId><VietnameseName>Xi dánh bóng bu?c 1 lo?i 1.2KG</VietnameseName><Weight>1200.0</Weight></Variant><Variant><EnglishName>Xi dánh bóng bu?c 1 lo?i 3KG</EnglishName><FullVariantCode>Roar 511-3</FullVariantCode><Image>/uploads/images/SP-DANH-BONG/637660064231542625-Document-Name1_46.JPG</Image><ItemId>1</ItemId><Price>560000.0000</Price><VariantCode>Roar 511-3</VariantCode><VariantId>2</VariantId><VietnameseName>Xi dánh bóng bu?c 1 lo?i 3KG</VietnameseName><Weight>3000.0</Weight></Variant></ArrayOfVariant>"
/// ReviewCount : 0
/// ReviewAvgPoint : 0
/// DiscountType : 0
/// DiscountValue : 0
/// UnitCode : ""
/// BrandCode : null
/// BrandName : "ROAR"
/// CategoryName : ""
/// BaseCategoryName : "Đánh Bóng - Chăm Sóc Xe"
/// BrandSlug : null
/// ItemCompares : null
/// ItemVideos : null
/// ItemPosts : null
/// CreateBy : 1
/// CreateName : "admin-Administrator"
/// CreateDate : "2021-08-31T11:39:24.527"
/// LastUpdateDate : null
/// UpdateName : ""
/// LastUpdateBy : null
/// RowNumber : 0

class ListProductData {
  int? _itemId;
  String? _itemCode;
  int? _baseCategoryId;
  int? _categoryId;
  int? _brandId;
  int? _unitId;
  int? _minPrice;
  int? _maxPrice;
  int? _discount;
  String? _vietnameseName;
  String? _englishName;
  String? _vietnameseSlug;
  String? _englishSlug;
  String? _vietnameseShortDescription;
  String? _englishShortDescription;
  String? _image;
  String? _vietnameseContent;
  String? _englishContent;
  String? _vietnameseOthorContent;
  String? _englishOthorContent;
  String? _vietnameseKeyword;
  String? _englishKeyword;
  String? _vietnameseDescription;
  String? _englishDescription;
  int? _price;
  dynamic? _length;
  dynamic? _width;
  dynamic? _heighth;
  dynamic? _weight;
  dynamic? _warrantyTime;
  bool? _isActive;
  bool? _isFeature;
  bool? _isNewest;
  bool? _isBestSell;
  bool? _isFreeShip;
  dynamic? _voucherExpired;
  bool? _isMixItem;
  dynamic? _searchKeyword;
  dynamic? _itemFilters;
  dynamic? _itemImages;
  dynamic? _variants;
  dynamic? _itemReviews;
  dynamic? _itemRelates;
  dynamic? _itemSpecificationses;
  dynamic? _itemBoxes;
  dynamic? _itemVouchers;
  String? _variantsArray;
  int? _reviewCount;
  int? _reviewAvgPoint;
  int? _discountType;
  int? _discountValue;
  String? _unitCode;
  dynamic? _brandCode;
  String? _brandName;
  String? _categoryName;
  String? _baseCategoryName;
  dynamic? _brandSlug;
  dynamic? _itemCompares;
  dynamic? _itemVideos;
  dynamic? _itemPosts;
  int? _createBy;
  String? _createName;
  String? _createDate;
  dynamic? _lastUpdateDate;
  String? _updateName;
  dynamic? _lastUpdateBy;
  int? _rowNumber;

  int? get itemId => _itemId;

  String? get itemCode => _itemCode;

  int? get baseCategoryId => _baseCategoryId;

  int? get categoryId => _categoryId;

  int? get brandId => _brandId;

  int? get unitId => _unitId;

  int? get minPrice => _minPrice;

  int? get maxPrice => _maxPrice;
  int? get discount => _discount;

  String? get vietnameseName => _vietnameseName;

  String? get englishName => _englishName;

  String? get vietnameseSlug => _vietnameseSlug;

  String? get englishSlug => _englishSlug;

  String? get vietnameseShortDescription => _vietnameseShortDescription;

  dynamic? get englishShortDescription => _englishShortDescription;

  String? get image => _image;

  String? get vietnameseContent => _vietnameseContent;

  String? get englishContent => _englishContent;

  String? get vietnameseOthorContent => _vietnameseOthorContent;

  String? get englishOthorContent => _englishOthorContent;

  String? get vietnameseKeyword => _vietnameseKeyword;

  String? get englishKeyword => _englishKeyword;

  String? get vietnameseDescription => _vietnameseDescription;

  String? get englishDescription => _englishDescription;

  int? get price => _price;

  dynamic? get length => _length;

  dynamic? get width => _width;

  dynamic? get heighth => _heighth;

  dynamic? get weight => _weight;

  dynamic? get warrantyTime => _warrantyTime;

  bool? get isActive => _isActive;

  bool? get isFeature => _isFeature;

  bool? get isNewest => _isNewest;

  bool? get isBestSell => _isBestSell;

  bool? get isFreeShip => _isFreeShip;

  dynamic? get voucherExpired => _voucherExpired;

  bool? get isMixItem => _isMixItem;

  dynamic? get searchKeyword => _searchKeyword;

  dynamic? get itemFilters => _itemFilters;

  dynamic? get itemImages => _itemImages;

  dynamic? get variants => _variants;

  dynamic? get itemReviews => _itemReviews;

  dynamic? get itemRelates => _itemRelates;

  dynamic? get itemSpecificationses => _itemSpecificationses;

  dynamic? get itemBoxes => _itemBoxes;

  dynamic? get itemVouchers => _itemVouchers;

  String? get variantsArray => _variantsArray;

  int? get reviewCount => _reviewCount;

  int? get reviewAvgPoint => _reviewAvgPoint;

  int? get discountType => _discountType;

  int? get discountValue => _discountValue;

  String? get unitCode => _unitCode;

  dynamic? get brandCode => _brandCode;

  String? get brandName => _brandName;

  String? get categoryName => _categoryName;

  String? get baseCategoryName => _baseCategoryName;

  dynamic? get brandSlug => _brandSlug;

  dynamic? get itemCompares => _itemCompares;

  dynamic? get itemVideos => _itemVideos;

  dynamic? get itemPosts => _itemPosts;

  int? get createBy => _createBy;

  String? get createName => _createName;

  String? get createDate => _createDate;

  dynamic? get lastUpdateDate => _lastUpdateDate;

  String? get updateName => _updateName;

  dynamic? get lastUpdateBy => _lastUpdateBy;

  int? get rowNumber => _rowNumber;

  ListProductData(
      {int? itemId,
      String? itemCode,
      int? baseCategoryId,
      int? categoryId,
      int? brandId,
      int? unitId,
      int? minPrice,
      int? maxPrice,
      int? discount,
      String? vietnameseName,
      String? englishName,
      String? vietnameseSlug,
      String? englishSlug,
      String? vietnameseShortDescription,
      String? englishShortDescription,
      String? image,
      String? vietnameseContent,
      String? englishContent,
      String? vietnameseOthorContent,
      String? englishOthorContent,
      String? vietnameseKeyword,
      String? englishKeyword,
      String? vietnameseDescription,
      String? englishDescription,
      int? price,
      dynamic? length,
      dynamic? width,
      dynamic? heighth,
      dynamic? weight,
      dynamic? warrantyTime,
      bool? isActive,
      bool? isFeature,
      bool? isNewest,
      bool? isBestSell,
      bool? isFreeShip,
      dynamic? voucherExpired,
      bool? isMixItem,
      dynamic? searchKeyword,
      dynamic? itemFilters,
      dynamic? itemImages,
      dynamic? variants,
      dynamic? itemReviews,
      dynamic? itemRelates,
      dynamic? itemSpecificationses,
      dynamic? itemBoxes,
      dynamic? itemVouchers,
      String? variantsArray,
      int? reviewCount,
      int? reviewAvgPoint,
      int? discountType,
      int? discountValue,
      String? unitCode,
      dynamic? brandCode,
      String? brandName,
      String? categoryName,
      String? baseCategoryName,
      dynamic? brandSlug,
      dynamic? itemCompares,
      dynamic? itemVideos,
      dynamic? itemPosts,
      int? createBy,
      String? createName,
      String? createDate,
      dynamic? lastUpdateDate,
      String? updateName,
      dynamic? lastUpdateBy,
      int? rowNumber}) {
    _itemId = itemId;
    _itemCode = itemCode;
    _baseCategoryId = baseCategoryId;
    _categoryId = categoryId;
    _brandId = brandId;
    _unitId = unitId;
    _minPrice = minPrice;
    _maxPrice = maxPrice;
    _discount = discount;
    _vietnameseName = vietnameseName;
    _englishName = englishName;
    _vietnameseSlug = vietnameseSlug;
    _englishSlug = englishSlug;
    _vietnameseShortDescription = vietnameseShortDescription;
    _englishShortDescription = englishShortDescription;
    _image = image;
    _vietnameseContent = vietnameseContent;
    _englishContent = englishContent;
    _vietnameseOthorContent = vietnameseOthorContent;
    _englishOthorContent = englishOthorContent;
    _vietnameseKeyword = vietnameseKeyword;
    _englishKeyword = englishKeyword;
    _vietnameseDescription = vietnameseDescription;
    _englishDescription = englishDescription;
    _price = price;
    _length = length;
    _width = width;
    _heighth = heighth;
    _weight = weight;
    _warrantyTime = warrantyTime;
    _isActive = isActive;
    _isFeature = isFeature;
    _isNewest = isNewest;
    _isBestSell = isBestSell;
    _isFreeShip = isFreeShip;
    _voucherExpired = voucherExpired;
    _isMixItem = isMixItem;
    _searchKeyword = searchKeyword;
    _itemFilters = itemFilters;
    _itemImages = itemImages;
    _variants = variants;
    _itemReviews = itemReviews;
    _itemRelates = itemRelates;
    _itemSpecificationses = itemSpecificationses;
    _itemBoxes = itemBoxes;
    _itemVouchers = itemVouchers;
    _variantsArray = variantsArray;
    _reviewCount = reviewCount;
    _reviewAvgPoint = reviewAvgPoint;
    _discountType = discountType;
    _discountValue = discountValue;
    _unitCode = unitCode;
    _brandCode = brandCode;
    _brandName = brandName;
    _categoryName = categoryName;
    _baseCategoryName = baseCategoryName;
    _brandSlug = brandSlug;
    _itemCompares = itemCompares;
    _itemVideos = itemVideos;
    _itemPosts = itemPosts;
    _createBy = createBy;
    _createName = createName;
    _createDate = createDate;
    _lastUpdateDate = lastUpdateDate;
    _updateName = updateName;
    _lastUpdateBy = lastUpdateBy;
    _rowNumber = rowNumber;
  }

  ListProductData.fromJson(dynamic json) {
    _itemId = json['ItemId'];
    _itemCode = json['ItemCode'];
    _baseCategoryId = json['BaseCategoryId'];
    _categoryId = json['CategoryId'];
    _brandId = json['BrandId'];
    _unitId = json['UnitId'];
    _minPrice = json['MinPrice'];
    _maxPrice = json['MaxPrice'];
    _discount = json['Discount'];
    _vietnameseName = json['VietnameseName'];
    _englishName = json['EnglishName'];
    _vietnameseSlug = json['VietnameseSlug'];
    _englishSlug = json['EnglishSlug'];
    _vietnameseShortDescription = json['VietnameseShortDescription'];
    _englishShortDescription = json['EnglishShortDescription'];
    _image = json['Image'];
    _vietnameseContent = json['VietnameseContent'];
    _englishContent = json['EnglishContent'];
    _vietnameseOthorContent = json['VietnameseOthorContent'];
    _englishOthorContent = json['EnglishOthorContent'];
    _vietnameseKeyword = json['VietnameseKeyword'];
    _englishKeyword = json['EnglishKeyword'];
    _vietnameseDescription = json['VietnameseDescription'];
    _englishDescription = json['EnglishDescription'];
    _price = json['Price'];
    _length = json['Length'];
    _width = json['Width'];
    _heighth = json['Heighth'];
    _weight = json['Weight'];
    _warrantyTime = json['WarrantyTime'];
    _isActive = json['IsActive'];
    _isFeature = json['IsFeature'];
    _isNewest = json['IsNewest'];
    _isBestSell = json['IsBestSell'];
    _isFreeShip = json['IsFreeShip'];
    _voucherExpired = json['VoucherExpired'];
    _isMixItem = json['IsMixItem'];
    _searchKeyword = json['SearchKeyword'];
    _itemFilters = json['ItemFilters'];
    _itemImages = json['ItemImages'];
    _variants = json['Variants'];
    _itemReviews = json['ItemReviews'];
    _itemRelates = json['ItemRelates'];
    _itemSpecificationses = json['ItemSpecificationses'];
    _itemBoxes = json['ItemBoxes'];
    _itemVouchers = json['ItemVouchers'];
    _variantsArray = json['VariantsArray'];
    _reviewCount = json['ReviewCount'];
    _reviewAvgPoint = json['ReviewAvgPoint'];
    _discountType = json['DiscountType'];
    _discountValue = json['DiscountValue'];
    _unitCode = json['UnitCode'];
    _brandCode = json['BrandCode'];
    _brandName = json['BrandName'];
    _categoryName = json['CategoryName'];
    _baseCategoryName = json['BaseCategoryName'];
    _brandSlug = json['BrandSlug'];
    _itemCompares = json['ItemCompares'];
    _itemVideos = json['ItemVideos'];
    _itemPosts = json['ItemPosts'];
    _createBy = json['CreateBy'];
    _createName = json['CreateName'];
    _createDate = json['CreateDate'];
    _lastUpdateDate = json['LastUpdateDate'];
    _updateName = json['UpdateName'];
    _lastUpdateBy = json['LastUpdateBy'];
    _rowNumber = json['RowNumber'];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map['ItemId'] = _itemId;
    map['ItemCode'] = _itemCode;
    map['BaseCategoryId'] = _baseCategoryId;
    map['CategoryId'] = _categoryId;
    map['BrandId'] = _brandId;
    map['UnitId'] = _unitId;
    map['MinPrice'] = _minPrice;
    map['MaxPrice'] = _maxPrice;
    map['Discount'] = _discount;
    map['VietnameseName'] = _vietnameseName;
    map['EnglishName'] = _englishName;
    map['VietnameseSlug'] = _vietnameseSlug;
    map['EnglishSlug'] = _englishSlug;
    map['VietnameseShortDescription'] = _vietnameseShortDescription;
    map['EnglishShortDescription'] = _englishShortDescription;
    map['Image'] = _image;
    map['VietnameseContent'] = _vietnameseContent;
    map['EnglishContent'] = _englishContent;
    map['VietnameseOthorContent'] = _vietnameseOthorContent;
    map['EnglishOthorContent'] = _englishOthorContent;
    map['VietnameseKeyword'] = _vietnameseKeyword;
    map['EnglishKeyword'] = _englishKeyword;
    map['VietnameseDescription'] = _vietnameseDescription;
    map['EnglishDescription'] = _englishDescription;
    map['Price'] = _price;
    map['Length'] = _length;
    map['Width'] = _width;
    map['Heighth'] = _heighth;
    map['Weight'] = _weight;
    map['WarrantyTime'] = _warrantyTime;
    map['IsActive'] = _isActive;
    map['IsFeature'] = _isFeature;
    map['IsNewest'] = _isNewest;
    map['IsBestSell'] = _isBestSell;
    map['IsFreeShip'] = _isFreeShip;
    map['VoucherExpired'] = _voucherExpired;
    map['IsMixItem'] = _isMixItem;
    map['SearchKeyword'] = _searchKeyword;
    map['ItemFilters'] = _itemFilters;
    map['ItemImages'] = _itemImages;
    map['Variants'] = _variants;
    map['ItemReviews'] = _itemReviews;
    map['ItemRelates'] = _itemRelates;
    map['ItemSpecificationses'] = _itemSpecificationses;
    map['ItemBoxes'] = _itemBoxes;
    map['ItemVouchers'] = _itemVouchers;
    map['VariantsArray'] = _variantsArray;
    map['ReviewCount'] = _reviewCount;
    map['ReviewAvgPoint'] = _reviewAvgPoint;
    map['DiscountType'] = _discountType;
    map['DiscountValue'] = _discountValue;
    map['UnitCode'] = _unitCode;
    map['BrandCode'] = _brandCode;
    map['BrandName'] = _brandName;
    map['CategoryName'] = _categoryName;
    map['BaseCategoryName'] = _baseCategoryName;
    map['BrandSlug'] = _brandSlug;
    map['ItemCompares'] = _itemCompares;
    map['ItemVideos'] = _itemVideos;
    map['ItemPosts'] = _itemPosts;
    map['CreateBy'] = _createBy;
    map['CreateName'] = _createName;
    map['CreateDate'] = _createDate;
    map['LastUpdateDate'] = _lastUpdateDate;
    map['UpdateName'] = _updateName;
    map['LastUpdateBy'] = _lastUpdateBy;
    map['RowNumber'] = _rowNumber;
    return map;
  }
}
