def deserialize_visualization_type(value): return try_parse_enum(value, VisualizationType, 'item_type')
def deserialize_date_range(value, argument_name=None): return try_parse_enum(value, DateRangeType, argument_name)
def deserialize_legend_placement(value, argument_name=None): return try_parse_enum( value, LegendPlacement, argument_name, lambda value: snakecase(value).upper() )