modelNameFromPayloadType (payloadType) Stringpublic
Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:630
modelNameFromPayloadType can be used to change the mapping for a DS model name, taken from the value in the payload. Say your API namespaces the type of a model and returns the following payload for the post model: // GET /api/posts/1
{
"data": {
"id": 1,
"type: "api::v1::post"
}
}
By overwriting modelNameFromPayloadType you can specify that