toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> map = {
    "buildingIdentifier": buildingIdentifier,
    "from": from.toMap(),
    "to": to.toMap(),
  };
  if (minimizeFloorChanges != null) {
    map['minimizeFloorChanges'] = minimizeFloorChanges;
  }
  if (poiToIdentifier != null) {
    map['poiToIdentifier'] = poiToIdentifier;
  }
  if (bearingFrom != null) {
    map['bearingFrom'] = bearingFrom?.toMap();
  }
  if (accessibilityMode != null) {
    map['accessibilityMode'] = accessibilityMode!.name;
  }
  return map;
}