Data.DBXJSONReflect.TJSONUnMarshal.FieldReverter
Delphi
function FieldReverter(Field: TRTTIField): TJSONInterceptor; overload;
function FieldReverter(Data: TObject; Field: string): TJSONInterceptor; overload;
C++
TJSONInterceptor* __fastcall FieldReverter(System::Rtti::TRttiField* Field)/* overload */;
TJSONInterceptor* __fastcall FieldReverter(System::TObject* Data, 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.