21 lines
530 B
C#
21 lines
530 B
C#
using Adaptation.FileHandlers.ConvertExcelToJson;
|
|
using System;
|
|
using System.Text.Json;
|
|
|
|
namespace Adaptation.FileHandlers.json;
|
|
|
|
public class Helper
|
|
{
|
|
|
|
#nullable enable
|
|
|
|
internal static FIBacklogMesa[] GetFIBacklogMesaRecords(string json)
|
|
{
|
|
FIBacklogMesa[]? results;
|
|
results = JsonSerializer.Deserialize<FIBacklogMesa[]>(json, new JsonSerializerOptions() { PropertyNameCaseInsensitive = true });
|
|
if (results is null)
|
|
throw new NullReferenceException();
|
|
return results;
|
|
}
|
|
|
|
} |