class GeneralTopologyObjectMapper {

    public GenericResourceApiNetworkinformationNetworkInformation buildNetworkInformation(L3Network network) {
        GenericResourceApiNetworkinformationNetworkInformation networkInformation =
                new GenericResourceApiNetworkinformationNetworkInformation();
        GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation =
                new GenericResourceApiOnapmodelinformationOnapModelInformation();
        if (network.getModelInfoNetwork() != null) {
            onapModelInformation.setModelInvariantUuid(network.getModelInfoNetwork().getModelInvariantUUID());
            onapModelInformation.setModelName(network.getModelInfoNetwork().getModelName());
            onapModelInformation.setModelVersion(network.getModelInfoNetwork().getModelVersion());
            onapModelInformation.setModelUuid(network.getModelInfoNetwork().getModelUUID());
            onapModelInformation.setModelCustomizationUuid(network.getModelInfoNetwork().getModelCustomizationUUID());
            networkInformation.setOnapModelInformation(onapModelInformation);
        }

        networkInformation.setFromPreload(null);
        networkInformation.setNetworkId(network.getNetworkId());
        networkInformation.setNetworkType(network.getNetworkType());
        networkInformation.setNetworkTechnology(network.getNetworkTechnology());
        return networkInformation;
    }

}