API Reference > imodeljs-Quantity > Quantity > Format > parseFormatType parseFormatType MethodStatic This method parses input string that is typically extracted for persisted JSON data and validates that the string is a valid FormatType. Throws exception if not valid. parseFormatType(jsonObjType: string, formatName: string): FormatType Parameter Type Description jsonObjType string formatName string Returns - FormatType Defined in quantity/src/Formatter/Format.ts Line 228 Last Updated: 12 June, 2024