encode<V> static method
Implementation
static V encode<V>(
PaymentLinkCreateOptionsInvoiceCreation instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeBool(
'enabled',
instance.enabled,
);
if (instance.invoiceData != null) {
PaymentLinkInvoiceData.encode(
instance.invoiceData!,
container.nestedSingleValueContainer('invoice_data').encoder,
);
}
return container.value;
}