fromJson method

LatLng fromJson (
  1. dynamic json
)

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

Implementation

static LatLng fromJson(dynamic json) {
  if (json == null) {
    return null;
  }
  return LatLng(json[0], json[1]);
}