Lagrange's radio

can you construct a Lagrange function \(\mathcal{L}(q,\dot{q})\) for an \(LC\)-circuit, with the charge \(q\) and the current \(\dot{q}\)? in what way does the inductivity \(L\) correspond to the mass or inertia of a mechanical system, and what’s their respective origin?