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.
46 lines
1.0 KiB
46 lines
1.0 KiB
10 months ago
|
import 'package:huixiang/generated/json/base/json_field.dart';
|
||
|
import 'package:huixiang/generated/json/goods.g.dart';
|
||
|
import 'dart:convert';
|
||
|
export 'package:huixiang/generated/json/goods.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class Goods {
|
||
|
String? id = '';
|
||
|
String? createTime = '';
|
||
|
String? createUser = '';
|
||
|
String? updateTime = '';
|
||
|
String? updateUser = '';
|
||
|
String? categoryId = '';
|
||
|
String? storeId = '';
|
||
|
String? name = '';
|
||
|
String? description = '';
|
||
|
String? detail = '';
|
||
|
String? worth = '';
|
||
|
String? price = '';
|
||
|
String? money = '';
|
||
|
String? onePrice = '';
|
||
|
String? oneMoney = '';
|
||
|
int? stock = 0;
|
||
|
int? sales = 0;
|
||
|
bool? isHot = false;
|
||
|
int? sortOrder = 0;
|
||
|
int? state = 0;
|
||
|
bool? canPick = false;
|
||
|
bool? canDelivery = false;
|
||
|
int? isDelete = 0;
|
||
|
dynamic categoryName;
|
||
|
String? mainImgPath = '';
|
||
|
String? oneBean = '';
|
||
|
List<String>? viceImgPaths = [];
|
||
|
|
||
|
Goods();
|
||
|
|
||
|
factory Goods.fromJson(Map<String, dynamic> json) => $GoodsFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => $GoodsToJson(this);
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return jsonEncode(this);
|
||
|
}
|
||
|
}
|