Exemple #1
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("secretType");
     writer.WriteStringValue(SecretType.ToString());
     writer.WriteEndObject();
 }
Exemple #2
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     if (Optional.IsDefined(Value))
     {
         writer.WritePropertyName("value");
         writer.WriteStringValue(Value);
     }
     writer.WritePropertyName("secretType");
     writer.WriteStringValue(SecretType.ToString());
     writer.WriteEndObject();
 }
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     if (Optional.IsDefined(Name))
     {
         writer.WritePropertyName("name");
         writer.WriteStringValue(Name);
     }
     if (Optional.IsDefined(Version))
     {
         if (Version != null)
         {
             writer.WritePropertyName("version");
             writer.WriteStringValue(Version);
         }
         else
         {
             writer.WriteNull("version");
         }
     }
     writer.WritePropertyName("secretType");
     writer.WriteStringValue(SecretType.ToString());
     writer.WriteEndObject();
 }