1 #ifndef CPPGRAM_CONTACT_HPP 2 #define CPPGRAM_CONTACT_HPP 4 #include <experimental/optional> 35 std::experimental::optional<int_fast32_t>
user_id;
37 Contact( Json::Value &json_contact )
38 : phone_number( json_contact[
"phone_number"].asString() )
39 , first_name( json_contact[
"first_name"].asString() )
41 if ( !json_contact[
"last_name"].isNull() )
43 last_name.emplace( json_contact[
"last_name"].asString() );
46 if ( !json_contact[
"user_id"].isNull() )
48 user_id.emplace( json_contact[
"user_id"].asUInt() );
main namespace for Cppgram