import 'package:json_annotation/json_annotation.dart';

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

part 'payment.g.dart';


@JsonSerializable(explicitToJson: true)
class PaymentResponse extends BaseAuthorizedResponse {

  final PaymentDTO payment;

  const PaymentResponse({required super.accessToken, required this.payment});

  factory PaymentResponse.fromJson(Map<String, dynamic> json) => _$PaymentResponseFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$PaymentResponseToJson(this);
}
