public ReachProfileBaseFilter(JToken node) : base(node)
 {
     if (node["idEqual"] != null)
     {
         this._IdEqual = ParseInt(node["idEqual"].Value <string>());
     }
     if (node["idIn"] != null)
     {
         this._IdIn = node["idIn"].Value <string>();
     }
     if (node["createdAtGreaterThanOrEqual"] != null)
     {
         this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["createdAtLessThanOrEqual"] != null)
     {
         this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>());
     }
     if (node["updatedAtGreaterThanOrEqual"] != null)
     {
         this._UpdatedAtGreaterThanOrEqual = ParseInt(node["updatedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["updatedAtLessThanOrEqual"] != null)
     {
         this._UpdatedAtLessThanOrEqual = ParseInt(node["updatedAtLessThanOrEqual"].Value <string>());
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (ReachProfileStatus)ParseEnum(typeof(ReachProfileStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["profileTypeEqual"] != null)
     {
         this._ProfileTypeEqual = (ReachProfileType)ParseEnum(typeof(ReachProfileType), node["profileTypeEqual"].Value <string>());
     }
     if (node["profileTypeIn"] != null)
     {
         this._ProfileTypeIn = node["profileTypeIn"].Value <string>();
     }
 }
 public ReachProfile(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (ReachProfileStatus)ParseEnum(typeof(ReachProfileStatus), node["status"].Value <string>());
     }
     if (node["profileType"] != null)
     {
         this._ProfileType = (ReachProfileType)ParseEnum(typeof(ReachProfileType), node["profileType"].Value <string>());
     }
     if (node["defaultOutputFormat"] != null)
     {
         this._DefaultOutputFormat = (VendorCatalogItemOutputFormat)ParseEnum(typeof(VendorCatalogItemOutputFormat), node["defaultOutputFormat"].Value <string>());
     }
     if (node["enableMachineModeration"] != null)
     {
         this._EnableMachineModeration = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableMachineModeration"].Value <string>());
     }
     if (node["enableHumanModeration"] != null)
     {
         this._EnableHumanModeration = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableHumanModeration"].Value <string>());
     }
     if (node["autoDisplayMachineCaptionsOnPlayer"] != null)
     {
         this._AutoDisplayMachineCaptionsOnPlayer = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["autoDisplayMachineCaptionsOnPlayer"].Value <string>());
     }
     if (node["autoDisplayHumanCaptionsOnPlayer"] != null)
     {
         this._AutoDisplayHumanCaptionsOnPlayer = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["autoDisplayHumanCaptionsOnPlayer"].Value <string>());
     }
     if (node["enableMetadataExtraction"] != null)
     {
         this._EnableMetadataExtraction = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableMetadataExtraction"].Value <string>());
     }
     if (node["enableSpeakerChangeIndication"] != null)
     {
         this._EnableSpeakerChangeIndication = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableSpeakerChangeIndication"].Value <string>());
     }
     if (node["enableAudioTags"] != null)
     {
         this._EnableAudioTags = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableAudioTags"].Value <string>());
     }
     if (node["enableProfanityRemoval"] != null)
     {
         this._EnableProfanityRemoval = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableProfanityRemoval"].Value <string>());
     }
     if (node["maxCharactersPerCaptionLine"] != null)
     {
         this._MaxCharactersPerCaptionLine = ParseInt(node["maxCharactersPerCaptionLine"].Value <string>());
     }
     if (node["labelAdditionForMachineServiceType"] != null)
     {
         this._LabelAdditionForMachineServiceType = node["labelAdditionForMachineServiceType"].Value <string>();
     }
     if (node["labelAdditionForHumanServiceType"] != null)
     {
         this._LabelAdditionForHumanServiceType = node["labelAdditionForHumanServiceType"].Value <string>();
     }
     if (node["contentDeletionPolicy"] != null)
     {
         this._ContentDeletionPolicy = (ReachProfileContentDeletionPolicy)ParseEnum(typeof(ReachProfileContentDeletionPolicy), node["contentDeletionPolicy"].Value <string>());
     }
     if (node["rules"] != null)
     {
         this._Rules = new List <Rule>();
         foreach (var arrayNode in node["rules"].Children())
         {
             this._Rules.Add(ObjectFactory.Create <Rule>(arrayNode));
         }
     }
     if (node["credit"] != null)
     {
         this._Credit = ObjectFactory.Create <BaseVendorCredit>(node["credit"]);
     }
     if (node["usedCredit"] != null)
     {
         this._UsedCredit = ParseFloat(node["usedCredit"].Value <string>());
     }
     if (node["dictionaries"] != null)
     {
         this._Dictionaries = new List <Dictionary>();
         foreach (var arrayNode in node["dictionaries"].Children())
         {
             this._Dictionaries.Add(ObjectFactory.Create <Dictionary>(arrayNode));
         }
     }
     if (node["flavorParamsIds"] != null)
     {
         this._FlavorParamsIds = node["flavorParamsIds"].Value <string>();
     }
     if (node["vendorTaskProcessingRegion"] != null)
     {
         this._VendorTaskProcessingRegion = (VendorTaskProcessingRegion)ParseEnum(typeof(VendorTaskProcessingRegion), node["vendorTaskProcessingRegion"].Value <string>());
     }
 }