Encodable
public extension Encodable
-
Encode this value, optionally using a specific encoder. If no explicit encoder is passed, then the value is encoded into JSON.
Declaration
Swift
func encoded(using encoder: AnyEncoder = JSONEncoder()) throws -> Data