Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AuthenticationRequest JsonSerDes::Deserialize(void* deserializable) {
- auto data_p = (char*)deserializable;
- nlohmann::json json = nlohmann::json::parse(data_p);
- AuthenticationRequest request = json.get<AuthenticationRequest>();
- return request;
- }
- void* JsonSerDes::Serialize(AuthenticationResponse* serializable) {
- throw std::runtime_error("JSON 'Serialize' not yet implemented.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement