# Import constructor

const Import(

1. List<ClassType<Object>> classes

)

The `Import` annotation in Jetleaf is used to import other configuration classes.

### Key Features:

- Import other configuration classes to reuse their pod definitions.
- Import by class type (recommended for type safety).

### Usage Example (Import by ClassType):

    import 'package:jetleaf/jetleaf.dart';

    @Configuration()
    @Import([ClassType<DataSourceAutoConfiguration>()])
    class AppConfig {
      // Import DataSourceAutoConfiguration.
    }

In the example, the `Import` annotation tells Jetleaf to include the specified configuration classes, allowing you to reuse their pod definitions and configurations in your application.

## Implementation

    const Import(this.classes);