class ConfigService { late final port; ConfigService({ required this.port, }); ConfigService.fromJson(Map json) { port = json['port']; } Map toJson() { final data = {}; return data; } @override String toString() { return toJson().toString(); } }