There was an error while loading. Please reload this page.
1 parent 86fdcf7 commit 0dd5d37Copy full SHA for 0dd5d37
1 file changed
lib/src/models/account.dart
@@ -137,9 +137,6 @@ class Account {
137
138
/// Convert this object into a JSON object.
139
Map<String, dynamic> toJson() {
140
- final Profile? accountProfile = profile;
141
- final SessionInfo? session = sessionInfo;
142
-
143
return <String, dynamic>{
144
'created': created?.toIso8601String(),
145
'data': data,
@@ -151,9 +148,9 @@ class Account {
151
148
'lastUpdated': lastUpdated?.toIso8601String(),
152
149
'loginProvider': loginProvider,
153
150
'oldestDataUpdated': oldestDataUpdated?.toIso8601String(),
154
- if (accountProfile != null) 'profile': accountProfile.toJson(),
+ if (profile != null) 'profile': profile!.toJson(),
155
'registered': registered?.toIso8601String(),
156
- if (session != null) 'sessionInfo': session.toJson(),
+ if (sessionInfo != null) 'sessionInfo': sessionInfo!.toJson(),
157
'signatureTimestamp': signatureTimestamp?.toIso8601String(),
158
'socialProviders': socialProviders,
159
'UID': uid,
0 commit comments