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) -> OTypeParameters
inputThe 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
inputThe object to be transformed.
keyPathIf input type allows, use the given key path as the root object.
Return Value
[
Type] -
Transforms
jsoninto [U].Declaration
Swift
open func transformArray(_ json: JSON) -> [Type]Parameters
jsonThe
JSONobject to be transformed.Return Value
[
Type]
View on GitHub
ArrowArrayTransformer Class Reference