mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-08 12:37:46 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.205.0
This commit is contained in:
@@ -15,7 +15,16 @@ namespace PlexAPI.Utils
|
||||
{
|
||||
internal class EnumSerializer : JsonConverter
|
||||
{
|
||||
public override bool CanConvert(System.Type objectType) => objectType.IsEnum;
|
||||
public override bool CanConvert(System.Type objectType)
|
||||
{
|
||||
var nullableType = Nullable.GetUnderlyingType(objectType);
|
||||
if (nullableType != null)
|
||||
{
|
||||
return nullableType.IsEnum;
|
||||
}
|
||||
|
||||
return objectType.IsEnum;
|
||||
}
|
||||
|
||||
public override bool CanRead => true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user