react-native-navigation的迁移库

DictionaryParser.m 253B

1234567891011
  1. #import "DictionaryParser.h"
  2. #import "NullDictionary.h"
  3. @implementation DictionaryParser
  4. + (Dictionary *)parse:(NSDictionary *)json key:(NSString *)key {
  5. return json[key] ? [[Dictionary alloc] initWithValue:json[key]] : [NullDictionary new];
  6. }
  7. @end