/// <summary> /// 反序列化 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="jsonStr"></param> /// <returns></returns> public T JsonToModel <T>(string jsonStr) { return(_json.JsonToModel <T>(jsonStr)); }
/// <summary> /// 反序列化 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="json"></param> /// <returns></returns> public static T ToObject <T>(string json) { return(_jsonHelper.JsonToModel <T>(json)); }