16 lines
373 B
C#
16 lines
373 B
C#
|
|
using System.Text.Json.Serialization;
|
||
|
|
|
||
|
|
namespace public_valetax.DTOs
|
||
|
|
{
|
||
|
|
public class MNode
|
||
|
|
{
|
||
|
|
[JsonPropertyName("id")]
|
||
|
|
public long Id { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("name")]
|
||
|
|
public string Name { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
[JsonPropertyName("children")]
|
||
|
|
public ICollection<MNode> Children { get; set; } = [];
|
||
|
|
}
|
||
|
|
}
|