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.

60 lines
2.4 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'act_product.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
ActProduct _$ActProductFromJson(Map<String, dynamic> json) => ActProduct()
..id = json['id'] as String?
..createTime = json['createTime'] as String?
..createUser = json['createUser'] as String?
..updateTime = json['updateTime'] as String?
..updateUser = json['updateUser'] as String?
..storeId = json['storeId'] as String?
..templateId = json['templateId'] as String?
..timeId = json['timeId'] as String?
..productId = json['productId'] as String?
..productName = json['productName'] as String?
..productImg = json['productImg'] as String?
..productPrice = json['productPrice'] as String?
..promotionPrice = json['promotionPrice'] as String?
..productStock = (json['productStock'] as num?)?.toInt()
..sellCount = (json['sellCount'] as num?)?.toInt()
..skuJson = (json['skuJson'] as List<dynamic>?)
?.map((e) => SkuJson.fromJson(e as Map<String, dynamic>))
.toList()
..isDelete = (json['isDelete'] as num?)?.toInt()
..shortName = json['shortName'] as String?
..supplierName = json['supplierName'] as String?
..detail = json['detail'] as String?
..details = json['details'] as String?
..rightImg = json['rightImg'] as String?;
Map<String, dynamic> _$ActProductToJson(ActProduct instance) =>
<String, dynamic>{
'id': instance.id,
'createTime': instance.createTime,
'createUser': instance.createUser,
'updateTime': instance.updateTime,
'updateUser': instance.updateUser,
'storeId': instance.storeId,
'templateId': instance.templateId,
'timeId': instance.timeId,
'productId': instance.productId,
'productName': instance.productName,
'productImg': instance.productImg,
'productPrice': instance.productPrice,
'promotionPrice': instance.promotionPrice,
'productStock': instance.productStock,
'sellCount': instance.sellCount,
'skuJson': instance.skuJson?.map((e) => e.toJson()).toList(),
'isDelete': instance.isDelete,
'shortName': instance.shortName,
'supplierName': instance.supplierName,
'detail': instance.detail,
'details': instance.details,
'rightImg': instance.rightImg,
};