You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should support creating Child class implementing IPaymentDetails.
On creating ApplePayPaymentDetails ApplePayPaymentDetails implements IPaymentDetails
There is an exception com.google.gson.JsonParseException: cannot serialize ; did you forget to register a subtype
Looks like its coming from JSONFormater.
It should support creating Child class implementing IPaymentDetails.
On creating ApplePayPaymentDetails
ApplePayPaymentDetails implements IPaymentDetails
There is an exception com.google.gson.JsonParseException: cannot serialize ; did you forget to register a subtype
Looks like its coming from JSONFormater.
public static RuntimeTypeAdapterFactory paymentDetailsSerializer() {
return RuntimeTypeAdapterFactory
.of(IPaymentDetails.class, "method")
.registerSubtype(PaypalPaymentDetails.class, "paypal")
.registerSubtype(CreditCardPaymentDetails.class, "credit_card")
.registerSubtype(BankWirePaymentDetails.class, "bank_wire");
}
The text was updated successfully, but these errors were encountered: