role_model.dart 739 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'role_model.g.dart';
  3. @JsonSerializable()
  4. class RoleModel {
  5. int? roleId;
  6. String? roleName;
  7. String? roleKey;
  8. int? roleSort;
  9. String? dataScope;
  10. bool? menuCheckStrictly;
  11. bool? orgCheckStrictly;
  12. String? status;
  13. String? createTime;
  14. bool? flag;
  15. bool? superAdmin;
  16. RoleModel({
  17. this.roleId,
  18. this.roleName,
  19. this.roleKey,
  20. this.roleSort,
  21. this.dataScope,
  22. this.menuCheckStrictly,
  23. this.orgCheckStrictly,
  24. this.status,
  25. this.createTime,
  26. this.flag,
  27. this.superAdmin,
  28. });
  29. factory RoleModel.fromJson(Map<String, dynamic> json) =>
  30. _$RoleModelFromJson(json);
  31. Map<String, dynamic> toJson() => _$RoleModelToJson(this);
  32. }