VehicleList class

Defines the VehicleList data model class.

This class represents a list of Tesla vehicles along with a count of how many vehicles are present in the list.

Constructors

VehicleList({required List<Vehicle> response, required int count})
Creates a new instance of the VehicleList.
VehicleList.fromJson(Map<String, dynamic> json)
Constructs a new VehicleList instance from a map.
factory

Properties

count int
The count of vehicles in the list.
final
hashCode int
The hash code for this object.
no setterinherited
response List<Vehicle>
List of Vehicle instances.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited