public DynamicJsonValue ToJson() { return(new DynamicJsonValue { [nameof(DatabasePerformanceMetrics.MetricType)] = MeterType, [nameof(Recent)] = new DynamicJsonArray(Recent.Select(x => x.ToJson())), [nameof(History)] = new DynamicJsonArray(History.Select(x => x.ToJson())) }); }
public DynamicJsonValue ToJson() { return(new DynamicJsonValue { [nameof(File)] = File, [nameof(Status)] = Status, [nameof(Recent)] = new DynamicJsonArray(Recent.Select(x => x.ToJson())), [nameof(History)] = new DynamicJsonArray(History.Select(x => x.ToJson())) }); }