getProperty method

Object? getProperty(
  1. MPLocationPropertyNames key
)

Fetch a property from the location with a MPLocationPropertyNames key

Implementation

Object? getProperty(MPLocationPropertyNames key) {
  switch (key) {
    case MPLocationPropertyNames.name:
      return _properties?.name;
    case MPLocationPropertyNames.aliases:
      return _properties?.aliases;
    case MPLocationPropertyNames.categories:
      return _properties?.categories;
    case MPLocationPropertyNames.floor:
      return _properties?.floorIndex;
    case MPLocationPropertyNames.floorName:
      return _properties?.floorName;
    case MPLocationPropertyNames.building:
      return _properties?.building;
    case MPLocationPropertyNames.venue:
      return _properties?.venue;
    case MPLocationPropertyNames.type:
      return _properties?.type;
    case MPLocationPropertyNames.description:
      return _properties?.description;
    case MPLocationPropertyNames.roomId:
    case MPLocationPropertyNames.externalId:
      return _properties?.externalId;
    case MPLocationPropertyNames.activeFrom:
      return _properties?.activeFrom;
    case MPLocationPropertyNames.activeTo:
      return _properties?.activeTo;
    case MPLocationPropertyNames.contact:
      return _properties?.contact;
    case MPLocationPropertyNames.fields:
      return _properties?.fields;
    case MPLocationPropertyNames.imageURL:
      return _properties?.imageUrl;
    case MPLocationPropertyNames.locationType:
      return _properties?.locationType;
    case MPLocationPropertyNames.anchor:
      return _properties?.anchor;
    case MPLocationPropertyNames.bookable:
      return _properties?.bookable;
  }
}