Map put(String key, Object? value) { if (value is String && value.isNotEmpty) { this[key] = value; } else if (value != null) { this[key] = value; } return this; }