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