toConfig method
A new user entry based on this preset.
Implementation
ProviderConfig toConfig({required String id, String? model, String? name}) =>
ProviderConfig(
id: id,
name: name ?? this.name,
protocol: protocol,
baseUrl: baseUrl,
model: model ?? (suggestedModels.isEmpty ? '' : suggestedModels.first),
presetId: this.id,
structuredOutput: structuredOutput,
maxTokensField: maxTokensField,
);