Data.DBXJSONReflect.TJSONUnMarshal.RevertType
Delphi
procedure RevertType(recField: TRTTIField; Instance: Pointer; revEv: TReverterEvent; jsonFieldVal: TJSONValue); overload;
procedure RevertType(recField: TRTTIField; Instance: Pointer; revEv: TJSONInterceptor; jsonFieldVal: TJSONValue); overload;
C++
void __fastcall RevertType(System::Rtti::TRttiField* recField, void * Instance, TReverterEvent* revEv, System::Json::TJSONValue* jsonFieldVal)/* overload */;
void __fastcall RevertType(System::Rtti::TRttiField* recField, void * Instance, TJSONInterceptor* revEv, System::Json::TJSONValue* jsonFieldVal)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Data.DBXJSONReflect.pas Data.DBXJSONReflect.hpp |
Data.DBXJSONReflect | TJSONUnMarshal |
Description
Invokes the reverter event for a given field.
The field for which the reverter event is invoked will be populated with the value from its JSON representation.
recField
represents the TRttiField that will be populated.
Instance
is the address for the current object.
revEv
represents the user's reverter that will generate the field value.
jsonFieldVal
is the JSON value used to populate the user's value.