Source code for FortniteAPIAsync.banners

from .cosmetics import CosmeticType, Rarity, Series, Introduction, Set





[docs] class BannerColor: """Represents a banner color. Attributes ---------- raw: :class:`dict` Raw data from FortniteAPI (can be used to reconstruct object) id: :class:`str` The ID of the banner color. color: :class:`str` The color value of the banner. category: :class:`str` The category of the banner color. sub_category_group: :class:`str` The sub-category group of the banner color. """ def __init__(self, data: dict) -> None: self.raw: dict = data self.id: str = data.get('id') self.color: str = data.get('color') self.category: str = data.get('category') self.sub_category_group: str = data.get('subCategoryGroup')