-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
dictionary = try container.decode([String: Any].self, forKey: .dictionary)
}
func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(dictionary, forKey: .dictionary)
}有什么办法可以不重复写这些代码
(Is there any way to not write this code?)
Metadata
Metadata
Assignees
Labels
No labels