skytracker.models.api.aviation_edge.AviationEdgeFlightTrackingResponse#

class skytracker.models.api.aviation_edge.AviationEdgeFlightTrackingResponse(root: RootModelRootType = PydanticUndefined)#

Bases: ListModel[AviationEdgeFlightTrackingState], APIResponse

Aviation Edge API response data

Properties

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

root

Methods

model_post_init

Store the time of the response validation

to_states

Convert Aviation Edge API response to list of aircraft states

__init__(root: RootModelRootType = PydanticUndefined, **data) None#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_post_init(_) None#

Store the time of the response validation

to_states() list[State]#

Convert Aviation Edge API response to list of aircraft states

Returns:

list of aircraft states

Return type:

list[State]

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].