anchor.diff:      _buffer.writeln('=> <String, dynamic>{');
   
       _buffer.writeAll(fields.map((field) {
  -      var value = '${_safeNameAccess(field)}: ${_serializeField(field)}';
  +      var value =
  +          '${_safeNameAccess(field)}: ${_serializeField(field, field.name)}';
         return '        $value';
       }), ',\n');
   
  
positive.code:     _buffer.writeln('};');
    }
  
    String _serializeField(FieldElement field, {String accessOverride}) {
      accessOverride ??= field.name;
  
      try {
        return _getHelperContext(field).serialize(field.type, accessOverride);
      } on UnsupportedTypeError catch (e) {
        throw _createInvalidGenerationError('toJson', field, e);
      }
  
negative.code:       var valueAccess = '_v.${field.name}';
        _buffer.writeln('''
          case ${_safeNameAccess(field)}:
            return ${_serializeField(field, valueAccess)};''');
      }
  
      _buffer.writeln('''
  