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