PaymentMethodResponse.fromMap constructor

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

Implementation

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