auto_mappr_annotation 1.0.2 auto_mappr_annotation: ^1.0.2 copied to clipboard
Annotations for the auto_mappr code-generator of mapping between objects with ease.
import 'package:auto_mappr_annotation/auto_mappr_annotation.dart';
// part 'main.g.dart';
@AutoMappr([
MapType<UserDto, User>(),
])
class Mappr {} // extends $Mappr {}
class User {
final int age;
final String username;
const User({
required this.age,
required this.username,
});
}
class UserDto {
final int age;
final String username;
const UserDto(this.age, this.username);
}
void main() {}