Esempio n. 1
0
def deserialize_visualization_type(value):
    return try_parse_enum(value, VisualizationType, 'item_type')
Esempio n. 2
0
def deserialize_date_range(value, argument_name=None):
    return try_parse_enum(value, DateRangeType, argument_name)
Esempio n. 3
0
def deserialize_legend_placement(value, argument_name=None):
    return try_parse_enum(
        value, LegendPlacement, argument_name, lambda value: snakecase(value).upper()
    )