code: function () {
  		var materialsJSON = {};
  		var material;
  		for ( var materialName in this.materials ) {
  
  			material = this.materials[ materialName ];
  			materialsJSON[ materialName ] = material.toJSON();
  		}
  
  		return materialsJSON;
  	}
docs: Returns the mapping object of material name and corresponding jsonified material.
  
  @returns {Object} Map of Materials in JSON representation