Fundamentals
    Preparing search index...

    Class ValueMapJsonConverter

    JSON converter for ValueMap type.

    Note: ValueMap deserialization is handled separately by JsonSerializer.deserializeValueMapFromField based on field metadata to properly deserialize keys and values according to their types. The read() method is not used directly during normal deserialization.

    Hierarchy (View Summary)

    Index
    • Determines whether the converter can convert the specified type.

      Parameters

      Returns boolean

      True if the converter can convert the type; otherwise, false.

      Not called by JsonSerializer and scheduled for removal in the next major version. A converter is resolved by the type it declares through type, which is what this would answer anyway, so overriding it has no effect - register a converter per type instead. Wiring it into the lookup is not the plan either: it would force a scan of every converter on the path taken by every plain object, to serve a case a second registration already covers.

    • Sets the required helper functions from JsonSerializer to avoid circular dependencies.

      Parameters

      • serializeMapKey: (key: any) => string
      • convertTypesOnInstance: (instance: any) => any

      Returns void