encode<V> static method

V encode<V>(
  1. QuotesResourceRecurring instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  QuotesResourceRecurring instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'amount_subtotal',
    instance.amountSubtotal,
  );
  container.encodeInt(
    'amount_total',
    instance.amountTotal,
  );
  InvoiceitemPlanInterval.encode(
    instance.interval,
    container.nestedSingleValueContainer('interval').encoder,
  );
  container.encodeInt(
    'interval_count',
    instance.intervalCount,
  );
  QuotesResourceTotalDetails.encode(
    instance.totalDetails,
    container.nestedSingleValueContainer('total_details').encoder,
  );
  return container.value;
}