winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

InformationResponseDeserializer.h (569B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include "Rest/Schema/IRestClient.h"
      5 
      6 namespace AppInstaller::Repository::Rest::Schema
      7 {
      8     // Information response Deserializer.
      9     struct InformationResponseDeserializer
     10     {
     11         // Gets the information model for given response
     12         IRestClient::Information Deserialize(const web::json::value& dataObject) const;
     13 
     14     protected:
     15         std::optional<IRestClient::Information> DeserializeInformation(const web::json::value& dataObject) const;
     16     };
     17 }