ArrowArrayTransformer
open class ArrowArrayTransformer<Type> : Transformer, KeyPathTransformer where Type : ArrowParsable
Uses Arrow
to transform a given object of type AnyObject? into an array 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
] -
Transforms
json
into [U
].Declaration
Swift
open func transformArray(_ json: JSON) -> [Type]
Parameters
json
The
JSON
object to be transformed.Return Value
[
Type
]