fixed tests, null errors

This commit is contained in:
Deven Joshi
2021-04-12 18:44:30 +05:30
parent 686dcf27e6
commit 9ec4c83cfc
18 changed files with 124 additions and 106 deletions
@@ -11,7 +11,7 @@ class Serialization {
/// List of users to list of userIds
static List<String?>? userIds(List<User>? users) =>
users?.map((u) => u.id)?.toList();
users?.map((u) => u.id).toList();
/// Takes unknown json keys and puts them in the `extra_data` key
static Map<String, dynamic>? moveToExtraDataFromRoot(