rmJsonNullValue static method

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

Implementation

static Map<String, dynamic> rmJsonNullValue(Map<String, dynamic> input) {
  Map<String, dynamic> res = Map<String, dynamic>.from({});
  input.forEach((key, value) {
    if (value != null) {
      res[key] = value;
    }
  });
  return res;
}