void putIfValueNotNull(String key, dynamic value, Map<String, dynamic> map) { if (value != null) { map[key] = value; } }