mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 16:27:06 +00:00
@@ -5,7 +5,7 @@
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 4.0.1-SNAPSHOT.
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 4.2.0-SNAPSHOT.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
@@ -49,14 +49,14 @@ std::string User::toJsonString()
|
||||
{
|
||||
std::stringstream ss;
|
||||
ptree pt;
|
||||
pt.put("Id", m_Id);
|
||||
pt.put("Username", m_Username);
|
||||
pt.put("FirstName", m_FirstName);
|
||||
pt.put("LastName", m_LastName);
|
||||
pt.put("Email", m_Email);
|
||||
pt.put("Password", m_Password);
|
||||
pt.put("Phone", m_Phone);
|
||||
pt.put("UserStatus", m_UserStatus);
|
||||
pt.put("id", m_Id);
|
||||
pt.put("username", m_Username);
|
||||
pt.put("firstName", m_FirstName);
|
||||
pt.put("lastName", m_LastName);
|
||||
pt.put("email", m_Email);
|
||||
pt.put("password", m_Password);
|
||||
pt.put("phone", m_Phone);
|
||||
pt.put("userStatus", m_UserStatus);
|
||||
write_json(ss, pt, false);
|
||||
return ss.str();
|
||||
}
|
||||
@@ -66,14 +66,14 @@ void User::fromJsonString(std::string const& jsonString)
|
||||
std::stringstream ss(jsonString);
|
||||
ptree pt;
|
||||
read_json(ss,pt);
|
||||
m_Id = pt.get("Id", 0L);
|
||||
m_Username = pt.get("Username", "");
|
||||
m_FirstName = pt.get("FirstName", "");
|
||||
m_LastName = pt.get("LastName", "");
|
||||
m_Email = pt.get("Email", "");
|
||||
m_Password = pt.get("Password", "");
|
||||
m_Phone = pt.get("Phone", "");
|
||||
m_UserStatus = pt.get("UserStatus", 0);
|
||||
m_Id = pt.get("id", 0L);
|
||||
m_Username = pt.get("username", "");
|
||||
m_FirstName = pt.get("firstName", "");
|
||||
m_LastName = pt.get("lastName", "");
|
||||
m_Email = pt.get("email", "");
|
||||
m_Password = pt.get("password", "");
|
||||
m_Phone = pt.get("phone", "");
|
||||
m_UserStatus = pt.get("userStatus", 0);
|
||||
}
|
||||
|
||||
int64_t User::getId() const
|
||||
|
||||
Reference in New Issue
Block a user