# pushly/2.2.0/src/php/Models/NotificationDeliverySpec.php

Pushly, version 2.2.0. 24 lines.

- Page: https://pluginprobe.com/plugins/pushly/2.2.0/code/src/php/Models/NotificationDeliverySpec.php
- Raw: https://pluginprobe.com/plugins/pushly/2.2.0/raw/src/php/Models/NotificationDeliverySpec.php
- Modified: 2026-04-16T21:15:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/pushly/2.2.0/code/src/php/Models/NotificationDeliverySpec.php#L10-L20`.

```php
<?php

namespace Pushly\Models;

class NotificationDeliverySpec implements \JsonSerializable {
	public ?string $type = null;
	public ?string $window = null;
	public ?string $send_date_utc = null;

	#[\ReturnTypeWillChange]
	public function jsonSerialize(): array {
		$r = [
			'type'   => $this->type,
			'window' => $this->window,
		];

		if ( $this->type === 'SCHEDULED' ) {
			$r['send_date_utc'] = $this->send_date_utc;
		}

		return $r;
	}
}

```
