parseRouting function

List<RoutingInfo> parseRouting(
  1. String responseBody
)

Implementation

List<RoutingInfo> parseRouting(String responseBody) {
  final parsed = jsonDecode(responseBody).cast<String, dynamic>();

  return parsed.map<RoutingInfo>((json) => RoutingInfo.fromJson(json));
}