Impedance Matching a switching Circuit
You would normally deal with this as a State Space Averaged Model.

By the State Space Averaging method you write the state space equations for i) switch open; ii) switch closed; and then average those with the duty ratio of the switch as weighting variable.

Then you can proceed to develop AC and DC models.

Here's a reference. Or here (from slide 57).