src/Row.php
public function jsonSerialize()
    {
        return array_merge(parent::jsonSerialize(), [
            'sanitizedAttribute' => str_plural(kebab_case($this->attribute)),
            'shouldShow' => $this->shouldBeExpanded(),
        ]);
    }
public function jsonSerialize()
    {
        return array_merge(parent::jsonSerialize(), [
            'sanitizedAttribute' => str_plural(kebab_case($this->attribute)),
            'shouldShow' => $this->shouldBeExpanded(),
        ]);
    }
public function jsonSerialize ( ) { return array_merge ( parent :: jsonSerialize ( ) , [ 'sanitizedAttribute' => str_plural ( kebab_case ( $ this -> attribute ) ) , 'shouldShow' => $ this -> shouldBeExpanded ( ) , ] ) ; }
Prepare the element for JSON serialization.

@return array
Prepare the element for JSON serialization .