PaymentMethod.fromJson constructor

PaymentMethod.fromJson(
  1. Map json
)

Implementation

factory PaymentMethod.fromJson(Map<dynamic, dynamic> json) {
  return PaymentMethod(
    billingDetails: json['billingDetails'] != null ? BillingDetails.fromJson(json['billingDetails']) : null,
    card: json['card'] != null ? CreditCard.fromJson(json['card']) : null,
    created: json['created'],
    customerId: json['customerId'],
    id: json['id'],
    livemode: json['livemode'],
    type: json['type'],
  );
}