deleteAddedToCart = $deleteAddedToCart; $this->withWcNotices = $withWcNotices; } public static function fromBody(array $body): AddToCartAllItemsOfWishlistRequest { return new AddToCartAllItemsOfWishlistRequest( $body['deleteAddedToCart'] ?? false, $body['withWcNotices'] ?? false ); } }