AnyEncoder
public protocol AnyEncoder
Protocol acting as a common API for all types of encoders,
such as JSONEncoder and PropertyListEncoder.
-
Encode a given value into binary data.
Declaration
Swift
func encode<T>(_ value: T) throws -> Data where T : Encodable
AnyEncoder Protocol Reference