code: def from_representation(self, data):
          
          if data in self._TRUE_VALUES:
              return True
          elif data in self._FALSE_VALUES:
              return False
          else:
              raise ValueError(
                  "{type} type value must be one of {values}".format(
                      type=self.type,
                      values=self._TRUE_VALUES.union(self._FALSE_VALUES)
                  )
              )
docs: Convert representation value to ``bool`` if it has expected form.