@classmethod
def create_from_dict(cls, dict_: dict, include_empty: bool=False) -> ModelsUpdateAllianceRule:
    instance = cls()
    if (not dict_):
        return instance
    if (('maxNumber' in dict_) and (dict_['maxNumber'] is not None)):
        instance.max_number = int(dict_['maxNumber'])
    elif include_empty:
        instance.max_number = 0
    if (('minNumber' in dict_) and (dict_['minNumber'] is not None)):
        instance.min_number = int(dict_['minNumber'])
    elif include_empty:
        instance.min_number = 0
    if (('playerMaxNumber' in dict_) and (dict_['playerMaxNumber'] is not None)):
        instance.player_max_number = int(dict_['playerMaxNumber'])
    elif include_empty:
        instance.player_max_number = 0
    if (('playerMinNumber' in dict_) and (dict_['playerMinNumber'] is not None)):
        instance.player_min_number = int(dict_['playerMinNumber'])
    elif include_empty:
        instance.player_min_number = 0
    return instance
@classmethod
def create_from_dict(cls, dict_: dict, include_empty: bool=False) -> ModelsUpdateAllianceRule:
    instance = cls()
    if (not dict_):
        return instance
    if (('maxNumber' in dict_) and (dict_['maxNumber'] is not None)):
        instance.max_number = int(dict_['maxNumber'])
    elif include_empty:
        instance.max_number = 0
    if (('minNumber' in dict_) and (dict_['minNumber'] is not None)):
        instance.min_number = int(dict_['minNumber'])
    elif include_empty:
        instance.min_number = 0
    if (('playerMaxNumber' in dict_) and (dict_['playerMaxNumber'] is not None)):
        instance.player_max_number = int(dict_['playerMaxNumber'])
    elif include_empty:
        instance.player_max_number = 0
    if (('playerMinNumber' in dict_) and (dict_['playerMinNumber'] is not None)):
        instance.player_min_number = int(dict_['playerMinNumber'])
    elif include_empty:
        instance.player_min_number = 0
    return instance