You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/// name : "asdasdsad"
|
|
|
|
/// image : "https://pos.upload.gznl.top/MDAwMA==/2021/07/1741cb53-d035-4f3e-9ca1-b6f1a7fb13eb.webp"
|
|
|
|
/// video : "asdasdad"
|
|
|
|
/// desc : "asdasdas"
|
|
|
|
/// content : "hshs"
|
|
|
|
/// sort : 0
|
|
|
|
/// storeId : "0"
|
|
|
|
|
|
|
|
class Brand {
|
|
|
|
String _name;
|
|
|
|
String _image;
|
|
|
|
String _video;
|
|
|
|
String _desc;
|
|
|
|
String _content;
|
|
|
|
String _icon;
|
|
|
|
int _sort;
|
|
|
|
String _storeId;
|
|
|
|
|
|
|
|
String get name => _name;
|
|
|
|
String get image => _image;
|
|
|
|
String get video => _video;
|
|
|
|
String get desc => _desc;
|
|
|
|
String get content => _content;
|
|
|
|
String get icon => _icon;
|
|
|
|
int get sort => _sort;
|
|
|
|
String get storeId => _storeId;
|
|
|
|
|
|
|
|
Brand({
|
|
|
|
String name,
|
|
|
|
String image,
|
|
|
|
String video,
|
|
|
|
String desc,
|
|
|
|
String content,
|
|
|
|
int sort,
|
|
|
|
String storeId}){
|
|
|
|
_name = name;
|
|
|
|
_image = image;
|
|
|
|
_video = video;
|
|
|
|
_desc = desc;
|
|
|
|
_content = content;
|
|
|
|
_icon = icon;
|
|
|
|
_sort = sort;
|
|
|
|
_storeId = storeId;
|
|
|
|
}
|
|
|
|
|
|
|
|
Brand.fromJson(dynamic json) {
|
|
|
|
_name = json["name"];
|
|
|
|
_image = json["image"];
|
|
|
|
_video = json["video"];
|
|
|
|
_desc = json["desc"];
|
|
|
|
_content = json["content"];
|
|
|
|
_icon = json["icon"];
|
|
|
|
_sort = json["sort"];
|
|
|
|
_storeId = json["storeId"];
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
var map = <String, dynamic>{};
|
|
|
|
map["name"] = _name;
|
|
|
|
map["image"] = _image;
|
|
|
|
map["video"] = _video;
|
|
|
|
map["desc"] = _desc;
|
|
|
|
map["content"] = _content;
|
|
|
|
map["sort"] = _sort;
|
|
|
|
map["storeId"] = _storeId;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|