private boolean isValidMeshObject(@NonNull final JsonObject mesh) {
        // Partial, groups and scenes are commented out to maintain backward compatibility.
        return mesh.has("$schema") &&
                mesh.has("id") &&
                mesh.has("version") &&
                mesh.has("meshUUID") &&
                mesh.has("meshName") &&
                mesh.has("timestamp") &&
                /*mesh.has("partial") &&*/
                mesh.has("provisioners") &&
                mesh.has("netKeys") &&
                mesh.has("appKeys") &&
                mesh.has("nodes") /*&&
                mesh.has("groups") &&
                mesh.has("scenes")*/;
    }
Validates the mesh object by checking if the document contains the mandatory fields

@param mesh json
@return true if valid and false otherwise
mesh/src/main/java/no/nordicsemi/android/mesh/MeshNetworkDeserializer.java