@Nullable
    protected String export(@NonNull final MeshNetwork network, final boolean partial) {
        try {
            network.setPartial(partial);
            return mGson.toJson(network);
        } catch (final com.google.gson.JsonSyntaxException ex) {
            MeshLogger.error(TAG, "Error: " + ex.getMessage());
            return null;
        } catch (final Exception e) {
            MeshLogger.error(TAG, "Error: " + e.getMessage());
            return null;
        }
    }
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