@classmethod
def from_dict(cls, parsed_dict):
    """Create a DefaultLevels object from a dictionary.

        This creates the DefaultLevels object from a dictionary containing a
        m.room.power_levels event. The event structure isn't checked in this
        method.

        This shouldn't be used directly, the `PowerLevelsEvent` method will
        call this method to construct the DefaultLevels object.
        """
    content = parsed_dict['content']
    return cls(content['ban'], content['invite'], content['kick'], content[
        'redact'], content['state_default'], content['events_default'],
        content['users_default'])
