encode<V> static method

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

Implementation

static V encode<V>(
  AccountDeclineOn instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.avsFailure != null) {
    container.encodeBool(
      'avs_failure',
      instance.avsFailure!,
    );
  }
  if (instance.cvcFailure != null) {
    container.encodeBool(
      'cvc_failure',
      instance.cvcFailure!,
    );
  }
  return container.value;
}