1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export function getPathStringFromParameter(parameter) {
|
9 | return getPathStringFromParameterPath(parameter.parameterPath, parameter.mapper);
|
10 | }
|
11 | export function getPathStringFromParameterPath(parameterPath, mapper) {
|
12 | var result;
|
13 | if (typeof parameterPath === "string") {
|
14 | result = parameterPath;
|
15 | }
|
16 | else if (Array.isArray(parameterPath)) {
|
17 | result = parameterPath.join(".");
|
18 | }
|
19 | else {
|
20 | result = mapper.serializedName;
|
21 | }
|
22 | return result;
|
23 | }
|
24 |
|
\ | No newline at end of file |