paymentMethodDetailJsonKey top-level constant

  1. @Target({TargetKind.parameter})
  2. @internal
JsonKey const paymentMethodDetailJsonKey

JSON key for the payment method details.

It supports creating a payment method from an id or custom payment method details like CardPaymentMethodDetails.

Implementation

@Target({TargetKind.parameter})
@internal
const paymentMethodDetailJsonKey = JsonKey(
  name: "payment_method",
  toJson: PaymentMethodDetails.toJsonConverter,
);