Module valolyticspy.dtos.valorant_api.theme
Expand source code
from pydantic import BaseModel
from typing import Optional
class Theme(BaseModel):
"""
Represents a theme in the Valorant API.
Attributes:
uuid (str): The UUID of the theme.
displayName (str): The display name of the theme.
displayIcon (Optional[str]): The display icon of the theme, if available.
storeFeaturedImage (Optional[str]): The featured image of the theme in the store, if available.
assetPath (str): The asset path of the theme.
"""
uuid: str
displayName: str
displayIcon: Optional[str] = None
storeFeaturedImage: Optional[str] = None
assetPath: str
Classes
class Theme (**data: Any)-
Represents a theme in the Valorant API.
Attributes
uuid:str- The UUID of the theme.
displayName:str- The display name of the theme.
displayIcon:Optional[str]- The display icon of the theme, if available.
storeFeaturedImage:Optional[str]- The featured image of the theme in the store, if available.
assetPath:str- The asset path of the theme.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Expand source code
class Theme(BaseModel): """ Represents a theme in the Valorant API. Attributes: uuid (str): The UUID of the theme. displayName (str): The display name of the theme. displayIcon (Optional[str]): The display icon of the theme, if available. storeFeaturedImage (Optional[str]): The featured image of the theme in the store, if available. assetPath (str): The asset path of the theme. """ uuid: str displayName: str displayIcon: Optional[str] = None storeFeaturedImage: Optional[str] = None assetPath: strAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar displayIcon : Optional[str]var displayName : strvar model_computed_fieldsvar model_configvar model_fieldsvar storeFeaturedImage : Optional[str]var uuid : str