toJson

abstract fun toJson(): JsonObject(source)

Converts the PaymentMethod object to a JsonObject.

Return

The JsonObject representation of the payment method.