encode<V> static method
Implementation
static V encode<V>(
PaymentIntentPaymentFailedEvent instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
PaymentIntent.encode(
instance.object,
container.nestedSingleValueContainer('object').encoder,
);
container.encodeString(
'type',
'payment_intent.payment_failed',
);
return container.value;
}