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 'initiate.g.dart'; @JsonSerializable() class InitiatePaymentRequest extends PaymentBaseRequest { final PaymentIntentDTO? intent; final String? quoteRef; const InitiatePaymentRequest({ required super.idempotencyKey, super.metadata, this.intent, this.quoteRef, }); factory InitiatePaymentRequest.fromJson(Map json) => _$InitiatePaymentRequestFromJson(json); @override Map toJson() => _$InitiatePaymentRequestToJson(this); }