import 'package:json_annotation/json_annotation.dart'; part 'collect_class.g.dart'; @JsonSerializable(explicitToJson: true) class CollectClass { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? name = ''; int? sort = 0; bool? enabled = false; int? isDelete = 0; CollectClass(); factory CollectClass.fromJson(Map json) => _$CollectClassFromJson(json); Map toJson() => _$CollectClassToJson(this); }