public static void SaveTo(LaunchProfile profile, string fileName) { var jsonString = JsonSerializer.Serialize(profile); File.WriteAllText(fileName, jsonString); }