app/Subscriptions/Plan.php
public function jsonSerialize()
    {
        return [
            'id' => $this->id,
            'name' => $this->name,
            'price' => $this->price,
            'currencySymbol' => $this->currencySymbol,
            'trialDays' => $this->trialDays,
            'tier' => $this->tier,
            'features' => $this->features,
            'interval' => $this->interval,
            'active' => $this->active,
        ];
    }
public function jsonSerialize()
    {
        return [
            'id' => $this->id,
            'name' => $this->name,
            'price' => $this->price,
            'currencySymbol' => $this->currencySymbol,
            'trialDays' => $this->trialDays,
            'tier' => $this->tier,
            'features' => $this->features,
            'interval' => $this->interval,
            'active' => $this->active,
        ];
    }
Get the JSON serializable fields for the object.

@return array