Merge branch 'krille/follow-up-authentication-data' into 'main'

fix: Make AuthenticationData type and session optional

See merge request famedly/famedlysdk!562
This commit is contained in:
Marcus 2020-12-11 10:24:17 +00:00
commit bd0c9b0e91
1 changed files with 2 additions and 2 deletions

View File

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