GenericSerializer
Implements:
- Serializer<R, Serialized>
A serializer that can be used for renderables that don't container any special logic or configuration.
Constructor Summary
| Public Constructor | ||
| public |
constructor(_name: string, _Class: ConfigureableType<R>) Creates an instance of GenericSerializer. |
|
Method Summary
| Public Methods | ||
| public |
deserialize(node: Serialized): RenderableArg<R> Deserializes the node. |
|
| public |
register(container: SerializerContainer) Registers this class with the container. |
|
| public |
serialize(node: R): Serialized Serializes the renderable. |
|
Public Constructors
Public Methods
public deserialize(node: Serialized): RenderableArg<R> source
Deserializes the node.
Params:
| Name | Type | Attribute | Description |
| node | Serialized |
Return:
| RenderableArg<R> |
public register(container: SerializerContainer) source
Registers this class with the container.
Params:
| Name | Type | Attribute | Description |
| container | SerializerContainer |
public serialize(node: R): Serialized source
Serializes the renderable.
Params:
| Name | Type | Attribute | Description |
| node | R |