RagFileParsingConfig_LlmParser.fromJson constructor
RagFileParsingConfig_LlmParser.fromJson(
- Object? j
Implementation
factory RagFileParsingConfig_LlmParser.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RagFileParsingConfig_LlmParser(
modelName: switch (json['modelName']) {
null => '',
Object $1 => decodeString($1),
},
maxParsingRequestsPerMin: switch (json['maxParsingRequestsPerMin']) {
null => 0,
Object $1 => decodeInt($1),
},
globalMaxParsingRequestsPerMin:
switch (json['globalMaxParsingRequestsPerMin']) {
null => 0,
Object $1 => decodeInt($1),
},
customParsingPrompt: switch (json['customParsingPrompt']) {
null => '',
Object $1 => decodeString($1),
},
);
}