Class ProductSerializer
Namespace: Aurigma.DesignAtoms.Serialization.Json.Product
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ProductSerializer : IProductSerializer
Inheritance: System.Object -> ProductSerializer
Implements
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
ProductSerializer
public ProductSerializer(IConfiguration configuration, ProductJsonConverter productJsonConverter)
Methods
Serialize
public string Serialize(Product product)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product |
Returns
System.String
SerializeItem
public string SerializeItem(Item modelComponent)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Items.Item | modelComponent |
Returns
System.String
DeserializeItem
public Item DeserializeItem(string json)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | json |
Returns
Aurigma.DesignAtoms.Model.Items.Item
Deserialize
public Product Deserialize(JObject json)
Parameters
| Type | Name | Description |
|---|---|---|
Newtonsoft.Json.Linq.JObject | json |
Returns
Aurigma.DesignAtoms.Model.Product
Deserialize
public Product Deserialize(string json)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | json |