18 lines
486 B
C#
18 lines
486 B
C#
using Newtonsoft.Json;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace ConsoleApp3.DataContracts
|
|
{
|
|
[DataContract]
|
|
public class ModelUnity
|
|
{
|
|
[DataMember(Name = "id", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "id")]
|
|
public int Id { get; set; } = 1;
|
|
|
|
[DataMember(Name = "objectName", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "objectName")]
|
|
public string ObjectName { get; set; } = "Unity";
|
|
}
|
|
}
|