encode<V> static method

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

Implementation

static V encode<V>(
  AccountBacsDebitPaymentsSettings instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.displayName != null) {
    container.encodeString(
      'display_name',
      instance.displayName!,
    );
  }
  if (instance.serviceUserNumber != null) {
    container.encodeString(
      'service_user_number',
      instance.serviceUserNumber!,
    );
  }
  return container.value;
}