mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add JsonPropertyName attributes to DTO properties for serialization
This commit is contained in:
@@ -23,12 +23,18 @@
|
||||
// Copyright © 2003-2021 Natalia Portillo
|
||||
*******************************************************************************/
|
||||
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Marechai.Data.Dtos;
|
||||
|
||||
public class GpuByMachineDto : BaseDto<long>
|
||||
{
|
||||
public int GpuId { get; set; }
|
||||
public int MachineId { get; set; }
|
||||
[JsonPropertyName("gpu_id")]
|
||||
public int GpuId { get; set; }
|
||||
[JsonPropertyName("machine_id")]
|
||||
public int MachineId { get; set; }
|
||||
[JsonPropertyName("company")]
|
||||
public string CompanyName { get; set; }
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user