API Reference > imodeljs-common > Symbology > ColorDef > fromJSON fromJSON MethodStatic Create a new ColorDef from a json object. If the json object is a number, it is assumed to be a 0xTTBBGGRR value. fromJSON(json?: any): ColorDef Parameter Type Description json any Returns - ColorDef Defined in core/common/src/ColorDef.ts Line 303 Last Updated: 13 June, 2024