"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

from __future__ import annotations
import dataclasses
from cribl import utils
from dataclasses_json import Undefined, dataclass_json
from enum import Enum

class SortByFieldDirection(str, Enum):
    ASCENDING = 'ascending'
    DESCENDING = 'descending'

class SortByFieldNullPosition(str, Enum):
    NULLS_FIRST = 'nullsFirst'
    NULLS_LAST = 'nullsLast'


@dataclass_json(undefined=Undefined.EXCLUDE)

@dataclasses.dataclass
class SortByField:
    direction: SortByFieldDirection = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('direction') }})
    field_name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fieldName') }})
    null_position: SortByFieldNullPosition = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('nullPosition') }})
    

