SerializerAware
Extends:
SerializerInterface → SerializerAware
Direct Subclass:
Any serializer implementing this interface will access to a serializer at runtime.
Test:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Protected Members | ||
protected |
|
Method Summary
Public Methods | ||
public |
setSerializer(serializer: SerializerInterface) |
Inherited Summary
From class SerializerInterface | ||
public |
deserialize(data: *, className: string, format: string, context: *): * Deserializes data back into an object of the given class. |
|
public |
Serializes any data object into and object usable for the backend service. |
|
public |
supportsDeserialize(data: *, className: string, format: string): boolean Checks whether the given class is supported for deserialization by this serializer. |
|
public |
supportsSerialize(data: *, format: string): boolean Checks whether the given class is supported for serialization by this serializer. |
Public Constructors
Protected Members
protected _serializer: SerializerInterface source
Public Methods
public setSerializer(serializer: SerializerInterface) source
Params:
Name | Type | Attribute | Description |
serializer | SerializerInterface |