Class DateOnlyNullableJsonConverter
Formatter for 'date' openapi formats ss defined by full-date - RFC3339 see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types
Inherited Members
Namespace: Pulumi.Esc.Sdk.Client
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class DateOnlyNullableJsonConverter : JsonConverter<DateOnly?>
Properties
View SourceFormats
The formats used to deserialize the date
Declaration
public static string[] Formats { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Methods
View SourceRead(ref Utf8JsonReader, Type, JsonSerializerOptions)
Returns a DateOnly from the Json object
Declaration
public override DateOnly? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | |
| Type | typeToConvert | |
| JsonSerializerOptions | options |
Returns
| Type | Description |
|---|---|
| DateOnly? |
Overrides
View SourceWrite(Utf8JsonWriter, DateOnly?, JsonSerializerOptions)
Writes the DateOnly to the json writer
Declaration
public override void Write(Utf8JsonWriter writer, DateOnly? dateOnlyValue, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | |
| DateOnly? | dateOnlyValue | |
| JsonSerializerOptions | options |