sanitizeParams static method

Map<String, Object> sanitizeParams(
  1. Map<String, dynamic>? input
)

Implementation

static Map<String, Object> sanitizeParams(Map<String, dynamic>? input) {
  if (input == null) return {};
  return {
    for (var entry in input.entries)
      if (entry.value != null) entry.key: sanitize(entry.value),
  };
}