encode<V> static method
Implementation
static V encode<V>(
PaymentLinkUpdateOptionsLineItemsItem instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.adjustableQuantity != null) {
SessionAdjustableQuantity.encode(
instance.adjustableQuantity!,
container.nestedSingleValueContainer('adjustable_quantity').encoder,
);
}
container.encodeString(
'id',
instance.id,
);
if (instance.quantity != null) {
container.encodeInt(
'quantity',
instance.quantity!,
);
}
return container.value;
}