The minecraft:immune_to_damage
data component is used as an override for the damage type tag in the minecraft:immune_to_damage item component.
Its value is a damage type tag.
{ "minecraft:immune_to_damage": "minecraft:is_explosion" }
[minecraft:immune_to_damage="minecraft:is_explosion"]