File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,6 @@ class Account {
137137
138138 /// Convert this object into a JSON object.
139139 Map <String , dynamic > toJson () {
140- final Profile ? accountProfile = profile;
141- final SessionInfo ? session = sessionInfo;
142-
143140 return < String , dynamic > {
144141 'created' : created? .toIso8601String (),
145142 'data' : data,
@@ -151,9 +148,9 @@ class Account {
151148 'lastUpdated' : lastUpdated? .toIso8601String (),
152149 'loginProvider' : loginProvider,
153150 'oldestDataUpdated' : oldestDataUpdated? .toIso8601String (),
154- if (accountProfile != null ) 'profile' : accountProfile .toJson (),
151+ if (profile != null ) 'profile' : profile ! .toJson (),
155152 'registered' : registered? .toIso8601String (),
156- if (session != null ) 'sessionInfo' : session .toJson (),
153+ if (sessionInfo != null ) 'sessionInfo' : sessionInfo ! .toJson (),
157154 'signatureTimestamp' : signatureTimestamp? .toIso8601String (),
158155 'socialProviders' : socialProviders,
159156 'UID' : uid,
You can’t perform that action at this time.
0 commit comments