TransformationOperation Structure Reference
public struct TransformationOperation<Parameters> where Parameters : DataInputConvertible
extension TransformationOperation: DataObjectConvertible
An object representing an operation to be performed during a transformation.
-
Creates a transformation operation with a string destination key.
Declaration
Swift
public init(destination: String, parameters: Parameters)Parameter Description destinationThe key name where the result will be stored.
parametersThe parameters needed for the operation.
-
Creates a transformation operation with a JSON object path destination.
Declaration
Swift
public init(destination: JSONObjectPath, parameters: Parameters)Parameter Description destinationThe JSON path where the result will be stored.
parametersThe parameters needed for the operation.
-
Declaration
Swift
public func toDataObject() -> DataObject