encode<V> static method

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

Implementation

static V encode<V>(
  AccountPayoutSettings instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeBool(
    'debit_negative_balances',
    instance.debitNegativeBalances,
  );
  TransferSchedule.encode(
    instance.schedule,
    container.nestedSingleValueContainer('schedule').encoder,
  );
  if (instance.statementDescriptor != null) {
    container.encodeString(
      'statement_descriptor',
      instance.statementDescriptor!,
    );
  }
  return container.value;
}