# Function createDimension

createDimension(json): Dimension

Creates a new Dimension instance from the given JSON object.

This function is used in the generated data model code to create dimensions for an input data source.

See also functions createDateDimension and createAttribute.

# Parameters

Parameter Type Description
json any JSON object representing the Dimension

# Returns

Dimension

A new Dimension instance