@staticmethod
def decode_value(type, value):
    """
        Decode a value if it is non-None, otherwise, decode with no arguments.
        """
    if value == None:
        return type()
    else:
        return type(value)
