using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace MoralisUnity.Web3Api.Models
{
[DataContract]
public class NativeErc20Price
{
///
/// The native price of the token
/// example: 8409770570506626
///
[DataMember(Name = "value", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
///
/// The number of decimals of the token
/// example: 18
///
[DataMember(Name = "decimals", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "decimals")]
public int? Decimals { get; set; }
///
/// The Name of the token
/// example: Ether
///
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
///
/// The Symbol of the token
/// example: ETH
///
[DataMember(Name = "symbol", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "symbol")]
public string Symbol { get; set; }
///
/// Get the string presentation of the object
///
/// String presentation of the object
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class NativeErc20Price{");
sb.Append(" Value ").Append(Value).Append("\n");
sb.Append(" Decimals ").Append(Decimals).Append("\n");
sb.Append(" Name ").Append(Name).Append("\n");
sb.Append(" Symbol ").Append(Symbol).Append("\n");
sb.Append("}");
return sb.ToString();
}
///
/// Get the JSON string presentation of the object
///
/// JSON string presentation of the object
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}