import 'package:json_annotation/json_annotation.dart'; part 'config.g.dart'; @JsonSerializable() class ConfigModel { int configId; String configName; String configKey; String configValue; String? configType; ConfigModel({ required this.configId, required this.configName, required this.configKey, required this.configValue, this.configType, }); factory ConfigModel.fromJson(Map json) => _$ConfigModelFromJson(json); Map toJson() => _$ConfigModelToJson(this); }