OCPredefinedFuncWrapNil constructor

OCPredefinedFuncWrapNil()

Implementation

OCPredefinedFuncWrapNil()
    : super(
          functionName: 'wrapNil',
          isClassMethod: true,
          returnType: AstCustomType('id'),
          params: [Variable(AstCustomType('id'), 'value')],
          body: (depth) => [
                OneLine(
                    depth: depth + 1,
                    body:
                        'return (value == nil) || ((NSNull *)value == [NSNull null]) || [value isEqual:@"<null>"]? nil : value;')
              ]);