withTransformation

abstract infix fun <T> withTransformation(newTransformation: (BackendDataItem) -> TransformationResult<T, String>): DataItem<T>(source)

Changes the transformation of this DataItem into the given newTransformation.