import 'package:json_annotation/json_annotation.dart';

import 'package:pshared/api/responses/account.dart';
import 'package:pshared/api/responses/token.dart';

part 'login_pending.g.dart';


@JsonSerializable(explicitToJson: true)
class PendingLoginResponse {
  final AccountResponse account;
  final TokenData pendingToken;
  final String target;

  const PendingLoginResponse({
    required this.account,
    required this.pendingToken,
    required this.target,
  });

  factory PendingLoginResponse.fromJson(Map<String, dynamic> json) => _$PendingLoginResponseFromJson(json);

  Map<String, dynamic> toJson() => _$PendingLoginResponseToJson(this);
}
