/// <summary> /// Deserializes the JSON object to a new instance of this class. /// </summary> /// <param name="client">the Clarifai client</param> /// <param name="model">the JSON object</param> /// <returns>a new instance</returns> public new static DemographicsModel Deserialize(IClarifaiClient client, dynamic model) { return(new DemographicsModel( client, (string)model.id, name: (string)model.name, createdAt: (DateTime)model.created_at, appID: (string)model.app_id, outputInfo: DemographicsOutputInfo.Deserialize(model.output_info), modelVersion: Models.ModelVersion.Deserialize(model.model_version))); }
/// <summary> /// Ctor. /// </summary> /// <param name="client">the Clarifai client</param> /// <param name="modelID">the model ID</param> /// <param name="name">the model name</param> /// <param name="createdAt">date & time of model creation</param> /// <param name="appID">the application ID</param> /// <param name="modelVersion">the model version</param> /// <param name="outputInfo">the output info</param> public DemographicsModel(IClarifaiClient client, string modelID, string name = null, DateTime?createdAt = null, string appID = null, ModelVersion modelVersion = null, DemographicsOutputInfo outputInfo = null) : base(client, modelID, name, createdAt, appID, modelVersion, outputInfo) { }