fpmas 1.5
Static Public Member Functions | List of all members
nlohmann::adl_serializer< fpmas::api::model::WeakAgentPtr > Struct Reference

#include <model.h>

Static Public Member Functions

static void to_json (json &j, const fpmas::api::model::WeakAgentPtr &pointer)
 
static fpmas::api::model::WeakAgentPtr from_json (const json &j)
 

Detailed Description

fpmas::api::model::WeakAgentPtr nlohmann::json serialization rules declaration.

to_json and from_json methods must be defined by the user at compile time, depending on its own Agent types, using the FPMAS_JSON_SET_UP() macro, that must be called from a source file. Otherwise, linker errors will be thrown.

Member Function Documentation

◆ to_json()

static void nlohmann::adl_serializer< fpmas::api::model::WeakAgentPtr >::to_json ( json &  j,
const fpmas::api::model::WeakAgentPtr pointer 
)
static

◆ from_json()

static fpmas::api::model::WeakAgentPtr nlohmann::adl_serializer< fpmas::api::model::WeakAgentPtr >::from_json ( const json &  j)
static

The documentation for this struct was generated from the following file: