fromJson static method
Initialize a LatLng from an [lat, lng] array.
Implementation
static LatLng? fromJson(Object? json) {
if (json == null) {
return null;
}
assert(json is List && json.length == 2);
final List<Object?> list = json as List<Object?>;
return LatLng(list[0]! as double, list[1]! as double);
}