SerializeMode:
    | "initial"
    | "initial-with-defaults"
    | "project"
    | "preferences"
    | "all"

A flag that's passed into an item's toJSON() function that is used to serialize the item in different ways. Depending on the flag, some properties may be present in the serialization or filtered out.