NSManagedObject
extension NSManagedObject: JSONifiable
-
The identifier (primary key) value of this object.
Declaration
Swift
public var identifier: AnyHashable? { get }
-
Set the attributes of this object from the (key, value) pairs in the dictionary. Dictionary keys that do not correspond with an attribute name are ignored.
Declaration
Swift
public func setAttributes(fromDictionary dictionary: [String : Any])
Parameters
dictionary
The dictionary from which to retrieve attribute values.
-
Produce a JSON serializable dictionary that represents this object.
Declaration
Swift
public func toJSONDictionary() -> [String : Any]
Return Value
A JSON serializable dictionary representing this object.