encode<V> static method

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

Implementation

static V encode<V>(
  ExternalAccountDocuments instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.bankAccountOwnershipVerification != null) {
    AccountBankAccountOwnershipVerification.encode(
      instance.bankAccountOwnershipVerification!,
      container
          .nestedSingleValueContainer('bank_account_ownership_verification')
          .encoder,
    );
  }
  return container.value;
}