> ## 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 Work.ModelSerializer

Namespace: [VM.Managed.DAFUL.Pre](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre)\
Assembly: dfpredat.dll

This class is to serializer for Model.

```csharp theme={null}
public class Work.ModelSerializer
```

#### Inheritance

object ←
[Work.ModelSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.ModelSerializer.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ModelSerializer()

Initializes a new instance of the [ModelSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.ModelSerializer.md) class.

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

### ModelSerializer(string)

Initializes a new instance of the [ModelSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.ModelSerializer.md) class.

```csharp theme={null}
public ModelSerializer(string strModelPath)
```

#### Parameters

`strModelPath` string

The relative path of model.

## Properties

### Path

Gets or sets the path.

```csharp theme={null}
public string Path { get; set; }
```

#### Property Value

string

## Operators

### implicit operator Model(ModelSerializer)

Performs an implicit conversion from [ModelSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.ModelSerializer.md) to [Model](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Model.md).
Open the model file in work.

```csharp theme={null}
public static implicit operator Model(Work.ModelSerializer ser)
```

#### Parameters

`ser` [Work](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.md).[ModelSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.ModelSerializer.md)

The ModelSerializer.

#### Returns

[Model](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Model.md)

The result of the conversion.

### implicit operator ModelSerializer(Model)

Performs an implicit conversion from [Model](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Model.md) to [ModelSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.ModelSerializer.md).

```csharp theme={null}
public static implicit operator Work.ModelSerializer(Model model)
```

#### Parameters

`model` [Model](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Model.md)

The model.

#### Returns

[Work](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.md).[ModelSerializer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Pre.Work.ModelSerializer.md)

The result of the conversion.
