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

# Parameter< Type > Struct Template Reference

Part of [MOP json](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__json)

This class provides functions to work with a singleton parameter of the givien type.

## Static Public Member Functions

| Type | Name |
| - | - |
| static Type | [load](#ae504199e2178abdd49fea50a135f9a2a) ([JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) root) Static function that deserializaes the value of a parameter with the given type. |
| static [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) | [save](#a41136433d53167aa64a66be80945d814) (Type t, string="") Static function that takes an instance of a type and renders a Json representation. It uses the default range given in the SerializationTraits. |
| static [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) | [save](#a6ea2eacd9f701a26520d0a2b26463782) (Type t, [CreateRangeBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_create_range_base.md) range, string="") Static function that takes an instance of a type and renders a Json representation. It uses the specific range given by the user. |
| static [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) | [save](#ab58ca861d04e5ae6e2545bbeab134ee8) (Type t, Type min\_value, Type max\_value, Type auto\_value, string="") Static function that takes an instance of a type and renders a Json representation. It uses the specific min, max and auto values given by the user. |

## Detailed Description

#### template\<typename Type>  struct Parameter\< Type >

This class provides functions to work with a singleton parameter of the givien type.

**Template Parameters**

| Name | Description |
| - | - |
| T | The type of the parameter |

## Member Function Documentation

### load()

```cpp theme={null}
static Type load(JsonValue root)
```

`static`

Static function that deserializaes the value of a parameter with the given type.

**Parameters**

| Name | Description |
| - | - |
| root | The Json object contained the serialized data |

**Returns**

An instance of Type containing the value present in the serialization

### save() \[1/3]

```cpp theme={null}
static JsonValue save(
    Type t,
    string = ""
)
```

`static`

Static function that takes an instance of a type and renders a Json representation. It uses the default range given in the SerializationTraits.

**Parameters**

| Name | Description |
| - | - |
| t | The instance to serialize |
| display\_name | The name to display in the GUI |

**Returns**

The Json serialization

### save() \[2/3]

```cpp theme={null}
static JsonValue save(
    Type t,
    CreateRangeBase range,
    string = ""
)
```

`static`

Static function that takes an instance of a type and renders a Json representation. It uses the specific range given by the user.

**Parameters**

| Name | Description |
| - | - |
| t | The instance to serialize |
| range | the custom range to use for this instance |
| display\_name | The name to display in the GUI |

**Returns**

The Json serialization

### save() \[3/3]

```cpp theme={null}
static JsonValue save(
    Type t,
    Type min_value,
    Type max_value,
    Type auto_value,
    string = ""
)
```

`static`

Static function that takes an instance of a type and renders a Json representation. It uses the specific min, max and auto values given by the user.

**Parameters**

| Name | Description |
| - | - |
| t | The instance to serialize |
| min | The custom minimum value for the range to use for this instance |
| max | The custom maximum value for the range to use for this instance |
| auto | The custom auto value to use for this instance |
| display\_name | The name to display in the GUI |

**Returns**

The Json serialization
