def __init__(self, data):
if '<STR_LIT:id>' not in data:<EOL><INDENT>raise ValueError(data)<EOL><DEDENT>self.id = data['<STR_LIT:id>']<EOL>self.type = data['<STR_LIT:type>']<EOL>self.dimensions = [DimensionModel(dim) for dim in data['<STR_LIT>']]<EOL>self.timeseries_attributes = [TimeSeriesAttribute(attr) for attr in data['<STR_LIT>']] if '<STR_LIT>' in data else []<EOL>
The method loading data from json to class fields