PaymentData.fromJson constructor

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

Implementation

factory PaymentData.fromJson(Map<String, dynamic> json) => PaymentData(
      id: json["id"],
      amount: json["amount"].toDouble(),
      isPartial: json["is_partial"],
      currencyCode: json["currency_code"],
      countryCode: json["country_code"],
      status: json["status"],
      paymentMethodData:
          PaymentMethodData.fromJson(json["payment_method_data"]),
      metadata: PaymentStatusMetadata.fromJson(json["metadata"]),
      paid: json["paid"],
      paidAt: json["paid_at"],
    );