using OF_DL.Models.Dtos.Users;
using OF_DL.Models.Entities.Users;

namespace OF_DL.Models.Mappers;

public static class UserMapper
{
    public static User? FromDto(UserDto? dto) => dto == null
        ? null
        : new User { Avatar = dto.Avatar, Header = dto.Header, Name = dto.Name, Username = dto.Username };
}
