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.
25 lines
472 B
25 lines
472 B
10 months ago
|
|
||
|
|
||
|
|
||
|
import 'dart:convert';
|
||
|
|
||
|
import 'package:huixiang/generated/json/base/json_field.dart';
|
||
|
import 'package:huixiang/generated/json/sku_json.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class SkuJson {
|
||
|
String? skuId = '';
|
||
|
int? skuPrice = 0;
|
||
|
int? skuStock = 0;
|
||
|
|
||
|
SkuJson();
|
||
|
|
||
|
factory SkuJson.fromJson(Map<String, dynamic> json) => $SkuJsonFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => $SkuJsonToJson(this);
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return jsonEncode(this);
|
||
|
}
|
||
|
}
|