The JSON you show doesn't match your classes - the "data" item is not a collection, buut a single instance.
If I take your JSON and feed to to a class generator:
json2csharp - generate c# classes from json[
^] I get these:
public class Data
{
public long token { get; set; }
}
public class RootObject
{
public int code { get; set; }
public string message { get; set; }
public Data data { get; set; }
}
If I feed you classes some data, I get what I expect:
UserAuthenticate ua = new UserAuthenticate();
ua.code = "200";
ua.message = "Authorized";
ua.data = new List<TokenResult>();
ua.data.Add(new TokenResult() { token = "1545207965545" });
string json = Newtonsoft.Json.JsonConvert.SerializeObject(ua);
{"code":"200","message":"Authorized","data":[{"token":"1545207965545"}]}
I'd start by checking your data source.