encode<V> static method

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

Implementation

static V encode<V>(
  InvoiceSettingQuoteSetting instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.daysUntilDue != null) {
    container.encodeInt(
      'days_until_due',
      instance.daysUntilDue!,
    );
  }
  ConnectAccountReference.encode(
    instance.issuer,
    container.nestedSingleValueContainer('issuer').encoder,
  );
  return container.value;
}