code: def to_dict(cls, acl):
          
          return {
              "perms": acl.perms,
              "id": {
                  "scheme": acl.id.scheme,
                  "id": acl.id.id
              }
          }
docs: transform an ACL to a dict