Class AuthToken
Config for auth_tokens.create parameters.
public record AuthToken : IEquatable<AuthToken>
- Inheritance
-
AuthToken
- Implements
- Inherited Members
Properties
Name
The name of the auth token.
[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a AuthToken object.
public static AuthToken? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- AuthToken
The deserialized AuthToken object, or null if deserialization fails.