/// <summary>
 /// The deserialization information for the current model
 /// </summary>
 public new IDictionary <string, Action <IParseNode> > GetFieldDeserializers()
 {
     return(new Dictionary <string, Action <IParseNode> >(base.GetFieldDeserializers())
     {
         { "actionType", n => { ActionType = n.GetStringValue(); } },
         { "actionUrl", n => { ActionUrl = n.GetStringValue(); } },
         { "azureTenantId", n => { AzureTenantId = n.GetStringValue(); } },
         { "complianceInformation", n => { ComplianceInformation = n.GetCollectionOfObjectValues <ApiSdk.Models.ComplianceInformation>(ApiSdk.Models.ComplianceInformation.CreateFromDiscriminatorValue).ToList(); } },
         { "controlCategory", n => { ControlCategory = n.GetStringValue(); } },
         { "controlStateUpdates", n => { ControlStateUpdates = n.GetCollectionOfObjectValues <SecureScoreControlStateUpdate>(SecureScoreControlStateUpdate.CreateFromDiscriminatorValue).ToList(); } },
         { "deprecated", n => { Deprecated = n.GetBoolValue(); } },
         { "implementationCost", n => { ImplementationCost = n.GetStringValue(); } },
         { "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } },
         { "maxScore", n => { MaxScore = n.GetDoubleValue(); } },
         { "rank", n => { Rank = n.GetIntValue(); } },
         { "remediation", n => { Remediation = n.GetStringValue(); } },
         { "remediationImpact", n => { RemediationImpact = n.GetStringValue(); } },
         { "service", n => { Service = n.GetStringValue(); } },
         { "threats", n => { Threats = n.GetCollectionOfPrimitiveValues <string>().ToList(); } },
         { "tier", n => { Tier = n.GetStringValue(); } },
         { "title", n => { Title = n.GetStringValue(); } },
         { "userImpact", n => { UserImpact = n.GetStringValue(); } },
         { "vendorInformation", n => { VendorInformation = n.GetObjectValue <SecurityVendorInformation>(SecurityVendorInformation.CreateFromDiscriminatorValue); } },
     });
 }
Example #2
0
 /// <summary>
 /// The deserialization information for the current model
 /// </summary>
 public new IDictionary <string, Action <IParseNode> > GetFieldDeserializers()
 {
     return(new Dictionary <string, Action <IParseNode> >(base.GetFieldDeserializers())
     {
         { "activeUserCount", n => { ActiveUserCount = n.GetIntValue(); } },
         { "averageComparativeScores", n => { AverageComparativeScores = n.GetCollectionOfObjectValues <AverageComparativeScore>(AverageComparativeScore.CreateFromDiscriminatorValue).ToList(); } },
         { "azureTenantId", n => { AzureTenantId = n.GetStringValue(); } },
         { "controlScores", n => { ControlScores = n.GetCollectionOfObjectValues <ControlScore>(ControlScore.CreateFromDiscriminatorValue).ToList(); } },
         { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } },
         { "currentScore", n => { CurrentScore = n.GetDoubleValue(); } },
         { "enabledServices", n => { EnabledServices = n.GetCollectionOfPrimitiveValues <string>().ToList(); } },
         { "licensedUserCount", n => { LicensedUserCount = n.GetIntValue(); } },
         { "maxScore", n => { MaxScore = n.GetDoubleValue(); } },
         { "vendorInformation", n => { VendorInformation = n.GetObjectValue <SecurityVendorInformation>(SecurityVendorInformation.CreateFromDiscriminatorValue); } },
     });
 }