parse static method

PaymentIntent parse(
  1. Map<String, dynamic> parsedJSON
)

Implementation

static PaymentIntent parse(Map<String,dynamic> parsedJSON){
  return PaymentIntent(
    id: parsedJSON["id"],
    amount: parsedJSON["amount"],
    automatic_payment_methods: parsedJSON["automatic_payment_methods"],
    charges: parsedJSON["charges"],
    client_secret: parsedJSON["client_secret"],
    currency: parsedJSON["currency"],
    customer: parsedJSON["customer"],
    description: parsedJSON["description"],
    last_payment_error: parsedJSON["last_payment_error"],
    metadata: parsedJSON["metadata"],
    next_action: parsedJSON["next_action"],
    payment_method: parsedJSON["payment_method"],
    payment_method_types: parsedJSON["payment_method_types"].cast<String>(),
    receipt_email: parsedJSON["receipt_email"],
    setup_future_usage: parsedJSON["setup_future_usage"],
    shipping: parsedJSON["shipping"],
    statement_descriptor: parsedJSON["statement_descriptor"],
    statement_descriptor_suffix: parsedJSON["statement_descriptor_suffix"],
    status: parsedJSON["status"],
  );
}