removeNullEntries<T> static method
T?
removeNullEntries<T>(
- T? json
Copy of a JSON map/list without null values (the original is not changed).
Implementation
static T? removeNullEntries<T>(T? json) {
final Object? cleaned = _withoutNulls(json);
return cleaned is T ? cleaned : json;
}