toXdr method
Implementation
XdrSorobanCredentials toXdr() {
if (addressCredentials != null) {
XdrSorobanCredentials cred = XdrSorobanCredentials(
XdrSorobanCredentialsType.SOROBAN_CREDENTIALS_ADDRESS);
cred.address = addressCredentials!.toXdr();
return cred;
}
return XdrSorobanCredentials(
XdrSorobanCredentialsType.SOROBAN_CREDENTIALS_SOURCE_ACCOUNT);
}