public protocol ConfigurationTransforming : AnyObject

This protocol describes a transformation from a specific value to an other object. It is used to transform a configuration to typed objects. The config source of the transformation can be a Dictionary, an Array or any simple type. Since the config can be transformed to more objects (if it is a Dictionary describing more structures) the result is a dictionary which must contain the transformed typed objects. The keys in the result dictionary must be declared first to avoid typos and provide a clear declared way of key usage

  • Transform function which has to implement the configuration transofrmer algorithm



    func transform(config: Any) throws -> [OnboardingInfoKey : Any]



    Any object which can be transformed to a dictionary

    Return Value

    [OnboardingInfoKey: Any] structure , with the transformed configurations to the given OnboardingInfoKey