@override Object toJson() { return { 'parent': parent, if (tensorboard != null) 'tensorboard': tensorboard!.toJson(), }; }