TransformationOperation

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)

    Parameters

    destination

    The key name where the result will be stored.

    parameters

    The parameters needed for the operation.

  • Creates a transformation operation with a JSON object path destination.

    Declaration

    Swift

    public init(destination: JSONObjectPath, parameters: Parameters)

    Parameters

    destination

    The JSON path where the result will be stored.

    parameters

    The parameters needed for the operation.

  • Declaration

    Swift

    public func toDataObject() -> DataObject