FPayPalApprovalData.fromJson constructor

FPayPalApprovalData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

FPayPalApprovalData.fromJson(Map<String, dynamic> json) {
  payerId = json['payerId'];
  orderId = json['orderId'];
  if (json['payer'] != null) {
    payer = Payer.fromJson(json['payer']);
  }
  if (json['cart'] != null) {
    cart = Cart.fromJson(json['cart']);
  }
}