docs: 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
          )