AutomaticBodyDecoding

public protocol AutomaticBodyDecoding

A protocol for types that can be initialized from Data provided by a network response

  • Create Self from Data?, or throw an error

    Declaration

    Swift

    init?(fromData: Data?) throws

    Parameters

    fromData

    The data to decode