VroomVehicleBreak class

Class Representing a Vroom API Vehicle Break Model.

View the Vehicles Section to find the Break Model schema. https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#vehicles

Constructors

VroomVehicleBreak({required int id, List<List<int>>? timeWindows, int service = 0, String? description})
const
VroomVehicleBreak.fromJson(Map<String, dynamic> json)
Generates a VroomVehicleBreak from a Map having keys matching the Vroom API Vehicle Break model that includes:
factory

Properties

description String?
String describing this break.
final
hashCode int
The hash code for this object.
no setteroverride
id int
Unique int identifier for this break.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service int
num describing the service duration of this break. Defaults to 0.
final
timeWindows List<List<int>>?
List of time windows describing the valid time windows for this break.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Map representation of this VroomVehicleBreak having keys 'id', 'time_windows', 'service', and 'description'.
toString() String
A string representation of this object.
override

Operators

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