Data.DBXJSONReflect.TJSONUnMarshal.FieldReverter

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FieldReverter(Field: TRTTIField): TJSONInterceptor; overload;
function FieldReverter(Data: TObject; const Field: string): TJSONInterceptor; overload;

C++

TJSONInterceptor* __fastcall FieldReverter(System::Rtti::TRttiField* Field)/* overload */;
TJSONInterceptor* __fastcall FieldReverter(System::TObject* Data, const System::UnicodeString Field)/* overload */;

Properties

Type Visibility Source Unit Parent
function protected
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Data.DBXJSONReflect TJSONUnMarshal

Description

Returns the reverter defined by a JSONReverter attribute, if any.

FieldReverter returns the TReverterEvent instance defined by the attribute, and nil/NULL (Delphi/C++) if there is no JSONReverter attribute.

  • Field represents the TRttiField instance associated with the object's field to be reverted.
  • Data represents the current object instance.
  • Field is the field name where a JSONReverter attribute was defined.

See Also