import 'package:json_annotation/json_annotation.dart'; part 'goods_category.g.dart'; @JsonSerializable(explicitToJson: true) class GoodsCategory { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? parentId = ''; String? name = ''; int? miniShow = 0; int? sortOrder = 0; int? isDelete = 0; GoodsCategory(); factory GoodsCategory.fromJson(Map json) => _$GoodsCategoryFromJson(json); Map toJson() => _$GoodsCategoryToJson(this); }