def __init__(self, json, client):
        """Construct a model from provided json data."""
        self._json_data = json
        self._client = client

        self.id = json.get('id', None)
        self.name = json.get('name', None)
def __init__ ( self , json , client ) : self . _json_data = json self . _client = client self . id = json . get ( 'id' , None ) self . name = json . get ( 'name' , None )
Construct a model from provided json data.