config.dart 544 B

12345678910111213141516171819202122232425
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'config.g.dart';
  3. @JsonSerializable()
  4. class ConfigModel {
  5. int configId;
  6. String configName;
  7. String configKey;
  8. String configValue;
  9. String? configType;
  10. ConfigModel({
  11. required this.configId,
  12. required this.configName,
  13. required this.configKey,
  14. required this.configValue,
  15. this.configType,
  16. });
  17. factory ConfigModel.fromJson(Map<String, dynamic> json) =>
  18. _$ConfigModelFromJson(json);
  19. Map<String, dynamic> toJson() => _$ConfigModelToJson(this);
  20. }