VroomJob class
Class Representing a Vroom API Job model required as input to the optimization API endpoint.
Full Data Schema available here: https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#jobs
Constructors
-
VroomJob({required int id, ORSCoordinate? location, String? description, int? locationIndex, int? setup = 0, int? service = 0, List<
int> ? amount, List<int> ? delivery, List<int> ? pickup, List<int> ? skills, int? priority = 0, List<List< ? timeWindows})int> > -
const
-
VroomJob.fromJson(Map<
String, dynamic> json) -
Generates a VroomJob from a Map having keys matching the Vroom API Job
model that includes:
factory
Properties
-
amount
→ List<
int> ? -
List of
int
describing multidimensional quantities of this job for amount.final -
delivery
→ List<
int> ? -
List of
int
describing multidimensional quantities of this job for delivery.final - description → String?
-
String describing this job.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
Unique int identifier for this job.
final
- location → ORSCoordinate?
-
ORSCoordinate describing the location of this job.
final
- locationIndex → int?
-
int index of relevant row and column in custom matrices.
final
-
pickup
→ List<
int> ? -
List of
int
describing multidimensional quantities of this job for pickup.final - priority → int?
-
int describing the priority of this job. VALID RANGE:
0, 100
. Defaults to 0.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
- setup → int?
-
int describing the setup duration of this job. Defaults to 0.
final
-
skills
→ List<
int> ? -
List of
int
describing mandatory skills of this job.final -
timeWindows
→ List<
List< ?int> > -
List
of time windows describing the valid time windows for this job.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Map representation of this VroomJob having keys 'id', 'description', 'location', 'location_index', 'setup', 'service', 'amount', 'delivery', 'pickup', 'skills', 'priority', and 'time_windows'
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override