LookAtModel.fromMap constructor

LookAtModel.fromMap(
  1. Map<String, dynamic> map
)

Returns a LookAtModel from the given map.

Implementation

factory LookAtModel.fromMap(Map<String, dynamic> map) {
  return LookAtModel(
      longitude: map['lng'],
      latitude: map['lat'],
      altitude: map['altitude'],
      range: map['range'],
      tilt: map['tilt'],
      heading: map['heading'],
      altitudeMode: map['altitudeMode']);
}