SmartDecodable
public protocol SmartDecodable : Decodable
Undocumented
-
didFinishMapping()
Default implementationThe callback for when mapping is complete
Default Implementation
Declaration
Swift
mutating func didFinishMapping()
-
mappingForKey()
Default implementationThe mapping relationship of decoding keys, the first mapping relationship that is not null is preferred
Default Implementation
Declaration
Swift
static func mappingForKey() -> [SmartKeyTransformer]?
-
mappingForValue()
Default implementationThe strategy for decoding values
Default Implementation
Declaration
Swift
static func mappingForValue() -> [SmartValueTransformer]?
-
Undocumented
Declaration
Swift
init()
-
deserializeAny(from:
Extension methoddesignatedPath: options: ) Deserializes any into a model
Declaration
Swift
public static func deserializeAny(from object: Any?, designatedPath: String? = nil, options: Set<SmartDecodingOption>? = nil) -> Self?
-
deserialize(from:
Extension methoddesignatedPath: options: ) Deserializes into a model
Declaration
Swift
public static func deserialize(from dict: [String : Any]?, designatedPath: String? = nil, options: Set<SmartDecodingOption>? = nil) -> Self?
-
deserialize(from:
Extension methoddesignatedPath: options: ) Deserializes into a model
Declaration
Swift
public static func deserialize(from json: String?, designatedPath: String? = nil, options: Set<SmartDecodingOption>? = nil) -> Self?
-
deserialize(from:
Extension methoddesignatedPath: options: ) Deserializes into a model
Declaration
Swift
public static func deserialize(from data: Data?, designatedPath: String? = nil, options: Set<SmartDecodingOption>? = nil) -> Self?
-
deserializePlist(from:
Extension methoddesignatedPath: options: ) Deserializes into a model
Declaration
Swift
public static func deserializePlist(from data: Data?, designatedPath: String? = nil, options: Set<SmartDecodingOption>? = nil) -> Self?
-
mergeAny(from:
Extension methoddesignatedPath: ) Merge any info a model
Declaration
Swift
public mutating func mergeAny(from object: Any?, designatedPath: String? = nil)