//
 /***************************************************************
 * Copyright © 2017 HERE Global B.V. All rights reserved. *
 **************************************************************/

#import "HereSDKDemandLocation+Dictionary.h"
#import "HereSDKAddressData+Dictionary.h"
#import "NSString+Utilities.h"
#import "CLLocation+Dictionary.h"

@implementation HereSDKDemandLocation (Dictionary)

- (NSDictionary *)dictionary
{
    return @{ @"location": self.point.dictionary,
              @"address": (self.address) ? self.address.dictionary : [NSNull null],
              @"description": [NSString hereSDK_utilities_emptyOrString:self.freeText],
              };
}

@end
