toJson is now compatible with Illuminate\Support\Contracts\JsonableInterface