Skip to main content

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.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors​

ProductSerializer​

public ProductSerializer(IConfiguration configuration, ProductJsonConverter productJsonConverter)

Methods​

Serialize​

public string Serialize(Product product)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Returns​

System.String

SerializeItem​

public string SerializeItem(Item modelComponent)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Items.ItemmodelComponent
Returns​

System.String

DeserializeItem​

public Item DeserializeItem(string json)
Parameters​
TypeNameDescription
System.Stringjson
Returns​

Aurigma.DesignAtoms.Model.Items.Item

Deserialize​

public Product Deserialize(JObject json)
Parameters​
TypeNameDescription
Newtonsoft.Json.Linq.JObjectjson
Returns​

Aurigma.DesignAtoms.Model.Product

Deserialize​

public Product Deserialize(string json)
Parameters​
TypeNameDescription
System.Stringjson
Returns​

Aurigma.DesignAtoms.Model.Product

Was this page helpful?