AutomaticBodyEncoding

public protocol AutomaticBodyEncoding

A protocol for types that can be expressed as Data

  • Convert self into Data?, or throw and error

    Declaration

    Swift

    func asData() throws -> Data?