libkazv
identity_server.hpp
Go to the documentation of this file.
1 /******************************************************************************
2  * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3  */
4 
5 #pragma once
6 
7 #include "types.hpp"
8 
9 
10 namespace Kazv::Api {
12 struct IdentityServerInformation
13 {
14 
16  std::string baseUrl;
17 };
18 
19 }
20 namespace nlohmann
21 {
22 using namespace Kazv;
23 using namespace Kazv::Api;
24 template<>
25 struct adl_serializer<IdentityServerInformation> {
26  static void to_json(json& jo, const IdentityServerInformation &pod)
27  {
28  if (! jo.is_object()) { jo = json::object(); }
29 
30 
31  jo["base_url"s] = pod.baseUrl;
32 
33  }
34  static void from_json(const json &jo, IdentityServerInformation& result)
35  {
36 
37  if (jo.contains("base_url"s)) {
38  result.baseUrl = jo.at("base_url"s);
39  }
40 
41  }
42 };
43  }
44 
45  namespace Kazv::Api
46  {
47 } // namespace Kazv::Api
types.hpp
nlohmann
Definition: location.hpp:26
Kazv
Definition: location.hpp:10
nlohmann::adl_serializer< IdentityServerInformation >::from_json
static void from_json(const json &jo, IdentityServerInformation &result)
Definition: identity_server.hpp:34
Kazv::json
nlohmann::json json
Definition: jsonwrap.hpp:20
Kazv::Api
Definition: location.hpp:10
Kazv::Api::IdentityServerInformation
Used by clients to discover identity server information.
Definition: identity_server.hpp:14
Kazv::Api::IdentityServerInformation::baseUrl
std::string baseUrl
The base URL for the identity server for client-server connections.
Definition: identity_server.hpp:20
nlohmann::adl_serializer< IdentityServerInformation >::to_json
static void to_json(json &jo, const IdentityServerInformation &pod)
Definition: identity_server.hpp:26