Fix: Handle missing file and sharedCollection count
This commit is contained in:
parent
240c978299
commit
59840aafbb
|
@ -55,8 +55,8 @@ class UserDetails {
|
|||
return UserDetails(
|
||||
map['email'] as String,
|
||||
map['usage'] as int,
|
||||
map['fileCount'] as int ?? 0,
|
||||
map['sharedCollectionsCount'] as int ?? 0,
|
||||
(map['fileCount'] ?? 0) as int,
|
||||
(map['sharedCollectionsCount'] ?? 0) as int,
|
||||
Subscription.fromMap(map['subscription']),
|
||||
FamilyData.fromMap(map['familyData']),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue