|null */ protected ?array $_meta; /** * @param array|null $_meta @since 2024-11-05 */ public function __construct( ?array $_meta = null ) { $this->_meta = $_meta; } /** * Creates an instance from an array. * * @param array{ * _meta?: array|null * } $data * @phpstan-param array $data * @return self */ public static function fromArray(array $data): self { return new self( self::asArrayOrNull($data['_meta'] ?? null) ); } /** * Converts the instance to an array. * * @return array */ public function toArray(): array { $result = []; if ($this->_meta !== null) { $result['_meta'] = $this->_meta; } return $result; } /** * @return array|null */ public function get_meta(): ?array { return $this->_meta; } }