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.
42 lines
1.0 KiB
42 lines
1.0 KiB
import 'package:huixiang/data/sku_json.dart'; |
|
import 'package:huixiang/generated/json/base/json_field.dart'; |
|
import 'package:huixiang/generated/json/act_product.g.dart'; |
|
import 'dart:convert'; |
|
export 'package:huixiang/generated/json/act_product.g.dart'; |
|
|
|
@JsonSerializable() |
|
class ActProduct { |
|
String? id = ''; |
|
String? createTime = ''; |
|
String? createUser = ''; |
|
String? updateTime = ''; |
|
String? updateUser = ''; |
|
String? storeId = ''; |
|
String? templateId = ''; |
|
String? timeId = ''; |
|
String? productId = ''; |
|
String? productName = ''; |
|
String? productImg = ''; |
|
String? productPrice = ''; |
|
String? promotionPrice = ''; |
|
int? productStock = 0; |
|
int? sellCount = 0; |
|
List<SkuJson>? skuJson = []; |
|
int? isDelete = 0; |
|
String? shortName = ''; |
|
String? supplierName = ''; |
|
String? detail = ''; |
|
String? details = ''; |
|
String? rightImg = ''; |
|
|
|
ActProduct(); |
|
|
|
factory ActProduct.fromJson(Map<String, dynamic> json) => $ActProductFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $ActProductToJson(this); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
}
|
|
|