
Compile-time, type-safe generation of conversion extension functions for data, enum and sealed class object-to-object mappings; reversible mapping, automatic primitive and collection conversions, zero runtime overhead.
Effortless, type-safe object-to-object mapping in Kotlin. Tired of writing boilerplate code to convert one object to another? This library does it for you at compile time, with full support for Kotlin Multiplatform.
Kotlin AutoMapper uses KSP (Kotlin Symbol Processing) to generate extension functions that automatically map your data, enum, and sealed classes. No reflection, no runtime magic - just pure, fast, and safe generated code for all your targets.
➡️ View the full documentation for Setup, How to Use, and Advanced Usage ⬅️
SOURCE-only and adds no overhead to your production app.data, enum, and sealed classes, including complex nested hierarchies.@PropertyMapping.null properties with @DefaultValue.Uuid or Instant) using @AutoConverter.Int, Long, String automatically.reversible = true flag.public or internal) of your @AutoMapperModule.@OptIn Propagation: Automatically propagates @OptIn annotations from your custom converters to the generated functions, ensuring compile-time safety for experimental APIs.Copyright (c) 2026 Alexander Gorodnikov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Effortless, type-safe object-to-object mapping in Kotlin. Tired of writing boilerplate code to convert one object to another? This library does it for you at compile time, with full support for Kotlin Multiplatform.
Kotlin AutoMapper uses KSP (Kotlin Symbol Processing) to generate extension functions that automatically map your data, enum, and sealed classes. No reflection, no runtime magic - just pure, fast, and safe generated code for all your targets.
➡️ View the full documentation for Setup, How to Use, and Advanced Usage ⬅️
SOURCE-only and adds no overhead to your production app.data, enum, and sealed classes, including complex nested hierarchies.@PropertyMapping.null properties with @DefaultValue.Uuid or Instant) using @AutoConverter.Int, Long, String automatically.reversible = true flag.public or internal) of your @AutoMapperModule.@OptIn Propagation: Automatically propagates @OptIn annotations from your custom converters to the generated functions, ensuring compile-time safety for experimental APIs.Copyright (c) 2026 Alexander Gorodnikov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.