CustomEncoder
public protocol CustomEncoder : CustomCoder
Protocol for object that will encode a value
-
encode CodableValue with supplied encoder
Declaration
Swift
static func encode(value: CodableValue, to encoder: Encoder) throws
-
string(from:
Default implementation) return value as a String. Used by query string and header values
Default Implementation
Declaration
Swift
static func string(from: CodableValue) -> String?