Exemple #1
0
 internal void WriteJson(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WriteString("currency", CurrencyCode.ToString());
     if (Issuer.HasValue)
     {
         writer.WriteString("issuer", Issuer.Value.ToString());
     }
     writer.WriteEndObject();
 }
Exemple #2
0
 public void WriteJson(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WriteString("currency", CurrencyCode.ToString());
     writer.WriteString("issuer", Issuer.ToString());
     writer.WriteString("value", Value.ToString());
     writer.WriteEndObject();
 }