How do you use emission.rate?

I keep getting warnings that emissionRate is deprecated, and I should use emission.rate instead. But the docs don’t actually have any example of how this is used!

All I can find is this, which just says it’s deprecated, but doesn’t link to the new docs:

try something like this:

     public class ExampleClass : MonoBehaviour {
         void Start() {
             ParticleSystem ps = GetComponent<ParticleSystem>();
             var emission = ps.emission;
             var rate = emission.rate;
     
             rate.constantMax = 20f;
             emission.rate = rate;
         }
     }

Here is an example:

// Create a particle system
// At 2 and 4 secs the number of particles are changed to 50, then 100
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
	void Start() {
		ParticleSystem ps = GetComponent<ParticleSystem>();
		var em = ps.emission;
		em.enabled = true;

		em.type = ParticleSystemEmissionType.Time;

		em.SetBursts(
			new ParticleSystem.Burst[]{
				new ParticleSystem.Burst(2.0f, 100),
				new ParticleSystem.Burst(4.0f, 100)
			});
	}
}