skytracker.models.api.aviation_edge.AviationEdgeFlightTrackingResponse#
- class skytracker.models.api.aviation_edge.AviationEdgeFlightTrackingResponse(root: RootModelRootType = PydanticUndefined)#
Bases:
ListModel[AviationEdgeFlightTrackingState],APIResponseAviation Edge API response data
Properties
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
rootMethods
Store the time of the response validation
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].