code: function (deps) {
    if (!deps.layerGroupModel) throw new Error('layerGroupModel is required');
    if (!deps.layersCollection) throw new Error('layersCollection is required');
    if (!deps.dataviewsCollection) throw new Error('dataviewsCollection is required');
  
    this._layerGroupModel = deps.layerGroupModel;
    this._layersCollection = deps.layersCollection;
    this._dataviewsCollection = deps.dataviewsCollection;
  }
docs: This class exposes a method that knows how to set/update the metadata on internal
  CartoDB.js models that are linked to a "resource" in the Maps API.