entity_mapper library
Clean Architecture entity mapping made simple with code generation
This package provides annotations and code generation to automatically create mapping methods between your domain entities and data models.
Example usage:
import 'package:entity_mapper/entity_mapper.dart';
@MapToEntity(User)
class UserModel with UserEntityMappable {
const UserModel({
required this.id,
required this.name,
});
final String id;
final String name;
}
Classes
- MapToEntity
- Annotation to mark a data model class for entity mapping code generation.