FMLiveSwitchNullJsonProvider Class Reference

An implementation of a JSON provider that does nothing. 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

(FMLiveSwitchNullJsonProvider *) + nullJsonProvider
 
- Class Methods inherited from FMLiveSwitchJsonProvider
(FMLiveSwitchJsonProvider *) + jsonProvider
 

Detailed Description

An implementation of a JSON provider that does nothing.

Method Documentation

◆ deserializeWithValueJson:

- (id) deserializeWithValueJson: (NSString *)  valueJson

Deserializes a value from a JSON string.

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

Implements FMLiveSwitchJsonProvider.

◆ init

- (instancetype) init

◆ nullJsonProvider

+ (FMLiveSwitchNullJsonProvider*) nullJsonProvider

◆ serialize:

- (NSString*) serialize: (id value

Serializes a value to a JSON string.

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

Implements FMLiveSwitchJsonProvider.