MutableDictionaryObject
public final class MutableDictionaryObject : DictionaryObject, MutableDictionaryProtocolMutableDictionaryObject provides access to dictionary data.
- 
                  
                  Initialize a new empty MutableDictionaryObject object. DeclarationSwift public init()
- 
                  
                  Initialzes a new MutableDictionaryObject object with the data. Allowed value types are Array, ArrayObject, Blob, Date, Dictionary, DictionaryObject, NSNull, Number types, and String. The Arrays and Dictionaries must contain only the above types. DeclarationSwift public init(data: Dictionary<String, Any>)Parametersdictionarythe dictionary object. 
- 
                  
                  Initialzes a new MutableDictionary object from the JSON string. Throws An error on a failure.DeclarationSwift public init(json: String) throwsParametersjsonThe JSON string with data. 
- 
                  
                  Set a value for the given key. Allowed value types are Array, Date, Dictionary, Number types, NSNull, String, ArrayObject, Blob, DictionaryObject and nil. The Arrays and Dictionaries must contain only the above types. A nil value will be converted to an NSNull. An Date object will be converted to an ISO-8601 format string. DeclarationSwift @discardableResult public func setValue(_ value: Any?, forKey key: String) -> SelfParametersvalueThe value. keyThe key. Return ValueThe self object. 
- 
                  
                  Set a String value for the given key. DeclarationSwift @discardableResult public func setString(_ value: String?, forKey key: String) -> SelfParametersvalueThe String value. keyThe key. Return ValueThe self object. 
- 
                  
                  Set a Number value for the given key. DeclarationSwift @discardableResult public func setNumber(_ value: NSNumber?, forKey key: String) -> SelfParametersvalueThe number value. keyThey key. Return ValueThe self object. 
- 
                  
                  Set an int value for the given key. DeclarationSwift @discardableResult public func setInt(_ value: Int, forKey key: String) -> SelfParametersvalueThe int value. keyThe key. Return ValueThe self object. 
- 
                  
                  Set an int64 value for the given key. DeclarationSwift @discardableResult public func setInt64(_ value: Int64, forKey key: String) -> SelfParametersvalueThe int64 value. keyThe key. Return ValueThe self object. 
- 
                  
                  Set a double value for the given key. DeclarationSwift @discardableResult public func setDouble(_ value: Double, forKey key: String) -> SelfParametersvalueThe double value. keyThe key. Return ValueThe self object. 
- 
                  
                  Set a float value for the given key. DeclarationSwift @discardableResult public func setFloat(_ value: Float, forKey key: String) -> SelfParametersvalueThe float value. keyThe key. Return ValueThe self object. 
- 
                  
                  Set a boolean value for the given key. DeclarationSwift @discardableResult public func setBoolean(_ value: Bool, forKey key: String) -> SelfParametersvalueThe boolean value. keyThe key. Return ValueThe self object. 
- 
                  
                  Set a Date object for the given key. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setDate(_ value: Date?, forKey key: String) -> SelfParametersvalueThe Date object. keyThe key. Return ValueThe self object. 
- 
                  
                  Set a Blob object for the given key. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setBlob(_ value: Blob?, forKey key: String) -> SelfParametersvalueThe Blob object. keyThe key. Return ValueThe self object. 
- 
                  
                  Set an ArrayObject object for the given key. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setArray(_ value: ArrayObject?, forKey key: String) -> SelfParametersvalueThe ArrayObject object. keyThe key. Return ValueThe self object. 
- 
                  
                  Set a DictionaryObject object for the given key. A nil value will be converted to an NSNull. DeclarationSwift @discardableResult public func setDictionary(_ value: DictionaryObject?, forKey key: String) -> SelfParametersvalueThe DictionaryObject object. keyThe key. Return ValueThe self object. 
- 
                  
                  Set data for the dictionary. Allowed value types are Array, ArrayObject, Blob, Date, Dictionary, DictionaryObject, NSNull, Number types, and String. The Arrays and Dictionaries must contain only the above types. DeclarationSwift @discardableResult public func setData(_ data: Dictionary<String, Any>) -> SelfParametersdataThe data. Return ValueThe self object. 
- 
                  
                  Set data with JSON string. Throws An error on a failure.DeclarationSwift @discardableResult public func setJSON(_ json: String) throws -> SelfParametersjsonThe JSON string with data. Return ValueThe self object. 
- 
                  
                  Removes a given key and its value from the dictionary. DeclarationSwift @discardableResult public func removeValue(forKey key: String) -> SelfParameterskeyThe key. Return ValueThe self object. 
- 
                  
                  Get a property’s value as an MutableArrayObject, which is a mapping object of an array value. Returns nil if the property doesn’t exists, or its value is not an array. DeclarationSwift public override func array(forKey key: String) -> MutableArrayObject?ParameterskeyThe key. Return ValueThe MutableArrayObject object or nil if the property doesn’t exist. 
- 
                  
                  Get a property’s value as a MutableDictionaryObject, which is a mapping object of a dictionary value. Returns nil if the property doesn’t exists, or its value is not a dictionary. DeclarationSwift public override func dictionary(forKey key: String) -> MutableDictionaryObject?ParameterskeyThe key. Return ValueThe MutableDictionaryObject object. 
- 
                  
                  Subscripting access to a MutableFragment object that represents the value of the dictionary by key. DeclarationSwift public override subscript(key: String) -> MutableFragment { get }ParameterskeyThe key. Return ValueThe Fragment object. 
- 
                  
                  Mutable Objects will throw an exception, when called toJSON DeclarationSwift public override func toJSON() -> String
 MutableDictionaryObject Class Reference
        MutableDictionaryObject Class Reference