8 lines
377 B
C#
8 lines
377 B
C#
using System.Text.Json;
|
|
namespace Launcher.Next.Core;
|
|
public static class PackageManifestJson
|
|
{
|
|
private static readonly JsonSerializerOptions Options = new() { PropertyNameCaseInsensitive = true };
|
|
public static PackageManifest Parse(string json) => JsonSerializer.Deserialize<PackageManifest>(json, Options) ?? throw new InvalidOperationException("MANIFEST_EMPTY");
|
|
}
|