RagFileChunkingConfig.fromJson constructor
RagFileChunkingConfig.fromJson(
- Object? j
Implementation
factory RagFileChunkingConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RagFileChunkingConfig(
fixedLengthChunking: switch (json['fixedLengthChunking']) {
null => null,
Object $1 => RagFileChunkingConfig_FixedLengthChunking.fromJson($1),
},
chunkSize: switch (json['chunkSize']) {
null => 0,
Object $1 => decodeInt($1),
},
chunkOverlap: switch (json['chunkOverlap']) {
null => 0,
Object $1 => decodeInt($1),
},
);
}