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.
 
 
 
 
 
 

64 lines
1.4 KiB

import 'package:huixiang/generated/json/base/json_field.dart';
import 'package:huixiang/generated/json/product.g.dart';
import 'dart:convert';
export 'package:huixiang/generated/json/product.g.dart';
@JsonSerializable()
class Product {
String? id;
String? createTime;
String? createUser;
String? updateTime;
String? updateUser;
dynamic tenantCode;
String? storeId;
String? orderId;
String? productId;
String? productName;
String? skuId;
String? skuNameStr;
String? skuImg;
int? buyNum;
int? refundNum;
double? weight;
String? applyPrice;
String? sellPrice;
String? postPay;
int? isDelete;
String? discountAmount;
int? discountPercent;
bool? status;
int? batch;
Product(
{this.id,
this.createTime,
this.createUser,
this.updateTime,
this.updateUser,
this.tenantCode,
this.storeId,
this.orderId,
this.productId,
this.productName,
this.skuId,
this.skuNameStr,
this.skuImg,
this.buyNum,
this.refundNum,
this.weight,
this.applyPrice,
this.sellPrice,
this.postPay,
this.isDelete,
this.discountAmount,
this.discountPercent,
this.status,
this.batch});
factory Product.fromJson(Map<String, dynamic> json) => $ProductFromJson(json);
Map<String, dynamic> toJson() => $ProductToJson(this);
}