Skip to content

Commit

Permalink
删除废弃代码
Browse files Browse the repository at this point in the history
  • Loading branch information
intsig171 committed Jul 31, 2024
1 parent edcdf0e commit bbc4590
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions SmartCodable/Classes/SmartCodable/SmartUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,9 @@ public struct SmartUpdater<T: SmartCodable> {
/// - dest: A reference to the target object (the inout keyword indicates that this object will be modified within the method).
/// - src: A Dictionary object containing the JSON data.
public static func update(_ dest: inout T, from src: [String: Any]?) {

guard let src = src else { return }

var destDict = dest.toDictionary() ?? [:]
updateDict(&destDict, from: src)

print(destDict)

if let model = T.deserialize(from: destDict) {
dest = model
}
Expand Down

0 comments on commit bbc4590

Please sign in to comment.