How do I translate lxd 2.21 raw.lxd id_map parameters into lxd 4.0.9?

I have these configurations on old lxd 2.21:

lxc config show --expanded my-container | grep -e raw.lxc -e lxc.id_map
  raw.lxc: |
    lxc.id_map =
    lxc.id_map = u 0 100000 4000
    lxc.id_map = g 0 100000 4000
    lxc.id_map = u 4000 10011 1
    lxc.id_map = g 4000 5001 1
    lxc.id_map = u 4001 104001 61535
    lxc.id_map = g 4001 104001 61535

For newer lxd 4.0.9, I tried setting these manually, for example:
lxc config set my-container raw.lxc="lxc.id_map =\n"

However when I do that I see in the logs:
lxc 20230508224024.263 ERROR confile - confile.c:set_config_unsupported_key:153 - Invalid argument - Unsupported config key "lxc.id_map"

Seems like it’s still supported, though I’m still working on the format.

Example on 4.0.9:

lxc config set my-container raw.lxc="|\n  lxc.idmap = \n  lxc.idmap = u 0 100000 4000\n"

No errors, but it still doesn’t look the same as 2.21:

lxc config show --expanded my-container | grep -e raw.lxc -e lxc.id_map
  raw.lxc: '|\n  lxc.idmap = \n  lxc.idmap = u 0 100000 4000\n'

To recap: I think the answer is actually simple: "replace lx.id_map with lxc.idmap".