encode<V> static method

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

Implementation

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