@@ -323,6 +323,42 @@ public ContainerListListInner(RFIDTextDataResult actualInstance)
323323 this . ActualInstance = actualInstance ?? throw new ArgumentException ( "Invalid instance found. Must not be null." ) ;
324324 }
325325
326+ /// <summary>
327+ /// Initializes a new instance of the <see cref="ContainerListListInner" /> class
328+ /// with the <see cref="VDSNCDataResult" /> class
329+ /// </summary>
330+ /// <param name="actualInstance">An instance of VDSNCDataResult.</param>
331+ public ContainerListListInner ( VDSNCDataResult actualInstance )
332+ {
333+ this . IsNullable = false ;
334+ this . SchemaType = "oneOf" ;
335+ this . ActualInstance = actualInstance ?? throw new ArgumentException ( "Invalid instance found. Must not be null." ) ;
336+ }
337+
338+ /// <summary>
339+ /// Initializes a new instance of the <see cref="ContainerListListInner" /> class
340+ /// with the <see cref="VDSDataResult" /> class
341+ /// </summary>
342+ /// <param name="actualInstance">An instance of VDSDataResult.</param>
343+ public ContainerListListInner ( VDSDataResult actualInstance )
344+ {
345+ this . IsNullable = false ;
346+ this . SchemaType = "oneOf" ;
347+ this . ActualInstance = actualInstance ?? throw new ArgumentException ( "Invalid instance found. Must not be null." ) ;
348+ }
349+
350+ /// <summary>
351+ /// Initializes a new instance of the <see cref="ContainerListListInner" /> class
352+ /// with the <see cref="MDLResult" /> class
353+ /// </summary>
354+ /// <param name="actualInstance">An instance of MDLResult.</param>
355+ public ContainerListListInner ( MDLResult actualInstance )
356+ {
357+ this . IsNullable = false ;
358+ this . SchemaType = "oneOf" ;
359+ this . ActualInstance = actualInstance ?? throw new ArgumentException ( "Invalid instance found. Must not be null." ) ;
360+ }
361+
326362
327363 private Object _actualInstance ;
328364
@@ -401,6 +437,10 @@ public override Object ActualInstance
401437 {
402438 this . _actualInstance = value ;
403439 }
440+ else if ( value . GetType ( ) == typeof ( MDLResult ) || value is MDLResult )
441+ {
442+ this . _actualInstance = value ;
443+ }
404444 else if ( value . GetType ( ) == typeof ( MRZDetectorResult ) || value is MRZDetectorResult )
405445 {
406446 this . _actualInstance = value ;
@@ -433,9 +473,17 @@ public override Object ActualInstance
433473 {
434474 this . _actualInstance = value ;
435475 }
476+ else if ( value . GetType ( ) == typeof ( VDSDataResult ) || value is VDSDataResult )
477+ {
478+ this . _actualInstance = value ;
479+ }
480+ else if ( value . GetType ( ) == typeof ( VDSNCDataResult ) || value is VDSNCDataResult )
481+ {
482+ this . _actualInstance = value ;
483+ }
436484 else
437485 {
438- throw new ArgumentException ( "Invalid instance found. Must be the following types: AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult" ) ;
486+ throw new ArgumentException ( "Invalid instance found. Must be the following types: AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MDLResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult, VDSDataResult, VDSNCDataResult " ) ;
439487 }
440488 }
441489 }
@@ -680,6 +728,36 @@ public RFIDTextDataResult GetRFIDTextDataResult()
680728 return ( RFIDTextDataResult ) this . ActualInstance ;
681729 }
682730
731+ /// <summary>
732+ /// Get the actual instance of `VDSNCDataResult`. If the actual instance is not `VDSNCDataResult`,
733+ /// the InvalidClassException will be thrown
734+ /// </summary>
735+ /// <returns>An instance of VDSNCDataResult</returns>
736+ public VDSNCDataResult GetVDSNCDataResult ( )
737+ {
738+ return ( VDSNCDataResult ) this . ActualInstance ;
739+ }
740+
741+ /// <summary>
742+ /// Get the actual instance of `VDSDataResult`. If the actual instance is not `VDSDataResult`,
743+ /// the InvalidClassException will be thrown
744+ /// </summary>
745+ /// <returns>An instance of VDSDataResult</returns>
746+ public VDSDataResult GetVDSDataResult ( )
747+ {
748+ return ( VDSDataResult ) this . ActualInstance ;
749+ }
750+
751+ /// <summary>
752+ /// Get the actual instance of `MDLResult`. If the actual instance is not `MDLResult`,
753+ /// the InvalidClassException will be thrown
754+ /// </summary>
755+ /// <returns>An instance of MDLResult</returns>
756+ public MDLResult GetMDLResult ( )
757+ {
758+ return ( MDLResult ) this . ActualInstance ;
759+ }
760+
683761 /// <summary>
684762 /// Returns the string presentation of the object
685763 /// </summary>
@@ -1038,6 +1116,26 @@ public static ContainerListListInner FromJson(string jsonString)
10381116 System . Diagnostics . Debug . WriteLine ( string . Format ( "Failed to deserialize `{0}` into LicenseResult: {1}" , jsonString , exception . ToString ( ) ) ) ;
10391117 }
10401118
1119+ try
1120+ {
1121+ // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize
1122+ if ( typeof ( MDLResult ) . GetProperty ( "AdditionalProperties" ) == null )
1123+ {
1124+ newContainerListListInner = new ContainerListListInner ( JsonConvert . DeserializeObject < MDLResult > ( jsonString , ContainerListListInner . SerializerSettings ) ) ;
1125+ }
1126+ else
1127+ {
1128+ newContainerListListInner = new ContainerListListInner ( JsonConvert . DeserializeObject < MDLResult > ( jsonString , ContainerListListInner . AdditionalPropertiesSerializerSettings ) ) ;
1129+ }
1130+ matchedTypes . Add ( "MDLResult" ) ;
1131+ match ++ ;
1132+ }
1133+ catch ( Exception exception )
1134+ {
1135+ // deserialization failed, try the next one
1136+ System . Diagnostics . Debug . WriteLine ( string . Format ( "Failed to deserialize `{0}` into MDLResult: {1}" , jsonString , exception . ToString ( ) ) ) ;
1137+ }
1138+
10411139 try
10421140 {
10431141 // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize
@@ -1198,6 +1296,46 @@ public static ContainerListListInner FromJson(string jsonString)
11981296 System . Diagnostics . Debug . WriteLine ( string . Format ( "Failed to deserialize `{0}` into TextResult: {1}" , jsonString , exception . ToString ( ) ) ) ;
11991297 }
12001298
1299+ try
1300+ {
1301+ // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize
1302+ if ( typeof ( VDSDataResult ) . GetProperty ( "AdditionalProperties" ) == null )
1303+ {
1304+ newContainerListListInner = new ContainerListListInner ( JsonConvert . DeserializeObject < VDSDataResult > ( jsonString , ContainerListListInner . SerializerSettings ) ) ;
1305+ }
1306+ else
1307+ {
1308+ newContainerListListInner = new ContainerListListInner ( JsonConvert . DeserializeObject < VDSDataResult > ( jsonString , ContainerListListInner . AdditionalPropertiesSerializerSettings ) ) ;
1309+ }
1310+ matchedTypes . Add ( "VDSDataResult" ) ;
1311+ match ++ ;
1312+ }
1313+ catch ( Exception exception )
1314+ {
1315+ // deserialization failed, try the next one
1316+ System . Diagnostics . Debug . WriteLine ( string . Format ( "Failed to deserialize `{0}` into VDSDataResult: {1}" , jsonString , exception . ToString ( ) ) ) ;
1317+ }
1318+
1319+ try
1320+ {
1321+ // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize
1322+ if ( typeof ( VDSNCDataResult ) . GetProperty ( "AdditionalProperties" ) == null )
1323+ {
1324+ newContainerListListInner = new ContainerListListInner ( JsonConvert . DeserializeObject < VDSNCDataResult > ( jsonString , ContainerListListInner . SerializerSettings ) ) ;
1325+ }
1326+ else
1327+ {
1328+ newContainerListListInner = new ContainerListListInner ( JsonConvert . DeserializeObject < VDSNCDataResult > ( jsonString , ContainerListListInner . AdditionalPropertiesSerializerSettings ) ) ;
1329+ }
1330+ matchedTypes . Add ( "VDSNCDataResult" ) ;
1331+ match ++ ;
1332+ }
1333+ catch ( Exception exception )
1334+ {
1335+ // deserialization failed, try the next one
1336+ System . Diagnostics . Debug . WriteLine ( string . Format ( "Failed to deserialize `{0}` into VDSNCDataResult: {1}" , jsonString , exception . ToString ( ) ) ) ;
1337+ }
1338+
12011339 if ( match == 0 )
12021340 {
12031341 throw new InvalidDataException ( "The JSON string `" + jsonString + "` cannot be deserialized into any schema defined." ) ;
0 commit comments