react-native-navigation的迁移库

DoubleParser.m 229B

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