factoryNotationFor()
Home > @gooddata/sdk-model > factoryNotationFor
factoryNotationFor() function
Returns a code for generating the provided input using convenience factory methods where possible.
Signature:
factoryNotationFor: (data: any, additionalConversion?: (data: any) => string | undefined) => string
Parameters
Parameter |
Type |
Description |
---|---|---|
data |
any |
data to return the generating code for |
additionalConversion |
(data: any) => string | undefined |
(Optional) specify other conversion that will be tried before falling back to standard stringify. return undefined when you want to fall back to standard stringify. |
Returns:
string