/// <summary>
        /// Convert from SDK KnowledgeBasedAuthentication to API KnowledgeBasedAuthentication.
        /// </summary>
        /// <returns>The API knowledge based authentication.</returns>
        public OneSpanSign.API.KnowledgeBasedAuthentication ToAPIKnowledgeBasedAuthentication()
        {
            if (sdkKnowledgeBasedAuthentication == null)
            {
                return(apiKnowledgeBasedAuthentication);
            }

            OneSpanSign.API.KnowledgeBasedAuthentication result = new OneSpanSign.API.KnowledgeBasedAuthentication();
            result.SignerInformationForEquifaxCanada  = new SignerInformationForEquifaxCanadaConverter(sdkKnowledgeBasedAuthentication.SignerInformationForEquifaxCanada).ToAPISignerInformationForEquifaxCanada();
            result.SignerInformationForEquifaxUSA     = new SignerInformationForEquifaxUSAConverter(sdkKnowledgeBasedAuthentication.SignerInformationForEquifaxUSA).ToAPISignerInformationForEquifaxUSA();
            result.KnowledgeBasedAuthenticationStatus = new KnowledgeBasedAuthenticationStatusConverter(sdkKnowledgeBasedAuthentication.KnowledgeBasedAuthenticationStatus).ToAPIKnowledgeBasedAuthenticationStatus();

            return(result);
        }
 /// <summary>
 /// Construct with API KnowledgeBasedAuthentication object involved in conversion.
 /// </summary>
 /// <param name="apiKnowledgeBasedAuthentication">API knowledge based authentication.</param>
 public KnowledgeBasedAuthenticationConverter(OneSpanSign.API.KnowledgeBasedAuthentication apiKnowledgeBasedAuthentication)
 {
     this.apiKnowledgeBasedAuthentication = apiKnowledgeBasedAuthentication;
 }