toJsonConverter static method

dynamic toJsonConverter(
  1. PaymentMethodDetails? object
)

Implementation

static dynamic toJsonConverter(PaymentMethodDetails? object) {
  if (object is IdPaymentMethodDetails) return object.id;
  return object?.toJson();
}