@classmethod
def load(cls, metadata):
    """load class data from dict.
        """
    return cls(classname=metadata.get('classname'), attrs=metadata.get(
        'attrs'), keys=metadata.get('keys'), data=metadata.get('data'),
        collection=metadata.get('collection'))
