react-native-navigation的迁移库

IntNumberParser.m 247B

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