class SurrenderReasonMapper {

    public SurrenderReason toDomain(SurrenderReasonContract contract) {

        SurrenderReason surrenderReason = new SurrenderReason();

        surrenderReason.setId(contract.getId());
        surrenderReason.setName(contract.getName());
        surrenderReason.setDescription(contract.getDescription());
        surrenderReason.setCreatedBy(contract.getCreatedBy());
        surrenderReason.setCreatedDate(contract.getCreatedDate());
        surrenderReason.setLastModifiedBy(contract.getLastModifiedBy());
        surrenderReason.setLastModifiedDate(contract.getLastModifiedDate());
        surrenderReason.setTenantId(contract.getTenantId());

        return surrenderReason;
    }

}