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.
Fieldrepresents the TRttiField instance associated with the object's field to be reverted.
Datarepresents the current object instance.
Fieldis the field name where a JSONReverter attribute was defined.