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