FMLiveSwitchJsonProvider Class Reference

Base class for all JSON provider implementations. More...

Instance Methods

(id- deserializeWithValueJson:
 Deserializes a value from a JSON string. More...
 
(instancetype) - init
 
(NSString *) - serialize:
 Serializes a value to a JSON string. More...
 

Class Methods

(FMLiveSwitchJsonProvider *) + jsonProvider
 

Detailed Description

Base class for all JSON provider implementations.

Method Documentation

◆ deserializeWithValueJson:

- (id) deserializeWithValueJson: (NSString *)  valueJson

Deserializes a value from a JSON string.

Parameters
valueJsonThe JSON string to deserialize.
Returns
The deserialized value.

Implemented in FMLiveSwitchNullJsonProvider.

◆ init

- (instancetype) init

◆ jsonProvider

+ (FMLiveSwitchJsonProvider*) jsonProvider

◆ serialize:

- (NSString*) serialize: (id value

Serializes a value to a JSON string.

Parameters
valueThe value to serialize.
Returns
The serialized JSON string.

Implemented in FMLiveSwitchNullJsonProvider.