@novabyte I’m using the JsonUtility from UnityEngine, and with that trying a mix of ways to match with either the “EventResponse” or “EventList” classes like so:
var result = await client.ListUsersStorageObjectsAsync(session4, "events", session4.UserId, limit, null);
EventResponse eventResponse = new EventResponse();
eventResponse = JsonUtility.FromJson<EventResponse>(result);
Here are the classes:
[System.Serializable]
public class EventObject
{
public int start;
public int stop;
public int category;
}
[System.Serializable]
public class EventList
{
public string Collection;
public string CreateTime;
public string Key;
public string PermissionRead;
public string PermissionWrite;
public string UpdateTime;
public string UserId;
public EventObject Value;
public string Version;
}
[System.Serializable]
public class EventResponse
{
public string Cursor;
public EventList Objects;
}