Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Discard null values when converting to string map
Browse files Browse the repository at this point in the history
  • Loading branch information
fusion44 committed Jul 4, 2020
1 parent ed4319c commit 197788c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/schema/models/dbmodels.dart
Expand Up @@ -238,7 +238,7 @@ class DbModel {

Map<String, String> _toStringsMap(Map<String, dynamic> map) {
final res = <String, String>{};
map.forEach((String k, dynamic v) => res[k] = "$v");
map.forEach((String k, dynamic v) => v == null ? null : res[k] = "$v");
return res;
}

Expand Down

0 comments on commit 197788c

Please sign in to comment.