toEntity static method
Implementation
static User toEntity(UserModel model) {
return User(
address: AddressMapper.toEntity(model.address),
id: model.id,
email: model.email,
username: model.username,
password: model.password,
name: NameMapper.toEntity(model.name),
phone: model.phone,
);
}