Class UserDetailsResponseContext
- Namespace
- KartaViewSharp.V1
- Assembly
- KartaViewSharp.dll
[JsonSerializable(typeof(UserDetailsResponse), GenerationMode = JsonSourceGenerationMode.Metadata)]
public class UserDetailsResponseContext : JsonSerializerContext, IJsonTypeInfoResolver
- Inheritance
-
UserDetailsResponseContext
- Implements
- Inherited Members
Constructors
UserDetailsResponseContext()
public UserDetailsResponseContext()
UserDetailsResponseContext(JsonSerializerOptions)
Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.
public UserDetailsResponseContext(JsonSerializerOptions options)
Parameters
optionsJsonSerializerOptionsThe run time provided options for the context instance.
Properties
Country
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Country> Country { get; }
Property Value
- JsonTypeInfo<Country>
Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
public static UserDetailsResponseContext Default { get; }
Property Value
Double
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<double> Double { get; }
Property Value
DriverType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<DriverType> DriverType { get; }
Property Value
Gamification
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Gamification> Gamification { get; }
Property Value
GeneratedSerializerOptions
The source-generated options associated with this context.
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
HttpStatusCode
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<HttpStatusCode> HttpStatusCode { get; }
Property Value
Int32
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<int> Int32 { get; }
Property Value
Region
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Region> Region { get; }
Property Value
ResponseStatus
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ResponseStatus> ResponseStatus { get; }
Property Value
Single
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<float> Single { get; }
Property Value
String
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<string> String { get; }
Property Value
UserDetailsData
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<UserDetailsData> UserDetailsData { get; }
Property Value
UserDetailsResponse
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<UserDetailsResponse> UserDetailsResponse { get; }
Property Value
Methods
GetTypeInfo(Type)
Gets metadata for the specified type.
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
typeTypeThe type to fetch metadata for.
Returns
- JsonTypeInfo
The metadata for the specified type, or null if the context has no metadata for the type.