@classmethod
def from_json(cls, val):
    """ Create an identifier from JSON

        Args:
            val (:obj:`dict`)

        Returns:
            :obj:`Identifier`
        """
    return cls(namespace=val.get('namespace', None), id=val.get('id', None))
