DistanceValue class

Represents the distance information in the response.

Constructors

DistanceValue.new({required String text, required int value})
Constructs a DistanceValue object.
DistanceValue.fromJson(Map<String, dynamic> json)
Creates an instance of DistanceValue from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The human-readable distance value.
final
value int
The distance value in meters.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an instance of DistanceValue to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited