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