parsePlaceAutocompleteMatchedSubstringArray function

List<PlaceAutocompleteMatchedSubstring>? parsePlaceAutocompleteMatchedSubstringArray(
  1. List? data
)

Implementation

List<PlaceAutocompleteMatchedSubstring>?
    parsePlaceAutocompleteMatchedSubstringArray(List? data) {
  if (data == null) return null;

  final items = <PlaceAutocompleteMatchedSubstring>[];
  for (final d in data) {
    final item = PlaceAutocompleteMatchedSubstring.fromMap(d);
    items.add(item);
  }
  return items;
}