def __init__(self, json, **kwargs):
        # type: (dict, **Any) -> None
        """Construct a Property from a json object."""
        super(Property, self).__init__(json, **kwargs)

        self._output = json.get('output', None)
        self._value = json.get('value', None)
        self._options = json.get('options', None)
        self.type = json.get('property_type', None)
        self.description = json.get('description', None)
        self.unit = json.get('unit', None)

        # set an empty internal validators variable
        self._validators = []  # type: List[Any]

        if self._options:
            validate(self._options, options_json_schema)
            if self._options.get('validators'):
                self.__parse_validators()
def __init__ ( self , json , ** kwargs ) : super ( Property , self ) . __init__ ( json , ** kwargs ) self . _output = json . get ( 'output' , None ) self . _value = json . get ( 'value' , None ) self . _options = json . get ( 'options' , None ) self . type = json . get ( 'property_type' , None ) self . description = json . get ( 'description' , None ) self . unit = json . get ( 'unit' , None ) self . _validators = [ ] if self . _options : validate ( self . _options , options_json_schema ) if self . _options . get ( 'validators' ) : self . __parse_validators ( )
Construct a Property from a json object.