<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_dict(document):
 """Create attribute definition form Json-like object represenation. Parameters document : dict Json-like object represenation Returns ------- AttributeDefinition """

        if 'default' in document:
            default = document['default']
        else:
            default = None
        return AttributeDefinition(
            document['id'],
            document['name'],
            document['description'],
            AttributeType.from_dict(document['type']),
            default=default
        )