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

            OneSpanSign.Sdk.KnowledgeBasedAuthentication result = new OneSpanSign.Sdk.KnowledgeBasedAuthentication();
            result.SignerInformationForEquifaxCanada  = new SignerInformationForEquifaxCanadaConverter(apiKnowledgeBasedAuthentication.SignerInformationForEquifaxCanada).ToSDKSignerInformationForEquifaxCanada();
            result.SignerInformationForEquifaxUSA     = new SignerInformationForEquifaxUSAConverter(apiKnowledgeBasedAuthentication.SignerInformationForEquifaxUSA).ToSDKSignerInformationForEquifaxUSA();
            result.KnowledgeBasedAuthenticationStatus = new KnowledgeBasedAuthenticationStatusConverter(apiKnowledgeBasedAuthentication.KnowledgeBasedAuthenticationStatus).ToSDKKnowledgeBasedAuthenticationStatus();
            return(result);
        }
 /// <summary>
 /// Construct with SDK KnowledgeBasedAuthentication object involved in conversion.
 /// </summary>
 /// <param name="sdkKnowledgeBasedAuthentication">SDK knowledge based authentication.</param>
 public KnowledgeBasedAuthenticationConverter(OneSpanSign.Sdk.KnowledgeBasedAuthentication sdkKnowledgeBasedAuthentication)
 {
     this.sdkKnowledgeBasedAuthentication = sdkKnowledgeBasedAuthentication;
 }