26 lines
715 B
Objective-C
26 lines
715 B
Objective-C
//
|
|
// NSDictionary+EQNExtensions.h
|
|
// Earthquake Network
|
|
//
|
|
// Created by Andrea Busi on 03/10/2020.
|
|
// Copyright © 2020 Earthquake Network. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface NSDictionary (EQNExtensions)
|
|
|
|
/// Returns a string representation of the current dictionary
|
|
/// @param prettyPrint If YES, uses white space and indentation to make the output more readable.
|
|
- (NSString *)eqn_jsonStringWithPrettyPrint:(BOOL)prettyPrint;
|
|
|
|
/// Returns the value associated with a given key if exists, nil otherwise.
|
|
/// @param aKey The key for which to return the corresponding value
|
|
- (nullable id)eqn_safeObjectForKey:(id)aKey;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|