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.

86 lines
2.1 KiB

4 years ago
/// id : "1412705737469067264"
/// createTime : "2021-07-07 17:31:09"
/// createUser : "1"
/// updateTime : "2021-07-20 16:50:28"
/// updateUser : "1"
/// parentId : "0"
/// name : "饮食"
/// miniShow : 1
/// sortOrder : 1
/// isDelete : 0
class GoodsCategory {
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
String _parentId;
String _name;
int _miniShow;
int _sortOrder;
int _isDelete;
String get id => _id;
String get createTime => _createTime;
String get createUser => _createUser;
String get updateTime => _updateTime;
String get updateUser => _updateUser;
String get parentId => _parentId;
String get name => _name;
int get miniShow => _miniShow;
int get sortOrder => _sortOrder;
int get isDelete => _isDelete;
GoodsCategory({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String parentId,
String name,
int miniShow,
int sortOrder,
int isDelete}){
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_parentId = parentId;
_name = name;
_miniShow = miniShow;
_sortOrder = sortOrder;
_isDelete = isDelete;
}
GoodsCategory.fromJson(dynamic json) {
_id = json["id"];
_createTime = json["createTime"];
_createUser = json["createUser"];
_updateTime = json["updateTime"];
_updateUser = json["updateUser"];
_parentId = json["parentId"];
_name = json["name"];
_miniShow = json["miniShow"];
_sortOrder = json["sortOrder"];
_isDelete = json["isDelete"];
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
map["id"] = _id;
map["createTime"] = _createTime;
map["createUser"] = _createUser;
map["updateTime"] = _updateTime;
map["updateUser"] = _updateUser;
map["parentId"] = _parentId;
map["name"] = _name;
map["miniShow"] = _miniShow;
map["sortOrder"] = _sortOrder;
map["isDelete"] = _isDelete;
return map;
}
}