fix: Make AuthenticationData type and session optional
This commit is contained in:
parent
a7fa118aa4
commit
622d5f4b0d
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue