removeNullEntries static method

Map<String, dynamic> removeNullEntries(
  1. Map<String, dynamic> input
)

Implementation

static Map<String, dynamic> removeNullEntries(
    final Map<String, dynamic> input) {
  final Map<String, dynamic> result = {};
  for (var element in input.entries) {
    if (element.value != null) {
      result[element.key] = element.value;
    }
  }
  return result;
}