doTransformFrom<T> function

dynamic doTransformFrom<T>(
  1. T? data,
  2. DataTransformerFrom<T>? transformerFrom
)

Implementation

dynamic doTransformFrom<T>(T? data, DataTransformerFrom<T>? transformerFrom) {
  if (transformerFrom == null) {
    return data;
  }
  return transformerFrom(data);
}