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.

69 lines
1.4 KiB

4 years ago
/// 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"
4 years ago
class Brand {
4 years ago
String _name;
String _image;
String _video;
String _desc;
String _content;
3 years ago
String _icon;
4 years ago
int _sort;
4 years ago
String _storeId;
4 years ago
String get name => _name;
String get image => _image;
String get video => _video;
String get desc => _desc;
String get content => _content;
3 years ago
String get icon => _icon;
4 years ago
int get sort => _sort;
4 years ago
String get storeId => _storeId;
Brand({
4 years ago
String name,
String image,
String video,
String desc,
String content,
int sort,
String storeId}){
_name = name;
_image = image;
_video = video;
_desc = desc;
_content = content;
3 years ago
_icon = icon;
4 years ago
_sort = sort;
4 years ago
_storeId = storeId;
}
Brand.fromJson(dynamic json) {
4 years ago
_name = json["name"];
_image = json["image"];
_video = json["video"];
_desc = json["desc"];
_content = json["content"];
3 years ago
_icon = json["icon"];
4 years ago
_sort = json["sort"];
4 years ago
_storeId = json["storeId"];
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
4 years ago
map["name"] = _name;
map["image"] = _image;
map["video"] = _video;
map["desc"] = _desc;
map["content"] = _content;
map["sort"] = _sort;
4 years ago
map["storeId"] = _storeId;
return map;
}
}