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