Skip to content

TPropertyMap

Collection of property mapping items

Declaration

Source position: fpjsontopas.pp line 60

type

  TPropertyMap = class(TCollection)
  public
    function AddPath : TPropertyMapItem;
    function IndexOfPath : Integer;
    function FindPath : TPropertyMapItem;
    property Map[Aindex : Integer]: TPropertyMapItem; {rw}
  end;

Description

TPropertyMap is a collection that holds TPropertyMapItem instances. It provides methods to manage mappings between JSON paths and Pascal type information during code generation.

The collection allows you to customize how specific JSON properties are converted to Pascal code, override type names, and control the generation process for individual properties.

Properties

Member Visibility Description
Map public Indexed access to property mapping items
See all Properties

Methods

Member Visibility Description
AddPath public Adds a new property mapping for the specified path
FindPath public Finds the property mapping for the specified path
IndexOfPath public Returns the index of the mapping for the specified path
See all Methods