import 'package:json_annotation/json_annotation.dart'; import 'package:pshared/api/requests/payment/base.dart'; import 'package:pshared/data/dto/payment/intent/payment.dart'; part 'quote.g.dart'; @JsonSerializable() class QuotePaymentRequest extends PaymentBaseRequest { final PaymentIntentDTO intent; @JsonKey(defaultValue: false) final bool previewOnly; const QuotePaymentRequest({ required super.idempotencyKey, super.metadata, required this.intent, this.previewOnly = false, }); factory QuotePaymentRequest.fromJson(Map json) => _$QuotePaymentRequestFromJson(json); @override Map toJson() => _$QuotePaymentRequestToJson(this); }