@Nullable
    protected String export(@NonNull final MeshNetwork network,
                            @NonNull final NetworkKeysConfig networkKeysConfig,
                            @NonNull final ApplicationKeysConfig applicationKeysConfig,
                            @NonNull final NodesConfig nodesConfig,
                            @NonNull final ProvisionersConfig provisionersConfig,
                            @NonNull final GroupsConfig groupsConfig,
                            @NonNull final ScenesConfig scenesConfig) {
        //Let's use Gson to make a temporary copy of the network and apply the export configurations.
        final MeshNetwork temp = mGson.fromJson(mGson.toJson(network), MeshNetwork.class);
        return export(prepareNetwork(temp, networkKeysConfig, applicationKeysConfig, nodesConfig,
                provisionersConfig, groupsConfig, scenesConfig), true);
    }
Exports the mesh network to a Json file

@param network Mesh network to be exported
@param partial True if the network is to be exported as partial.
mesh/src/main/java/no/nordicsemi/android/mesh/ImportExportUtils.java