You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
862 B
30 lines
862 B
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'appconfig_model.g.dart'; // 生成的文件名
|
|
|
|
@JsonSerializable()
|
|
class UserGetAppConfigResp {
|
|
final Map<String, String> env;
|
|
final Map<String, DBMCPServer> mcps;
|
|
UserGetAppConfigResp({required this.env, required this.mcps});
|
|
|
|
factory UserGetAppConfigResp.fromJson(Map<String, dynamic> json) =>
|
|
_$UserGetAppConfigRespFromJson(json);
|
|
Map<String, dynamic> toJson() => _$UserGetAppConfigRespToJson(this);
|
|
}
|
|
|
|
@JsonSerializable()
|
|
class DBMCPServer {
|
|
final String servername;
|
|
final String url;
|
|
final List<String>? tools;
|
|
DBMCPServer({
|
|
required this.servername,
|
|
required this.url,
|
|
required this.tools,
|
|
});
|
|
|
|
factory DBMCPServer.fromJson(Map<String, dynamic> json) =>
|
|
_$DBMCPServerFromJson(json);
|
|
Map<String, dynamic> toJson() => _$DBMCPServerToJson(this);
|
|
}
|
|
|