encode<V> static method
Implementation
static V encode<V>(
QuotesResourceUpfront instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeInt(
'amount_subtotal',
instance.amountSubtotal,
);
container.encodeInt(
'amount_total',
instance.amountTotal,
);
if (instance.lineItems != null) {
CheckoutSessionLineItems.encode(
instance.lineItems!,
container.nestedSingleValueContainer('line_items').encoder,
);
}
QuotesResourceTotalDetails.encode(
instance.totalDetails,
container.nestedSingleValueContainer('total_details').encoder,
);
return container.value;
}