fromString static method
Implementation
static AiModelType fromString(String value) {
switch (value) {
case 'Gemini':
return AiModelType.gemini;
case 'OpenAI':
return AiModelType.openAi;
default:
throw Exception('Invalid AiModelType value: $value');
}
}