toJson method
Converts to JSON.
Returns either a string ("auto"/"disabled") or a Map.
Implementation
@override
Map<String, dynamic> toJson() => {
'type': type,
'retention_ratio': retentionRatio,
if (postInstructionsTokenLimit != null)
'token_limits': {'post_instructions': postInstructionsTokenLimit},
};