> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class ItemsSourceConverter<TObject>

Namespace: [VM.Models.Pre.Drivetrain.VehicleSimulator](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Drivetrain.VehicleSimulator)\
Assembly: VM.Models.Pre.Drivetrain.VehicleSimulator.dll

```csharp theme={null}
public class ItemsSourceConverter<TObject> : JsonConverter where TObject : class, IHasGuid
```

#### Type Parameters

`TObject`

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
JsonConverter ←
[ItemsSourceConverter\<TObject>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Drivetrain.VehicleSimulator.ItemsSourceConverter-1.md)

#### Inherited Members

JsonConverter.WriteJson(JsonWriter, object?, JsonSerializer),
JsonConverter.ReadJson(JsonReader, Type, object?, JsonSerializer),
JsonConverter.CanConvert(Type),
JsonConverter.CanRead,
JsonConverter.CanWrite

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ItemsSourceConverter()

```csharp theme={null}
public ItemsSourceConverter()
```

## Methods

### CanConvert(Type)

Determines whether this instance can convert the specified object type.

```csharp theme={null}
public override bool CanConvert(Type objectType)
```

#### Parameters

`objectType` [Type](https://learn.microsoft.com/dotnet/api/system.type)

Type of the object.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`true` if this instance can convert the specified object type; otherwise, `false`.

### ReadJson(JsonReader, Type, object, JsonSerializer)

Reads the JSON representation of the object.

```csharp theme={null}
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
```

#### Parameters

`reader` JsonReader

The JsonReader to read from.

`objectType` [Type](https://learn.microsoft.com/dotnet/api/system.type)

Type of the object.

`existingValue` [object](https://learn.microsoft.com/dotnet/api/system.object)

The existing value of object being read.

`serializer` JsonSerializer

The calling serializer.

#### Returns

[object](https://learn.microsoft.com/dotnet/api/system.object)

The object value.

### WriteJson(JsonWriter, object, JsonSerializer)

Writes the JSON representation of the object.

```csharp theme={null}
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
```

#### Parameters

`writer` JsonWriter

The JsonWriter to write to.

`value` [object](https://learn.microsoft.com/dotnet/api/system.object)

The value.

`serializer` JsonSerializer

The calling serializer.
