ArrowTransformer
open class ArrowTransformer<Type> : Transformer, KeyPathTransformer where Type : ArrowParsable
Uses Arrow
to transform a given object of type AnyObject? into an object of target type, Type
.
-
Default Initialization.
Declaration
Swift
public init()
-
Transforms the input type AnyObject? and returns
Type
as output.Declaration
Swift
public func transform(_ input: IType) -> OType
Parameters
input
The object to be transformed.
Return Value
Type
-
Transforms the input type AnyObject? and returns
Type
as output.Declaration
Swift
open func transform(_ input: AnyObject?, keyPath: String?) -> Type?
Parameters
input
The object to be transformed.
keyPath
If input type allows, use the given key path as the root object.
Return Value
Type