toEntity static method

User toEntity(
  1. UserModel model
)

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,
  );
}