OptimizationRoute class
A class encapsulating the data included in the Optimization's Route.
Includes the optimization route's vehicle, cost, delivery, amount, pickup, service, duration, waitingTime and its steps list.
Constructors
-
OptimizationRoute({int? vehicle, int? cost, List<
int> ? delivery, List<int> ? amount, List<int> ? pickup, int? service = 0, int? duration, int? waitingTime, List<OptimizationRouteStep> ? steps = const <OptimizationRouteStep>[]}) -
const
-
OptimizationRoute.fromJson(Map<
String, dynamic> json) -
Generates OptimizationRoute from a Map received from the API having
the keys 'vehicle', 'cost', 'delivery', 'amount', 'pickup', 'service',
'duration', 'waiting_time' and 'steps'.
factory
Properties
-
amount
→ List<
int> ? -
List of int describing multidimensional quantities of this
OptimizationRoute for amount.
final
- cost → int?
-
int describing the cost of this route.
final
-
delivery
→ List<
int> ? -
List of int describing multidimensional quantities of this
OptimizationRoute for delivery.
final
- duration → int?
-
int describing the duration of this Optimized Route.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
pickup
→ List<
int> ? -
List of int describing multidimensional quantities of this
OptimizationRoute for pickup.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- service → int?
-
int describing the service duration of this job. Defaults to 0.
final
-
steps
→ List<
OptimizationRouteStep> ? -
List of OptimizationRouteSteps of this OptimizationRoute.
final
- vehicle → int?
-
int describing the vehicle number used for this route.
final
- waitingTime → int?
-
int describing the waiting time for this Optimized Route.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a Map representation of the OptimizationRoute object. The keys of the Map are 'vehicle', 'cost', 'delivery', 'amount', 'pickup', 'service', 'duration', 'waiting_time' and 'steps'.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override