NextSpeedLimit.fromJson constructor

NextSpeedLimit.fromJson(
  1. Map<String, dynamic> json
)

Returns a simplified turn icon for the upcoming maneuver. For a detailed geometry image, use nextTurnDetails.abstractGeometryImg. Returns null Deserializes a JSON-compatible map to create an instance.

Used internally, not intended for direct use by consumers. The expected map structure may change without notice.

Implementation

/// Deserializes a JSON-compatible map to create an instance.
///
/// Used internally, not intended for direct use by consumers.
/// The expected map structure may change without notice.
factory NextSpeedLimit.fromJson(final Map<String, dynamic> json) {
  return NextSpeedLimit(
    coords: Coordinates.fromJson(json['coords']),
    distance: json['distance'],
    speed: json['speed'],
  );
}