void putIfTrue({required Map map, required key, required bool value}) { if (!value) return; map[key] = value; }