TYPE
JsonSerializableAttribute
Identifies a type for the JSON source generator.
Formal Syntax & Structure
csharp syntaxcsharp
[JsonSerializable(typeof(StockItem))]Working Example
Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.[JsonSerializable(typeof(StockItem))]