encode<V> static method
Implementation
static V encode<V>(
PaymentIntentProcessingCustomerNotification instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.approvalRequested != null) {
container.encodeBool(
'approval_requested',
instance.approvalRequested!,
);
}
if (instance.completesAt != null) {
container.encodeDateTime(
'completes_at',
instance.completesAt!,
);
}
return container.value;
}