react-native-navigation的迁移库

BoolParser.m 217B

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