private string IsExistsPropertyCodegen(ICodegenContext context)
 {
     return(context.AddMethod(typeof(bool), typeof(GenericRecord), "record", GetType())
            .DeclareVar(typeof(Field), "field", ExprDotMethodChain(Ref("record")).AddNoParam("GetSchema").AddWConst("GetField", _fieldTop))
            .IfRefNullReturnFalse("field")
            .DeclareVar(typeof(Object), "inner", ExprDotMethod(Ref("record"), "get", Constant(_fieldTop)))
            .IfRefNotTypeReturnConst("inner", typeof(GenericRecord), false)
            .MethodReturn(_getter.CodegenUnderlyingExists(Cast(typeof(GenericRecord), Ref("inner")), context)));
 }