Function serialize

  • Decorator to mark a class property as serializable using the Serialization class.

    Parameters

    • Optionalkey: string

      The key to use when serializing the property. If not provided, the property name is used (for this make sure the property name is not mangled during minification).

    Returns PropertyDecorator

    • Requires "experimentalDecorators": true in tsconfig.json