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