fromJsonList method Null safety

List<Location> fromJsonList(
  1. List<Json>? list
)

Creates Location from Json

Implementation

static List<Location> fromJsonList(List<Json>? list) =>
    (list ?? []).map((json) => Location(json)).toList();