encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodDetailsGiropay instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.bankCode != null) {
    container.encodeString(
      'bank_code',
      instance.bankCode!,
    );
  }
  if (instance.bankName != null) {
    container.encodeString(
      'bank_name',
      instance.bankName!,
    );
  }
  if (instance.bic != null) {
    container.encodeString(
      'bic',
      instance.bic!,
    );
  }
  if (instance.verifiedName != null) {
    container.encodeString(
      'verified_name',
      instance.verifiedName!,
    );
  }
  return container.value;
}