//=========================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
//
//  This software is distributed WITHOUT ANY WARRANTY; without even
//  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//  PURPOSE.  See the above copyright notice for more information.
//=========================================================================
#ifndef smtk_attribute_jsonVoidItemDefinition_h
#define smtk_attribute_jsonVoidItemDefinition_h

#include "smtk/PublicPointerDefs.h"
#include "smtk/attribute/VoidItemDefinition.h"

#include "nlohmann/json.hpp"

#include <string>
using json = nlohmann::json;

/**\brief Provide a way to serialize VoidItemDefinitionPtr
  */
namespace smtk
{
namespace attribute
{
using AttRefDefInfo = std::pair<smtk::attribute::RefItemDefinitionPtr, std::string>;
SMTKCORE_EXPORT void to_json(
  nlohmann::json& j, const smtk::attribute::VoidItemDefinitionPtr& defPtr);

SMTKCORE_EXPORT void from_json(
  const nlohmann::json& j, smtk::attribute::VoidItemDefinitionPtr& defPtr);
}
}

#endif
