def METHOD_NAME(obj: Model) -> dict[str, AnyRep]:
    serializer = DocsSerializer()
    properties = obj.properties_with_values(include_defaults=True, include_undefined=True)
    attributes = {key: serializer.encode(val) for key, val in properties.items()}
    return dict(id=obj.id, **attributes)