listFromJson static method

List<UserCoords> listFromJson(
  1. List? json
)

Get a list of UserCoords from a list of json

Implementation

static List<UserCoords> listFromJson(List<dynamic>? json) {
  return json == null
      ? <UserCoords>[]
      : json.map((value) => UserCoords.fromJson(value)).toList();
}