/// totalRecord : 4
/// isSuccess : true
/// errorMesssage : null
/// Data : [{"BrandId":5,"BrandCode":"ROAR","VietnameseName":"ROAR","EnglishName":"ROAR","VietnameseSlug":"roar","RatedPoint":0,"EnglishSlug":"roar","VietnameseShortDescription":"Công ty uy tín tại Anh Quốc !","EnglishShortDescription":"Công ty uy tín tại Anh Quốc !","Image":"/uploads/images/THUONG%20HIEU/637657820878271848-roar.jpg","VietnameseContent":"<p>Công ty uy tín tại Anh Quốc !<br></p>","EnglishContent":"<p>Công ty uy tín tại Anh Quốc !<br></p>","VietnameseKeyword":null,"EnglishKeyword":null,"VietnameseDescription":null,"EnglishDescription":null,"IsActive":true,"IsFeature":true,"VietnameseSlide":"[]","EnglishSlide":"[]","ImageModels":[],"CreateBy":1,"CreateName":"admin-Administrator","CreateDate":"2021-08-28T21:15:59.197","LastUpdateDate":"2021-08-28T21:15:59.197","UpdateName":"admin-Administrator","LastUpdateBy":1,"RowNumber":0},{"BrandId":4,"BrandCode":"ROBERLO","VietnameseName":"ROBERLO","EnglishName":"ROBERLO","VietnameseSlug":"roberlo","RatedPoint":0,"EnglishSlug":"roberlo","VietnameseShortDescription":"Thương hiệu ROBERLO  thuộc sở hữu của Tây Ban Nha","EnglishShortDescription":"Thương hiệu ROBERLO  thuộc sở hữu của Tây Ban Nha","Image":"/uploads/images/THUONG%20HIEU/637657819219894597-roberlo.png","VietnameseContent":"<p>Thương hiệu ROBERLO&nbsp; thuộc sở hữu của Tây Ban Nha .<br></p>","EnglishContent":"<p>Thương hiệu ROBERLO&nbsp; thuộc sở hữu của Tây Ban Nha .<br></p>","VietnameseKeyword":null,"EnglishKeyword":null,"VietnameseDescription":null,"EnglishDescription":null,"IsActive":true,"IsFeature":true,"VietnameseSlide":"[]","EnglishSlide":"[]","ImageModels":[],"CreateBy":1,"CreateName":"admin-Administrator","CreateDate":"2021-08-28T21:14:01.687","LastUpdateDate":null,"UpdateName":"","LastUpdateBy":null,"RowNumber":0},{"BrandId":3,"BrandCode":"DEBEER","VietnameseName":"DEBEER","EnglishName":"DEBEER","VietnameseSlug":"debeer","RatedPoint":0,"EnglishSlug":"debeer","VietnameseShortDescription":"DeBeer là thương hiệu của tập đoàn Sherwin-Williams USA","EnglishShortDescription":"DeBeer là thương hiệu của tập đoàn Sherwin-Williams USA","Image":"/uploads/images/THUONG%20HIEU/637657817350182753-home-debeer.jpg","VietnameseContent":"<p>DeBeer là thương hiệu của tập đoàn Sherwin-Williams USA<br></p>","EnglishContent":"<p>DeBeer là thương hiệu của tập đoàn Sherwin-Williams USA<br></p>","VietnameseKeyword":null,"EnglishKeyword":null,"VietnameseDescription":null,"EnglishDescription":null,"IsActive":true,"IsFeature":true,"VietnameseSlide":"[]","EnglishSlide":"[]","ImageModels":[],"CreateBy":1,"CreateName":"admin-Administrator","CreateDate":"2021-08-28T21:54:58.753","LastUpdateDate":"2021-08-28T21:54:58.753","UpdateName":"admin-Administrator","LastUpdateBy":1,"RowNumber":0},{"BrandId":2,"BrandCode":"SPRALAC","VietnameseName":"SPRALAC","EnglishName":"SPRALAC","VietnameseSlug":"spralac","RatedPoint":0,"EnglishSlug":"spralac","VietnameseShortDescription":"SPRALAC là 1 thương hiệu con của tập đoàn Sherwin-Williams","EnglishShortDescription":"SPRALAC là 1 thương hiệu con của tập đoàn Sherwin-Williams","Image":"/uploads/images/THUONG%20HIEU/home%20spralac.jpg","VietnameseContent":"<p>SPRALAC là 1 thương hiệu con của tập đoàn Sherwin-Williams<br></p>","EnglishContent":"<p>SPRALAC là 1 thương hiệu con của tập đoàn Sherwin-Williams<br></p>","VietnameseKeyword":null,"EnglishKeyword":null,"VietnameseDescription":null,"EnglishDescription":null,"IsActive":true,"IsFeature":true,"VietnameseSlide":"[]","EnglishSlide":"[]","ImageModels":[],"CreateBy":1,"CreateName":"admin-Administrator","CreateDate":"2021-08-28T21:07:42.857","LastUpdateDate":null,"UpdateName":"","LastUpdateBy":null,"RowNumber":0}]
/// message : null

class BrandResponse {
  int? _totalRecord;
  bool? _isSuccess;
  dynamic? _errorMesssage;
  List<BrandData>? _data;
  dynamic? _message;

  int? get totalRecord => _totalRecord;
  bool? get isSuccess => _isSuccess;
  dynamic? get errorMesssage => _errorMesssage;
  List<BrandData>? get data => _data;
  dynamic? get message => _message;

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

  BrandResponse.fromJson(dynamic json) {
    _totalRecord = json['totalRecord'];
    _isSuccess = json['isSuccess'];
    _errorMesssage = json['errorMesssage'];
    if (json['Data'] != null) {
      _data = [];
      json['Data'].forEach((v) {
        _data?.add(BrandData.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;
  }

}

/// BrandId : 5
/// BrandCode : "ROAR"
/// VietnameseName : "ROAR"
/// EnglishName : "ROAR"
/// VietnameseSlug : "roar"
/// RatedPoint : 0
/// EnglishSlug : "roar"
/// VietnameseShortDescription : "Công ty uy tín tại Anh Quốc !"
/// EnglishShortDescription : "Công ty uy tín tại Anh Quốc !"
/// Image : "/uploads/images/THUONG%20HIEU/637657820878271848-roar.jpg"
/// VietnameseContent : "<p>Công ty uy tín tại Anh Quốc !<br></p>"
/// EnglishContent : "<p>Công ty uy tín tại Anh Quốc !<br></p>"
/// VietnameseKeyword : null
/// EnglishKeyword : null
/// VietnameseDescription : null
/// EnglishDescription : null
/// IsActive : true
/// IsFeature : true
/// VietnameseSlide : "[]"
/// EnglishSlide : "[]"
/// ImageModels : []
/// CreateBy : 1
/// CreateName : "admin-Administrator"
/// CreateDate : "2021-08-28T21:15:59.197"
/// LastUpdateDate : "2021-08-28T21:15:59.197"
/// UpdateName : "admin-Administrator"
/// LastUpdateBy : 1
/// RowNumber : 0

class BrandData {
  int? _brandId;
  String? _brandCode;
  String? _vietnameseName;
  String? _englishName;
  String? _vietnameseSlug;
  int? _ratedPoint;
  String? _englishSlug;
  String? _vietnameseShortDescription;
  String? _englishShortDescription;
  String? _image;
  String? _vietnameseContent;
  String? _englishContent;
  dynamic? _vietnameseKeyword;
  dynamic? _englishKeyword;
  dynamic? _vietnameseDescription;
  dynamic? _englishDescription;
  bool? _isActive;
  bool? _isFeature;
  String? _vietnameseSlide;
  String? _englishSlide;
  List<dynamic>? _imageModels;
  int? _createBy;
  String? _createName;
  String? _createDate;
  String? _lastUpdateDate;
  String? _updateName;
  int? _lastUpdateBy;
  int? _rowNumber;

  int? get brandId => _brandId;
  String? get brandCode => _brandCode;
  String? get vietnameseName => _vietnameseName;
  String? get englishName => _englishName;
  String? get vietnameseSlug => _vietnameseSlug;
  int? get ratedPoint => _ratedPoint;
  String? get englishSlug => _englishSlug;
  String? get vietnameseShortDescription => _vietnameseShortDescription;
  String? get englishShortDescription => _englishShortDescription;
  String? get image => _image;
  String? get vietnameseContent => _vietnameseContent;
  String? get englishContent => _englishContent;
  dynamic? get vietnameseKeyword => _vietnameseKeyword;
  dynamic? get englishKeyword => _englishKeyword;
  dynamic? get vietnameseDescription => _vietnameseDescription;
  dynamic? get englishDescription => _englishDescription;
  bool? get isActive => _isActive;
  bool? get isFeature => _isFeature;
  String? get vietnameseSlide => _vietnameseSlide;
  String? get englishSlide => _englishSlide;
  List<dynamic>? get imageModels => _imageModels;
  int? get createBy => _createBy;
  String? get createName => _createName;
  String? get createDate => _createDate;
  String? get lastUpdateDate => _lastUpdateDate;
  String? get updateName => _updateName;
  int? get lastUpdateBy => _lastUpdateBy;
  int? get rowNumber => _rowNumber;

  BrandData({
      int? brandId, 
      String? brandCode, 
      String? vietnameseName, 
      String? englishName, 
      String? vietnameseSlug, 
      int? ratedPoint, 
      String? englishSlug, 
      String? vietnameseShortDescription, 
      String? englishShortDescription, 
      String? image, 
      String? vietnameseContent, 
      String? englishContent, 
      dynamic? vietnameseKeyword, 
      dynamic? englishKeyword, 
      dynamic? vietnameseDescription, 
      dynamic? englishDescription, 
      bool? isActive, 
      bool? isFeature, 
      String? vietnameseSlide, 
      String? englishSlide, 
      List<dynamic>? imageModels, 
      int? createBy, 
      String? createName, 
      String? createDate, 
      String? lastUpdateDate, 
      String? updateName, 
      int? lastUpdateBy, 
      int? rowNumber}){
    _brandId = brandId;
    _brandCode = brandCode;
    _vietnameseName = vietnameseName;
    _englishName = englishName;
    _vietnameseSlug = vietnameseSlug;
    _ratedPoint = ratedPoint;
    _englishSlug = englishSlug;
    _vietnameseShortDescription = vietnameseShortDescription;
    _englishShortDescription = englishShortDescription;
    _image = image;
    _vietnameseContent = vietnameseContent;
    _englishContent = englishContent;
    _vietnameseKeyword = vietnameseKeyword;
    _englishKeyword = englishKeyword;
    _vietnameseDescription = vietnameseDescription;
    _englishDescription = englishDescription;
    _isActive = isActive;
    _isFeature = isFeature;
    _vietnameseSlide = vietnameseSlide;
    _englishSlide = englishSlide;
    _imageModels = imageModels;
    _createBy = createBy;
    _createName = createName;
    _createDate = createDate;
    _lastUpdateDate = lastUpdateDate;
    _updateName = updateName;
    _lastUpdateBy = lastUpdateBy;
    _rowNumber = rowNumber;
}

  BrandData.fromJson(dynamic json) {
    _brandId = json['BrandId'];
    _brandCode = json['BrandCode'];
    _vietnameseName = json['VietnameseName'];
    _englishName = json['EnglishName'];
    _vietnameseSlug = json['VietnameseSlug'];
    _ratedPoint = json['RatedPoint'];
    _englishSlug = json['EnglishSlug'];
    _vietnameseShortDescription = json['VietnameseShortDescription'];
    _englishShortDescription = json['EnglishShortDescription'];
    _image = json['Image'];
    _vietnameseContent = json['VietnameseContent'];
    _englishContent = json['EnglishContent'];
    _vietnameseKeyword = json['VietnameseKeyword'];
    _englishKeyword = json['EnglishKeyword'];
    _vietnameseDescription = json['VietnameseDescription'];
    _englishDescription = json['EnglishDescription'];
    _isActive = json['IsActive'];
    _isFeature = json['IsFeature'];
    _vietnameseSlide = json['VietnameseSlide'];
    _englishSlide = json['EnglishSlide'];
    // if (json['ImageModels'] != null) {
    //   _imageModels = [];
    //   json['ImageModels'].forEach((v) {
    //     _imageModels?.add(dynamic.fromJson(v));
    //   });
    // }
    _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['BrandId'] = _brandId;
    map['BrandCode'] = _brandCode;
    map['VietnameseName'] = _vietnameseName;
    map['EnglishName'] = _englishName;
    map['VietnameseSlug'] = _vietnameseSlug;
    map['RatedPoint'] = _ratedPoint;
    map['EnglishSlug'] = _englishSlug;
    map['VietnameseShortDescription'] = _vietnameseShortDescription;
    map['EnglishShortDescription'] = _englishShortDescription;
    map['Image'] = _image;
    map['VietnameseContent'] = _vietnameseContent;
    map['EnglishContent'] = _englishContent;
    map['VietnameseKeyword'] = _vietnameseKeyword;
    map['EnglishKeyword'] = _englishKeyword;
    map['VietnameseDescription'] = _vietnameseDescription;
    map['EnglishDescription'] = _englishDescription;
    map['IsActive'] = _isActive;
    map['IsFeature'] = _isFeature;
    map['VietnameseSlide'] = _vietnameseSlide;
    map['EnglishSlide'] = _englishSlide;
    // if (_imageModels != null) {
    //   map['ImageModels'] = _imageModels?.map((v) => v.toJson()).toList();
    // }
    map['CreateBy'] = _createBy;
    map['CreateName'] = _createName;
    map['CreateDate'] = _createDate;
    map['LastUpdateDate'] = _lastUpdateDate;
    map['UpdateName'] = _updateName;
    map['LastUpdateBy'] = _lastUpdateBy;
    map['RowNumber'] = _rowNumber;
    return map;
  }

}