using Newtonsoft.Json; namespace MikrotikAPI { public static class Extensions { public static T ToModel(this string str) { if (string.IsNullOrWhiteSpace(str)) return default; return JsonConvert.DeserializeObject(str); } } }