CheckoutData.fromJson constructor

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

Implementation

factory CheckoutData.fromJson(Map<String, dynamic> json) => CheckoutData(
      id: json["id"],
      status: json["status"],
      language: json["language"],
      merchantWebsite: json["merchant_website"],
      pageExpiration: json["page_expiration"],
      redirectUrl: json["redirect_url"],
      country: json["country"],
      currency: json["currency"],
      amount: json["amount"].toDouble(),
      payment: Payment.fromJson(json["payment"]),
      paymentMethodType: json["payment_method_type"],
      paymentMethodTypeCategories: json["payment_method_type_categories"],
      paymentMethodTypesInclude: List<String>.from(
          json["payment_method_types_include"].map((x) => x)),
      paymentMethodTypesExclude: json["payment_method_types_exclude"],
      customer: json["customer"],
      timestamp: json["timestamp"],
      paymentExpiration: json["payment_expiration"],
      escrow: json["escrow"],
      escrowReleaseDays: json["escrow_release_days"],
    );