# coding: utf-8

"""
    Mentortools Design API

    Mentortools service for getting and editing design data

    The version of the OpenAPI document: 0.1.0
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import pprint
import re  # noqa: F401
import json


from typing import Optional
from pydantic import BaseModel, Field, StrictStr

class AppColors(BaseModel):
    """
    AppColors
    """
    primary: StrictStr = Field(...)
    black: StrictStr = Field(...)
    danger: StrictStr = Field(...)
    danger_disabled: StrictStr = Field(default=..., alias="dangerDisabled")
    danger_transparent16: StrictStr = Field(default=..., alias="dangerTransparent16")
    warning: StrictStr = Field(...)
    warning_transparent16: StrictStr = Field(default=..., alias="warningTransparent16")
    first_place_leader_board: StrictStr = Field(default=..., alias="firstPlaceLeaderBoard")
    second_place_leader_board: StrictStr = Field(default=..., alias="secondPlaceLeaderBoard")
    third_place_leader_board: StrictStr = Field(default=..., alias="thirdPlaceLeaderBoard")
    white_leader_board_place_text: StrictStr = Field(default=..., alias="whiteLeaderBoardPlaceText")
    remove_button_background: StrictStr = Field(default=..., alias="removeButtonBackground")
    remove_button_icon: StrictStr = Field(default=..., alias="removeButtonIcon")
    app_background: StrictStr = Field(default=..., alias="appBackground")
    backdrop_text: StrictStr = Field(default=..., alias="backdropText")
    container: StrictStr = Field(...)
    container_shadow: StrictStr = Field(default=..., alias="containerShadow")
    container_transparent80: StrictStr = Field(default=..., alias="containerTransparent80")
    action: StrictStr = Field(...)
    action_transparent16: StrictStr = Field(default=..., alias="actionTransparent16")
    action_transparent8: StrictStr = Field(default=..., alias="actionTransparent8")
    action_button_text: StrictStr = Field(default=..., alias="actionButtonText")
    regular_text: StrictStr = Field(default=..., alias="regularText")
    regular_text_transparent16: StrictStr = Field(default=..., alias="regularTextTransparent16")
    regular_text_transparent8: StrictStr = Field(default=..., alias="regularTextTransparent8")
    regular_text_transparent4: StrictStr = Field(default=..., alias="regularTextTransparent4")
    placeholder_text: StrictStr = Field(default=..., alias="placeholderText")
    muted_text: StrictStr = Field(default=..., alias="mutedText")
    contrast: StrictStr = Field(...)
    contrast_transparent16: StrictStr = Field(default=..., alias="contrastTransparent16")
    menu_open_with_transparent6: StrictStr = Field(default=..., alias="menuOpenWithTransparent6")
    contrast_transparent8: StrictStr = Field(default=..., alias="contrastTransparent8")
    navigation_background: StrictStr = Field(default=..., alias="navigationBackground")
    navigation_text: StrictStr = Field(default=..., alias="navigationText")
    big_heading_text: StrictStr = Field(default=..., alias="bigHeadingText")
    regular_heading_text: StrictStr = Field(default=..., alias="regularHeadingText")
    medium_heading_text: StrictStr = Field(default=..., alias="mediumHeadingText")
    quiz_color_correct: StrictStr = Field(default=..., alias="quizColorCorrect")
    quiz_color_correct_transparent16: StrictStr = Field(default=..., alias="quizColorCorrectTransparent16")
    quiz_color_incorrect: StrictStr = Field(default=..., alias="quizColorIncorrect")
    quiz_color_incorrect_transparent16: StrictStr = Field(default=..., alias="quizColorIncorrectTransparent16")
    link_color: Optional[StrictStr] = Field(default='#007bff', alias="linkColor")
    __properties = ["primary", "black", "danger", "dangerDisabled", "dangerTransparent16", "warning", "warningTransparent16", "firstPlaceLeaderBoard", "secondPlaceLeaderBoard", "thirdPlaceLeaderBoard", "whiteLeaderBoardPlaceText", "removeButtonBackground", "removeButtonIcon", "appBackground", "backdropText", "container", "containerShadow", "containerTransparent80", "action", "actionTransparent16", "actionTransparent8", "actionButtonText", "regularText", "regularTextTransparent16", "regularTextTransparent8", "regularTextTransparent4", "placeholderText", "mutedText", "contrast", "contrastTransparent16", "menuOpenWithTransparent6", "contrastTransparent8", "navigationBackground", "navigationText", "bigHeadingText", "regularHeadingText", "mediumHeadingText", "quizColorCorrect", "quizColorCorrectTransparent16", "quizColorIncorrect", "quizColorIncorrectTransparent16", "linkColor"]

    class Config:
        """Pydantic configuration"""
        allow_population_by_field_name = True
        validate_assignment = True

    def to_str(self) -> str:
        """Returns the string representation of the model using alias"""
        return pprint.pformat(self.dict(by_alias=True))

    def to_json(self) -> str:
        """Returns the JSON representation of the model using alias"""
        return json.dumps(self.to_dict())

    @classmethod
    def from_json(cls, json_str: str) -> AppColors:
        """Create an instance of AppColors from a JSON string"""
        return cls.from_dict(json.loads(json_str))

    def to_dict(self):
        """Returns the dictionary representation of the model using alias"""
        _dict = self.dict(by_alias=True,
                          exclude={
                          },
                          exclude_none=True)
        return _dict

    @classmethod
    def from_dict(cls, obj: dict) -> AppColors:
        """Create an instance of AppColors from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return AppColors.parse_obj(obj)

        _obj = AppColors.parse_obj({
            "primary": obj.get("primary"),
            "black": obj.get("black"),
            "danger": obj.get("danger"),
            "danger_disabled": obj.get("dangerDisabled"),
            "danger_transparent16": obj.get("dangerTransparent16"),
            "warning": obj.get("warning"),
            "warning_transparent16": obj.get("warningTransparent16"),
            "first_place_leader_board": obj.get("firstPlaceLeaderBoard"),
            "second_place_leader_board": obj.get("secondPlaceLeaderBoard"),
            "third_place_leader_board": obj.get("thirdPlaceLeaderBoard"),
            "white_leader_board_place_text": obj.get("whiteLeaderBoardPlaceText"),
            "remove_button_background": obj.get("removeButtonBackground"),
            "remove_button_icon": obj.get("removeButtonIcon"),
            "app_background": obj.get("appBackground"),
            "backdrop_text": obj.get("backdropText"),
            "container": obj.get("container"),
            "container_shadow": obj.get("containerShadow"),
            "container_transparent80": obj.get("containerTransparent80"),
            "action": obj.get("action"),
            "action_transparent16": obj.get("actionTransparent16"),
            "action_transparent8": obj.get("actionTransparent8"),
            "action_button_text": obj.get("actionButtonText"),
            "regular_text": obj.get("regularText"),
            "regular_text_transparent16": obj.get("regularTextTransparent16"),
            "regular_text_transparent8": obj.get("regularTextTransparent8"),
            "regular_text_transparent4": obj.get("regularTextTransparent4"),
            "placeholder_text": obj.get("placeholderText"),
            "muted_text": obj.get("mutedText"),
            "contrast": obj.get("contrast"),
            "contrast_transparent16": obj.get("contrastTransparent16"),
            "menu_open_with_transparent6": obj.get("menuOpenWithTransparent6"),
            "contrast_transparent8": obj.get("contrastTransparent8"),
            "navigation_background": obj.get("navigationBackground"),
            "navigation_text": obj.get("navigationText"),
            "big_heading_text": obj.get("bigHeadingText"),
            "regular_heading_text": obj.get("regularHeadingText"),
            "medium_heading_text": obj.get("mediumHeadingText"),
            "quiz_color_correct": obj.get("quizColorCorrect"),
            "quiz_color_correct_transparent16": obj.get("quizColorCorrectTransparent16"),
            "quiz_color_incorrect": obj.get("quizColorIncorrect"),
            "quiz_color_incorrect_transparent16": obj.get("quizColorIncorrectTransparent16"),
            "link_color": obj.get("linkColor") if obj.get("linkColor") is not None else '#007bff'
        })
        return _obj


