toMap method
Implementation
Map<String, dynamic> toMap() => {
'coordinate': {
'latitude': coordinate.latitude,
'longitude': coordinate.longitude,
},
'buildingIdentifier': buildingIdentifier,
'floorIdentifier': floorIdentifier,
'bearing': bearing?.toMap(),
'accuracy': accuracy,
};