LatestLocation.fromMap constructor
LatestLocation.fromMap(- Map map
)
Implementation
LatestLocation.fromMap(Map map) : assert(map != null) {
location = map['location'] == null ? null : LatLng.fromMap(map['location']);
if (map['coordType'] != null) {
int value = map['coordType'] as int;
if (value >= 0 && value <= 2) {
coordType = CoordType.values[value];
}
}
floor = map['floor'];
distance = map['distance'];
objectName = map['objectName'];
columns = map['columns'] == null
? null
: Map<String, String>.from(map['columns']);
radius = map['radius'];
locTime = map['locTime'];
direction = map['direction'];
speed = map['speed'];
height = map['height'];
}