Skip to main content
RadarChain represents the chain of a place. Learn more about Places.

Properties

slug
String
required
The unique ID of the chain. For a full list of chains, see Place Chains.
name
String
required
The name of the chain. For a full list of chains, see Place Chains.
externalId
String
The external ID of the chain.
metadata
NSDictionary
The optional set of custom key-value pairs for the chain.

Methods

arrayForChains

+ (NSArray<NSDictionary *> *_Nullable)arrayForChains:(NSArray<RadarChain *> *_Nullable)chains;
Converts an array of RadarChain objects to an array of dictionaries.

dictionaryValue

- (NSDictionary *_Nonnull)dictionaryValue;
Returns the dictionary representation of the chain.

Example

let place: RadarPlace = event.place
if let chain = place.chain {
    let chainSlug = chain.slug
    let chainName = chain.name
    let chainExternalId = chain.externalId
    let chainMetadata = chain.metadata
    
    if chainSlug == "starbucks" {
        // place is a Starbucks
    }
}
RadarPlace *place = event.place;
RadarChain *chain = place.chain;
if (chain) {
    NSString *chainSlug = chain.slug;
    NSString *chainName = chain.name;
    NSString *chainExternalId = chain.externalId;
    NSDictionary *chainMetadata = chain.metadata;
    
    if ([chainSlug isEqualToString:@"starbucks"]) {
        // place is a Starbucks
    }
}

Build docs developers (and LLMs) love