| File: _generated\18\IdentityEndpointsJsonSerializerContext.GetJsonTypeInfo.g.cs | Web Access |
| Project: src\aspnetcore\src\Identity\Core\src\Microsoft.AspNetCore.Identity.csproj (Microsoft.AspNetCore.Identity) |
// <auto-generated/> #nullable enable annotations #nullable disable warnings // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0612, CS0618 namespace Microsoft.AspNetCore.Identity.Data { internal sealed partial class IdentityEndpointsJsonSerializerContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver { /// <inheritdoc/> public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) { Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); return typeInfo; } global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options) { if (type == typeof(bool)) { return Create_Boolean(options); } if (type == typeof(bool?)) { return Create_NullableBoolean(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest)) { return Create_ForgotPasswordRequest(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest)) { return Create_InfoRequest(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.InfoResponse)) { return Create_InfoResponse(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest)) { return Create_LoginRequest(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.RefreshRequest)) { return Create_RefreshRequest(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest)) { return Create_RegisterRequest(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest)) { return Create_ResendConfirmationEmailRequest(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest)) { return Create_ResetPasswordRequest(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest)) { return Create_TwoFactorRequest(options); } if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse)) { return Create_TwoFactorResponse(options); } if (type == typeof(int)) { return Create_Int32(options); } if (type == typeof(string)) { return Create_String(options); } if (type == typeof(string[])) { return Create_StringArray(options); } return null; } } }