OptimizationData class
A class encapsulating the Optimization Data received from the Optimization endpoint of the openrouteservice API.
Includes the optimizations data's code, its summary, unassigned and routes.
https://openrouteservice.org/dev/#/api-docs/optimization https://github.com/VROOM-Project/vroom
Constructors
-
OptimizationData({required int code, required OptimizationSummary summary, required List<
OptimizationRoute> routes, List unassigned = const <dynamic>[]}) -
const
-
OptimizationData.fromJson(Map<
String, dynamic> json) -
Generates a OptimizationData from a Map received from the API having
the keys 'code', 'summary', 'routes' and 'unassigned'.
factory
Properties
- code → int
-
int code of the optimization data.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
routes
→ List<
OptimizationRoute> -
List of
OptimizationRoute
s of the optimization data.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary → OptimizationSummary
-
Summary of the optimization data.
final
- unassigned → List
-
List of Unassigned data.
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 OptimizationData object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override