encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodUsBankAccountBlocked instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.networkCode != null) {
    container.encodeString(
      'network_code',
      instance.networkCode!,
    );
  }
  if (instance.reason != null) {
    container.encodeString(
      'reason',
      instance.reason!,
    );
  }
  return container.value;
}