factory ToolConfig.fromJson(Map<String, dynamic> json) { return ToolConfig( functionCallingConfig: decode( json['functionCallingConfig'], FunctionCallingConfig.fromJson, ), ); }