Example #1
0
 private User DeserializeUserObject(JsonObject jsonObject)
 {
     return jsonObject.ConvertTo(x => new User{
         Id = x.Get<int?>("id"),
         CreatedAt = x.Get("created_at"),
         Email = x.Get("email"),
         IsActive = x.Get<bool>("is_active"),
         IsVerified = x.Get<bool>("is_verified"),
     });
 }
Example #2
0
 private Organization DeserializeOrganizationObject(JsonObject jsonObject)
 {
     return jsonObject.ConvertTo(x => new Organization {
         Id = x.Get<int>("id"),
         Name = x.Get("name"),
         IsShared = x.Get<bool>("is_shared"),
         Default = x.Get("default"),
     });
 }