Files
Moonlight/Moonlight.Shared/Http/SerializationContext.cs

17 lines
591 B
C#

using System.Text.Json.Serialization;
using Moonlight.Shared.Http.Requests.Users;
using Moonlight.Shared.Http.Responses;
using Moonlight.Shared.Http.Responses.Auth;
using Moonlight.Shared.Http.Responses.Users;
namespace Moonlight.Shared.Http;
[JsonSerializable(typeof(CreateUserRequest))]
[JsonSerializable(typeof(UpdateUserRequest))]
[JsonSerializable(typeof(ClaimResponse[]))]
[JsonSerializable(typeof(SchemeResponse[]))]
[JsonSerializable(typeof(UserResponse))]
[JsonSerializable(typeof(PagedData<UserResponse>))]
public partial class SerializationContext : JsonSerializerContext
{
}