parsePlaceAutocompleteTerm function

List<PlaceAutocompleteTerm>? parsePlaceAutocompleteTerm(
  1. List? data
)

Implementation

List<PlaceAutocompleteTerm>? parsePlaceAutocompleteTerm(List? data) {
  if (data == null) return null;

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