Show / Hide Table of Contents

Class DateTimeNullableJsonConverter

Formatter for 'date-time' openapi formats ss defined by full-date - RFC3339 see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types

Inheritance
object
JsonConverter
JsonConverter<DateTime?>
DateTimeNullableJsonConverter
Inherited Members
JsonConverter<DateTime?>.CanConvert(Type)
JsonConverter<DateTime?>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<DateTime?>.WriteAsPropertyName(Utf8JsonWriter, DateTime?, JsonSerializerOptions)
JsonConverter<DateTime?>.HandleNull
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi.Esc.Sdk.Client
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class DateTimeNullableJsonConverter : JsonConverter<DateTime?>

Properties

View Source

Formats

The formats used to deserialize the date

Declaration
public static string[] Formats { get; }
Property Value
Type Description
string[]

Methods

View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Returns a DateTime from the Json object

Declaration
public override DateTime? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader
Type typeToConvert
JsonSerializerOptions options
Returns
Type Description
DateTime?
Overrides
JsonConverter<DateTime?>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
View Source

Write(Utf8JsonWriter, DateTime?, JsonSerializerOptions)

Writes the DateTime to the json writer

Declaration
public override void Write(Utf8JsonWriter writer, DateTime? dateTimeValue, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer
DateTime? dateTimeValue
JsonSerializerOptions options
Overrides
JsonConverter<DateTime?>.Write(Utf8JsonWriter, DateTime?, JsonSerializerOptions)

Version 0.13.1

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.