def make_value_from_datastore(self, value):
    """Convert value from datastore representation.

    Args:
      value: datastore value.

    Returns:
      value to store in the model.
    """

    if value is None:
      return None
    _json = json.loads(value, cls=JsonDecoder)
    if self.data_type == dict:
      return _json
    return self.data_type.from_json(_json)
def make_value_from_datastore ( self , value ) : if value is None : return None _json = json . loads ( value , cls = JsonDecoder ) if self . data_type == dict : return _json return self . data_type . from_json ( _json )
Convert value from datastore representation.

    Args:
      value: datastore value.

    Returns:
      value to store in the model.