The identifier used to select the PGN creator function.
The fields to be passed to the creator function.
An optional destination number to be passed to the creator function.
The created PGN object, or undefined
if no creator is found for the given id
.
Creates a PGN object using the specified identifier and fields.
This function looks up a creator function based on the provided
id
from thepgnIdToCreator
mapping. If a matching creator is found, it is invoked with the givenfields
and optionaldst
parameter. If no creator is found for the givenid
, the function returnsundefined
.