|
LOM2M
0.8.0
|
#include <JsonMapper.h>
Static Public Member Functions | |
| static int | mapAttributes (JsonObject jsonObj, AccessControlPolicy *acp, int level=0, bool restCreation=false, bool mapAll=false) |
| static AccessControlPolicy * | parseResource (JsonObject o, const String &name, Entity *entityToFill=nullptr) |
Provide specific mapping and parsing methods dedicated to ACP resource
|
static |
Map specific attributes of ACP resource
| jsonObj | root of the json object used to map the resource |
| e | entity to map to a json object |
| level | of depth of mapping (in case of mapping with children resources) |
| restCreation | boolean used to avoid serializing non permitted attributes (useful for REST creation of resource) |
| mapAll | internal parameter used for full serialization of all entities |
|
static |
Parse ACP resource (will map json object to an ACP entity)
| jsonObj | root of the json object used to map the resource |
| name | of the entity (to be handled externaly) |