Class: JSONAPIResourceIdentitySerializer
Hierarchy​
JSONAPIBaseSerializer
<InitializedRecord
,Resource
,unknown
,JSONAPIResourceIdentityDeserializationOptions
>↳
JSONAPIResourceIdentitySerializer
Constructors​
constructor​
• new JSONAPIResourceIdentitySerializer(settings
)
Parameters​
Name | Type |
---|---|
settings | JSONAPIResourceIdentitySerializerSettings |
Overrides​
JSONAPIBaseSerializer.constructor
Defined in​
packages/@orbit/jsonapi/src/serializers/jsonapi-resource-identity-serializer.ts:62
Properties​
serializerFor​
• serializerFor: SerializerForFn
<Serializer
<unknown
, unknown
, unknown
, unknown
>>
Inherited from​
JSONAPIBaseSerializer.serializerFor
Defined in​
packages/@orbit/jsonapi/src/serializers/jsonapi-base-serializer.ts:27
Accessors​
keyMap​
• get
keyMap(): undefined
| RecordKeyMap
Returns​
undefined
| RecordKeyMap
Inherited from​
JSONAPIBaseSerializer.keyMap
Defined in​
packages/@orbit/jsonapi/src/serializers/jsonapi-base-serializer.ts:58
schema​
• get
schema(): RecordSchema
Returns​
RecordSchema
Inherited from​
JSONAPIBaseSerializer.schema
Defined in​
packages/@orbit/jsonapi/src/serializers/jsonapi-base-serializer.ts:54
Methods​
deserialize​
â–¸ deserialize(resource
, customOptions?
): InitializedRecord
Parameters​
Name | Type |
---|---|
resource | Resource |
customOptions? | JSONAPIResourceIdentityDeserializationOptions |
Returns​
InitializedRecord
Overrides​
JSONAPIBaseSerializer.deserialize
Defined in​
packages/@orbit/jsonapi/src/serializers/jsonapi-resource-identity-serializer.ts:99
getResourceKey​
â–¸ getResourceKey(type
): string
Parameters​
Name | Type |
---|---|
type | string |
Returns​
string
Defined in​
packages/@orbit/jsonapi/src/serializers/jsonapi-resource-identity-serializer.ts:32
serialize​
â–¸ serialize(recordIdentity
): Resource
Parameters​
Name | Type |
---|---|
recordIdentity | InitializedRecord |
Returns​
Overrides​
JSONAPIBaseSerializer.serialize
Defined in​
packages/@orbit/jsonapi/src/serializers/jsonapi-resource-identity-serializer.ts:80