ToolConfig.fromJson constructor

ToolConfig.fromJson(
  1. Object? j
)

Implementation

factory ToolConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ToolConfig(
    functionCallingConfig: switch (json['functionCallingConfig']) {
      null => null,
      Object $1 => FunctionCallingConfig.fromJson($1),
    },
  );
}