London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class InventoryConverter

Inheritance
System.Object
InventoryConverter
Namespace: EPiServer.Commerce.Shell.Serialization.Json
Assembly: EPiServer.Commerce.Shell.dll
Version: 13.30.0
Syntax
public class InventoryConverter : JsonConverter

Constructors

InventoryConverter(IWarehouseRepository)

Declaration
public InventoryConverter(IWarehouseRepository warehouseRepository)
Parameters
Type Name Description
IWarehouseRepository warehouseRepository

Methods

CanConvert(Type)

Declaration
public override bool CanConvert(Type objectType)
Parameters
Type Name Description
System.Type objectType
Returns
Type Description
System.Boolean

ReadJson(JsonReader, Type, Object, JsonSerializer)

Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type Name Description
Newtonsoft.Json.JsonReader reader
System.Type objectType
System.Object existingValue
Newtonsoft.Json.JsonSerializer serializer
Returns
Type Description
System.Object

WriteJson(JsonWriter, Object, JsonSerializer)

Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type Name Description
Newtonsoft.Json.JsonWriter writer
System.Object value
Newtonsoft.Json.JsonSerializer serializer