Decodable

public extension Decodable

Decodable extension for Transformers

  • Transforms the decodable object with the specified transformer.

    Declaration

    Swift

    func transform<FromType, ToType>(with transformer: Transformer<FromType, ToType>) throws -> ToType

    Parameters

    transformer

    The transformer object that handles the transformation.

    Return Value

    The transformed object