toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "name": _name,
    "aliases": aliases,
    "categories": categories,
    "floor": floorIndex.toString(),
    "floorName": floorName,
    "building": building,
    "venue": venue,
    "type": type,
    "description": description,
    "externalId": externalId,
    "activeFrom": activeFrom,
    "activeTo": activeTo,
    "contact": contact,
    "fields": fields,
    "imageURL": imageUrl,
    "locationType": locationType,
    "anchor": anchor,
    "bookable": bookable,
    "locationSettings": locationSettings?.toJson(),
  };
}