Updated GiveawayCreated

This commit is contained in:
netkas 2024-10-04 21:19:12 -04:00
parent 89d0165fb6
commit 0fedf2cc54

View file

@ -31,8 +31,13 @@ class GiveawayCreated implements ObjectTypeInterface
/**
* @inheritDoc
*/
public static function fromArray(array $data): ObjectTypeInterface
public static function fromArray(?array $data): ?GiveawayCreated
{
if(!$data)
{
return null;
}
$object = new self();
$object->prize_star_count = $data['prize_star_count'];
return $object;