@classmethod
def from_string(cls, str_value):
    """
        Deserializes a member from string.
        :param str_value: serialized form
        :return: enum member or None if not found
        """
    for m in cls:
        if m.value == str_value:
            return m
    else:
        return None
