Function serialize

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

    Parameters

    • Optional key: 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

    Note

    • Requires "experimentalDecorators": true in tsconfig.json