REST.JsonReflect.JSONBooleanAttributeValue
Delphi
function JSONBooleanAttributeValue(rttiObject: TRttiNamedObject; AttributeClass: TClass; DefaultValue: Boolean = false): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall JSONBooleanAttributeValue(System::Rtti::TRttiNamedObject* rttiObject, System::TClass AttributeClass, bool DefaultValue = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | REST.JsonReflect.pas REST.JsonReflect.hpp |
REST.JsonReflect | REST.JsonReflect |
Description
Returns the value of a boolean attribute of class AttributeClass
in rttiObject
or DefaultValue
if no attribute of class AttributeClass
is set in the rttiObject
.
AttributeClass
must be a subclass of JSONBooleanAttribute.