ContextWindowCompressionConfig.fromJson constructor
ContextWindowCompressionConfig.fromJson(
- Object? j
Implementation
factory ContextWindowCompressionConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ContextWindowCompressionConfig(
slidingWindow: switch (json['slidingWindow']) {
null => null,
Object $1 => ContextWindowCompressionConfig_SlidingWindow.fromJson($1),
},
triggerTokens: switch (json['triggerTokens']) {
null => null,
Object $1 => decodeInt64($1),
},
);
}