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