code: def as_record(self, cls, content_type, strdata):
          
          self.validate_record_type(cls)
          parsedrecord = self.deserialize(content_type, strdata)
          return self.post_process_record(cls, parsedrecord)
docs: Returns a record from serialized string representation.
  
          >>> s = teststore()
          >>> s.as_record('tstoretest', 'application/json',
          ... '{"id": "1", "name": "Toto"}')
          {u'id': u'1', u'name': u'Toto'}