22 $customData = Json::encode([
23 "contentTitle" => $this->title,
24 "contentText" => $this->text,
25 "badge" => $this->badge,
26 "messageParams" => $this->customProperties,
29 ], JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE);
33 "data" => $customData,
35 "ttl" => (string)$this->expiryValue,
37 "token" => $this->deviceTokens,