TransformationSettings

public struct TransformationSettings
extension TransformationSettings: DataObjectConvertible

Configuration for a data transformation.

  • id

    Unique identifier for this transformation.

    Declaration

    Swift

    public let id: String
  • Identifier of the transformer to use.

    Declaration

    Swift

    public let transformerId: String
  • Scopes where this transformation applies.

    Declaration

    Swift

    public let scopes: [TransformationScope]
  • Configuration data for the transformer.

    Declaration

    Swift

    public let configuration: DataObject
  • Optional conditions for when to apply the transformation.

    Declaration

    Swift

    public let conditions: Rule<Condition>?
  • Creates transformation settings with the specified parameters.

    Declaration

    Swift

    public init(id: String,
                transformerId: String,
                scopes: [TransformationScope],
                configuration: DataObject = [:],
                conditions: Rule<Condition>? = nil)

    Parameters

    id

    Unique identifier for this transformation.

    transformerId

    Identifier of the transformer to use.

    scopes

    Scopes where this transformation applies.

    configuration

    Configuration data for the transformer.

    conditions

    Optional conditions for when to apply the transformation.

  • Declaration

    Swift

    public func toDataObject() -> DataObject