PaymentIntentAttachResponse.fromMap constructor

PaymentIntentAttachResponse.fromMap(
  1. Map<String, dynamic> map
)

Returns a resposne when you attach a payment intent.

Implementation

factory PaymentIntentAttachResponse.fromMap(Map<String, dynamic> map) {
  return PaymentIntentAttachResponse(
    id: map['id'] ?? '',
    type: map['type'] ?? '',
    attributes:
        PaymentIntentAttachResponseAttributes.fromMap(map['attributes']),
  );
}