FMLiveSwitchJson Class Reference

JSON utility class. More...

Instance Methods

(instancetype) - init
 

Class Methods

(id+ deserializeWithValueJson:
 Deserializes a value from a JSON string. More...
 
(FMLiveSwitchJson *) + json
 
(FMLiveSwitchJsonProvider *) + provider
 Gets the JSON provider to use. More...
 
(NSString *) + serialize:
 Serializes a value to a JSON string. More...
 
(void) + setProvider:
 Sets the JSON provider to use. More...
 

Detailed Description

JSON utility class.

Method Documentation

◆ deserializeWithValueJson:

+ (id) deserializeWithValueJson: (NSString *)  valueJson

Deserializes a value from a JSON string.

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

◆ init

- (instancetype) init

◆ json

+ (FMLiveSwitchJson*) json

◆ provider

+ (FMLiveSwitchJsonProvider*) provider

Gets the JSON provider to use.

◆ serialize:

+ (NSString*) serialize: (id value

Serializes a value to a JSON string.

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

◆ setProvider:

+ (void) setProvider: (FMLiveSwitchJsonProvider *)  value

Sets the JSON provider to use.