Esempio n. 1
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("storageType");
     writer.WriteStringValue(StorageType.ToSerialString());
     if (Optional.IsDefined(SizeInGB))
     {
         writer.WritePropertyName("sizeInGB");
         writer.WriteNumberValue(SizeInGB.Value);
     }
     writer.WriteEndObject();
 }