VroomVehicleStep class
Class Representing a Vroom API Vehicle Step Model.
type a string (either start, job, pickup, delivery, break or end)
id id of the task to be performed at this step if type value is job, pickup, delivery or break
service_at
hard constraint on service time
service_after
hard constraint on service time lower bound
service_before
hard constraint on service time upper bound
View the Vehicles Section to find the Step Model schema. https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#vehicles
Constructors
- VroomVehicleStep({required int id, required VroomVehicleStepType type, int? serviceAt, int? serviceAfter, int? serviceBefore})
-
const
-
VroomVehicleStep.fromJson(Map<
String, dynamic> json) -
Generates a VroomVehicleStep from a Map having keys matching the Vroom
API Vehicle Step model that includes:
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
int identifier for this step.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceAfter → int?
-
int describing the hard constraint on service time lower bound.
final
- serviceAt → int?
-
int describing the hard constraint on service time.
final
- serviceBefore → int?
-
int describing the hard constraint on service time upper bound.
final
- type → VroomVehicleStepType
-
String describing the type of this step.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Map representation of this VroomVehicleStep having keys 'type', 'id', 'service_at', 'service_after', and 'service_before'.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
vroomVehicleStepTypeFromString(
String type) → VroomVehicleStepType - Converts String to corresponding enum VroomVehicleStepType.
-
vroomVehicleStepTypeToString(
VroomVehicleStepType type) → String - Converts enum VroomVehicleStepType to corresponding String.