@override Object toJson() => { if (ragEngineConfig case final ragEngineConfig?) 'ragEngineConfig': ragEngineConfig.toJson(), };