void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("@odata.type"); writer.WriteStringValue(OdataType.ToString()); writer.WritePropertyName("certificateType"); writer.WriteStringValue(CertificateType.ToString()); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("typeName"); writer.WriteStringValue(TypeDefinition.ToString()); writer.WritePropertyName("certificateType"); writer.WriteStringValue(CertificateType.ToString()); writer.WriteEndObject(); }
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("certificateType"); writer.WriteStringValue(CertificateType.ToString()); if (Optional.IsDefined(MinimumTlsVersion)) { writer.WritePropertyName("minimumTlsVersion"); writer.WriteStringValue(MinimumTlsVersion.Value.ToSerialString()); } if (Optional.IsDefined(Secret)) { if (Secret != null) { writer.WritePropertyName("secret"); writer.WriteObjectValue(Secret); } else { writer.WriteNull("secret"); } } writer.WriteEndObject(); }