fix: Make AuthenticationData type and session optional

This commit is contained in:
Christian Pauly 2020-12-11 11:20:03 +01:00
parent a7fa118aa4
commit 622d5f4b0d
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ class AuthenticationData {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final data = <String, dynamic>{}; final data = <String, dynamic>{};
data['type'] = type; if (type != null) data['type'] = type;
data['session'] = session; if (session != null) data['session'] = session;
return data; return data;
} }
} }