LatLng.fromJson constructor
LatLng.fromJson(
- Object? j
Implementation
factory LatLng.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return LatLng(
latitude: switch (json['latitude']) {
null => 0,
Object $1 => decodeDouble($1),
},
longitude: switch (json['longitude']) {
null => 0,
Object $1 => decodeDouble($1),
},
);
}