public function toArray(): array
    {
        return [
            'name' => $this->name,
            'text' => $this->text,
            'type' => $this->type,
            'value' => $this->value,
            'style' => $this->style,
            'confirm' => $this->confirmation,
        ];
    }
public function toArray(): array
    {
        return [
            'name' => $this->name,
            'text' => $this->text,
            'type' => $this->type,
            'value' => $this->value,
            'style' => $this->style,
            'confirm' => $this->confirmation,
        ];
    }
public function toArray ( ) : array { return [ 'name' => $ this -> name , 'text' => $ this -> text , 'type' => $ this -> type , 'value' => $ this -> value , 'style' => $ this -> style , 'confirm' => $ this -> confirmation , ] ; }
Convert this action to its array representation.

@return array
Convert this action to its array representation .