fromMap static method
Deserializes MFCameraPosition from a map.
Mainly for internal use.
Implementation
static MFCameraPosition? fromMap(Object? json) {
if (json == null || !(json is Map<dynamic, dynamic>)) {
return null;
}
final MFLatLng? target = MFLatLng.fromJson(json['target']);
if (target == null) {
return null;
}
return MFCameraPosition(
bearing: json['bearing'],
target: target,
tilt: json['tilt'],
zoom: json['zoom'],
);
}