code: def from_json(cls, data):
          
          assert 'name' in data, 'Required keyword "name" is missing!'
          assert 'data_type' in data, 'Required keyword "data_type" is missing!'
          if cls._type_enumeration is None:
              cls._type_enumeration = _DataTypeEnumeration(import_modules=False)
  
          if data['data_type'] == 'GenericType':
              assert 'base_unit' in data, \
                  'Keyword "base_unit" is missing and is required for GenericType.'
              return cls._type_enumeration._GENERICTYPE(data['name'], data['base_unit'])
          elif data['data_type'] in cls._type_enumeration._TYPES:
              clss = cls._type_enumeration._TYPES[data['data_type']]
              if data['data_type'] == data['name'].title().replace(' ', ''):
                  return clss()
              else:
                  instance = clss()
                  instance._name = data['name']
                  return instance
          else:
              raise ValueError(
                  'Data Type {} could not be recognized'.format(data['data_type']))
docs: Create a data type from a dictionary.
  
          Args:
              data: Data as a dictionary.
                  {
                      "name": data type name of the data type as a string
                      "data_type": the class name of the data type as a string
                      "base_unit": the base unit of the data type
                  }