class OkrBranchMapper implements DataMapper<OkrBranch, OkrBranchDto> {

  @Override
  public OkrBranch mapDtoToEntity(OkrBranchDto dto) {
    OkrBranch entity = new OkrBranch();
    entity.setId(dto.getOkrUnitId());
    entity.setName(dto.getUnitName());
    entity.setLabel(dto.getLabel());
    entity.setActive(dto.getIsActive());
    return entity;
  }

}