Class TemplateVariableTypeMapper
Version: 3.2
Template variable type mapper.
Inheritance
object
TemplateVariableTypeMapper
Namespace: StylelabsStylelabs.MSdkMappers
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public static class TemplateVariableTypeMapperMethods
Map(TemplateVariableType?)
Maps a TemplateVariableType to a string.
Declaration
RequestResponse
public static string Map(TemplateVariableType? type)Parameters
| Type | Name | Description |
|---|---|---|
| TemplateVariableType | type |
The TemplateVariableType to map. |
Returns
| Type | Description |
|---|---|
| string |
A string. |
Exceptions
| Type | Condition |
|---|---|
| InternalException |
If the TemplateVariableType could be mapped. |
Map(string)
Maps a string to a TemplateVariableType.
Declaration
RequestResponse
public static TemplateVariableType? Map(string type)Parameters
| Type | Name | Description |
|---|---|---|
| string | type |
The string type to map. |
Returns
| Type | Description |
|---|---|
| TemplateVariableType |
The TemplateVariableType. |
Exceptions
| Type | Condition |
|---|---|
| InternalException |
If the string could be map. |