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