import 'package:json_annotation/json_annotation.dart'; part 'role_model.g.dart'; @JsonSerializable() class RoleModel { int? roleId; String? roleName; String? roleKey; int? roleSort; String? dataScope; bool? menuCheckStrictly; bool? orgCheckStrictly; String? status; String? createTime; bool? flag; bool? superAdmin; RoleModel({ this.roleId, this.roleName, this.roleKey, this.roleSort, this.dataScope, this.menuCheckStrictly, this.orgCheckStrictly, this.status, this.createTime, this.flag, this.superAdmin, }); factory RoleModel.fromJson(Map json) => _$RoleModelFromJson(json); Map toJson() => _$RoleModelToJson(this); }