public static ThemeResult FromJson(JsonPrimitive jsonPrimitive)
{
if (jsonPrimitive == null)
{
return null;
}
string str = jsonPrimitive;
ThemeResult result = new ThemeResult();
result.Name = str.Substring(0, str.IndexOf(","));
result.Key = str.Substring(str.IndexOf(",") + 1, str.Length - str.IndexOf(",") - 1);
return result;
}