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

Commit

Permalink
Merge pull request #29 from fusion44/master
Browse files Browse the repository at this point in the history
Discard null values when converting to string map
  • Loading branch information
synw authored Dec 6, 2020
2 parents 726cb6a + 197788c commit 37862b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/schema/models/dbmodels.dart
Original file line number Diff line number Diff line change
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 37862b3

Please sign in to comment.