AutomaticBodyEncoding
public protocol AutomaticBodyEncoding
A protocol for types that can be expressed as Data
-
Convert
self
intoData?
, or throw and errorDeclaration
Swift
func asData() throws -> Data?