# ConversionServiceConverter<S, T> constructor

ConversionServiceConverter<S, T>(

1. ConversionService _conversionService,
2. Class<T> targetType

)

A Converter that delegates to a ConversionService for converting values.

This wrapper allows a ConversionService to be plugged into APIs that require a Converter, using a fixed target type.

### 🔧 Example:

    final service = DefaultConversionService();
    final converter = ConversionServiceConverter<String, int>(service, Class<int>());
    final result = converter.convert("123");
    print(result); // 123

Throws ConversionException if the conversion fails or returns `null`.

## Implementation

    ConversionServiceConverter(this._conversionService, this.targetType);