|
LOM2M
0.8.0
|
#include <JsonMapper.h>
Static Public Member Functions | |
| static int | mapAttributes (JsonObject jsonObj, Subscription *sub, int level=0, bool restCreation=false, bool mapAll=false) |
| static Subscription * | parseResource (JsonObject o, const String &name, Entity *targetEntity, Entity *toUpdate=nullptr) |
Provide specific mapping and parsing methods dedicated to SUB resource
|
static |
Map specific attributes of SUB resource
| jsonObj | root of the json object used to map the resource |
| sub | 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 SUB resource (will map json object to a SUB entity)
| jsonObj | root of the json object used to map the resource |
| name | of the entity (to be handled externaly) |
| resp | response primitive used to return response status code |
| targetEntity | parent of the resource to create |