CodableHandler

public class CodableHandler<T> : Handler<T> where T : Decodable, T : Encodable

A handler that coverts JSON response into cadable objects.

  • The strategy to use for decoding keys. Defaults to .useDefaultKeys.

    Declaration

    Swift

    public var keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy
  • The strategy to use in decoding dates. Defaults to .deferredToDate.

    Declaration

    Swift

    public var dateDecodingStrategy: JSONDecoder.DateDecodingStrategy
  • The strategy to use in decoding binary data. Defaults to .base64.

    Declaration

    Swift

    public var dataDecodingStrategy: JSONDecoder.DataDecodingStrategy
  • The strategy to use in decoding non-conforming numbers. Defaults to .throw.

    Declaration

    Swift

    public var nonConformingFloatDecodingStrategy: JSONDecoder.NonConformingFloatDecodingStrategy