PaymentsIntentResponse.fromMap constructor

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

Implementation

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