fromJson static method

LatLng? fromJson(
  1. List<Object?>? json
)

Initialize a LatLng from an [lat, lng] array.

Implementation

static LatLng? fromJson(List<Object?>? json) {
  if (json == null) {
    return null;
  }
  assert(json.length == 2);
  return LatLng(json[0]! as double, json[1]! as double);
}