DrawRouting.fromMap constructor

DrawRouting.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory DrawRouting.fromMap(Map<String, dynamic> json) => DrawRouting(
      type: json["type"],
      bbox: json["bbox"] == null
          ? []
          : List<num>.from(json["bbox"]?.map((x) => x)),
      features: json["features"] == null
          ? []
          : List<Feature>.from(
              json["features"]!.map((x) => Feature.fromMap(x))),
      metadata: json["metadata"] == null
          ? null
          : Metadata.fromMap(json["metadata"]),
    );