/**
* @param array<mixed> $payload
*/
public function createFromResponse(AppAction
$action, string
$actionType, array
$payload, Context
$context): ActionButtonResponse
{ foreach ($this->factories
as $factory) { if ($factory->
supports($actionType)) { return $factory->
create($action,
$payload,
$context);
} } throw AppException::
actionButtonProcessException($action->
getActionId(),
sprintf('No factory found for action type "%s"',
$actionType));
}}