[3] Codable (Swift 4)
2017-09-20 本文已影响22人
coderzcj
重点:
- Strategy
- Date
- Data
- NonConformingFloat
- Container
- Keyed Container
- UnKeyed Container
- Single Value Container
- Optional
- encode(_:forKey:)
如果可选类型的值是nil,包含对应的Key, Value 为null。 - encodeIfPresent(_:forKey:)
如果可选类型的值是nil,则不包含对应的Key 和 Value。
- UserInfo