local c=(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local r=require(c.NotLApp.MockId)local p={}function p.mock()local c={}c.userAssetId=tostring(r())c.userId=tostring(r())c.userName=""c.serialNumber=tostring(r())c.priceInRobux=0 return c end function p.fromSellPageAndResellers(c)local r={}r.userAssetId=tostring(c.userAssetId)if c.seller then r.userId=tostring(c.seller.id)r.userName=c.seller.name end r.serialNumber=c.serialNumber and tostring(c.serialNumber)or nil r.priceInRobux=c.price return r end function p.fromPriceInRobux(c,r)local p={}p.userAssetId=tostring(c)p.priceInRobux=r return p end return p

local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local MockId = require(Modules.NotLApp.MockId)

local UserAssetModel = {}

function UserAssetModel.mock()
	local self = {}

	self.userAssetId = tostring(MockId())
	self.userId = tostring(MockId())
	self.userName = ""
	self.serialNumber = tostring(MockId())
	self.priceInRobux = 0

	return self
end

function UserAssetModel.fromSellPageAndResellers(newData)
	local userAssetInfo = {}

	userAssetInfo.userAssetId = tostring(newData.userAssetId)
	if newData.seller then
		userAssetInfo.userId = tostring(newData.seller.id)
		userAssetInfo.userName = newData.seller.name
	end

	userAssetInfo.serialNumber = newData.serialNumber and tostring(newData.serialNumber) or nil
	userAssetInfo.priceInRobux = newData.price
	return userAssetInfo
end

function UserAssetModel.fromPriceInRobux(userAssetId, priceInRobux)
	local userAssetInfo = {}

	userAssetInfo.userAssetId = tostring(userAssetId)
	userAssetInfo.priceInRobux = priceInRobux

	return userAssetInfo
end

return UserAssetModel
