import 'package:json_annotation/json_annotation.dart';

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

part 'login.g.dart';


@JsonSerializable(explicitToJson: true)
class LoginResponse extends AccountResponse {
  final TokenData refreshToken;

  const LoginResponse({required super.accessToken, required super.account, required this.refreshToken});

  factory LoginResponse.fromJson(Map<String, dynamic> json) => _$LoginResponseFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$LoginResponseToJson(this);
}