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

#import "HereSDKDemandPriceRange+Dictionary.h"
#import "NSString+Utilities.h"
#import "NSDecimalNumber+Validation.h"

@implementation HereSDKDemandPriceRange (Dictionary)

- (NSDictionary *)dictionary
{

    return @{ @"upperBound": (self.upperBound.isValid) ? self.upperBound : [NSNull null],
              @"lowerBound": (self.lowerBound.isValid) ? self.lowerBound : [NSNull null],
              @"currencyCode": [NSString hereSDK_utilities_emptyOrString:self.currency],
              };
}

@end
