//=========================================================================
//  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_session_polygon_json_jsonVertex_h
#define smtk_session_polygon_json_jsonVertex_h

#include "smtk/session/polygon/Exports.h"

#include "smtk/session/polygon/internal/Vertex.h"

#include "nlohmann/json.hpp"

// Define how polygon resources are serialized.
using json = nlohmann::json;
namespace smtk
{
namespace session
{
namespace polygon
{
namespace internal
{
SMTKPOLYGONSESSION_EXPORT void to_json(
  json& j,
  const smtk::session::polygon::internal::vertex::Ptr& vertex);

SMTKPOLYGONSESSION_EXPORT void from_json(
  const json& j,
  smtk::session::polygon::internal::vertex::Ptr& vertex);
} // namespace internal
} // namespace polygon
} // namespace session
} // namespace smtk

#endif
