fix for not working login #471
@@ -10,6 +10,7 @@ part 'login_pending.g.dart';
|
||||
class PendingLoginResponse {
|
||||
final AccountResponse account;
|
||||
final TokenData pendingToken;
|
||||
@JsonKey(name: 'target', readValue: _readTarget)
|
||||
final String target;
|
||||
|
||||
const PendingLoginResponse({
|
||||
@@ -21,4 +22,6 @@ class PendingLoginResponse {
|
||||
factory PendingLoginResponse.fromJson(Map<String, dynamic> json) => _$PendingLoginResponseFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$PendingLoginResponseToJson(this);
|
||||
|
||||
static String _readTarget(Map json, String key) => json[key] ?? json['destination'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user