/ fm / liveswitch / JsonProvider
Class: JsonProvider
fm.liveswitch.JsonProvider
Base class for all JSON provider implementations.
Hierarchy
JsonProvider
Table of contents
Constructors
Methods
Constructors
constructor
+ new JsonProvider(): JsonProvider
Returns: JsonProvider
Defined in: Generated/TypeScript/fm.liveswitch/JsonProvider.ts:11
Methods
deserialize
▸ Abstract
deserialize<T>(valueJson
: string): T
Deserializes a value from a JSON string.
Type parameters:
Name |
---|
T |
Parameters:
Name | Type | Description |
---|---|---|
valueJson |
string | The JSON string to deserialize. |
Returns: T
The deserialized value.
Defined in: Generated/TypeScript/fm.liveswitch/JsonProvider.ts:30
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/JsonProvider.ts:9
serialize
▸ Abstract
serialize<T>(value
: T): string
Serializes a value to a JSON string.
Type parameters:
Name |
---|
T |
Parameters:
Name | Type | Description |
---|---|---|
value |
T | The value to serialize. |
Returns: string
The serialized JSON string.
Defined in: Generated/TypeScript/fm.liveswitch/JsonProvider.ts:38