@classmethod
def init_from_dict(cls, dict_obj):
    """Construct a model instance from a dictionary.

        This serves as a 2nd constructor

        :param dict_obj: dictionary object
        :returns o
        """
    o = cls('')
    o.domain = dict_obj.get('domain').lower().strip()
    o.protocol = dict_obj.get('protocol', 'http')
    if o.protocol == 'https':
        o.certificate = dict_obj.get('certificate', None)
    return o
