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