OptionalspecialFields: SpecialFields<Type>Optional pre-configured special fields
Creates a new empty instance of the type, with appropriate default values for primitives
A new empty value of the type
Parses a date string into a Date object, handling optional timezone annotations
The date string to parse
A Date object, null for null input, or undefined if parsing fails
Converts a Date to its JSON string representation
The date to convert
The JSON string, or null/undefined if input was null/undefined
Converts a JSON object to the appropriate format, handling id mapping, date conversion, old field renaming, and recursive child conversion
The JSON object to convert
Gets the id of a value, either from the configured id field or from _id
The value to get the id from
The id value, or null if not found
Gets an existing mapping from another type or creates one by automatic property matching
The source type name to map from
The type resolver used for property matching
The mapping helper, or undefined if no mapping could be created
Returns the configured id field name
The id field name or null if not configured
Initializes the handler and discovers date fields from the type hierarchy
The type hierarchy to initialize from
Checks whether a display template has been configured
True if a display template is set
Extracts a numeric value from the type for calculation purposes
The value to extract a number from
The numeric value or undefined if no numeric field is configured
Converts a value to its display string using the configured template
The value to convert to a display string
The display string
Converts a value to its JSON representation, handling id field and date serialization
The value to convert to JSON
A general data handler that manages an optional _id field and Date fields from / to json