encode<V> static method

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

Implementation

static V encode<V>(
  SubscriptionPendingInvoiceItemInterval instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  InvoiceitemPlanInterval.encode(
    instance.interval,
    container.nestedSingleValueContainer('interval').encoder,
  );
  container.encodeInt(
    'interval_count',
    instance.intervalCount,
  );
  return container.value;
}