DistanceMatrixResponse class
Represents the response from the Distance Matrix API.
Constructors
-
DistanceMatrixResponse.new({required List<
DistanceMatrixRow> rows, required String status}) - Constructs a DistanceMatrixResponse object.
-
DistanceMatrixResponse.fromJson(Map<
String, dynamic> json) -
Creates an instance of DistanceMatrixResponse from a JSON map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
rows
→ List<
DistanceMatrixRow> -
List of rows containing distance and duration elements.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
The overall status of the API response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts an instance of DistanceMatrixResponse to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited