PaymentIntentAttach.fromMap constructor
Converts Map<String,dynamic> to PaymentIntentAttach class Use to attach Payment Intent and returns a PaymentIntentAttachResponse object
https://developers.paymongo.com/docs/accepting-cards#3-send-card-information-to-paymongo
Implementation
factory PaymentIntentAttach.fromMap(Map<String, dynamic> map) {
return PaymentIntentAttach(
paymentMethod: map['payment_method'] ?? '',
clientKey: map['client_key'] ?? '',
returnUrl: map['return_url'] ?? '',
);
}