You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* If you decide to use a custom converter, make sure this class implements the interface JsonCustomConvert from this package.
33
33
*
34
-
* @paramjsonProperty the key in the expected JSON object
34
+
* @paramjsonPropertyName optional param (default: classPropertyName) the property name in the expected JSON object
35
35
* @param conversionOption optional param (default: undefined), should be either the expected type (String|Boolean|Number|etc) or a custom converter class implementing JsonCustomConvert
36
36
* @param isOptional optional param (default: false), if true, the json property does not have to be present in the object
Copy file name to clipboardExpand all lines: src/json2typescript/json-convert-decorators.ts
+17-7Lines changed: 17 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -30,38 +30,48 @@ export function JsonObject(target: any) {
30
30
*
31
31
* If you decide to use a custom converter, make sure this class implements the interface JsonCustomConvert from this package.
32
32
*
33
-
* @paramjsonProperty the key in the expected JSON object
33
+
* @paramjsonPropertyName optional param (default: classPropertyName) the property name in the expected JSON object
34
34
* @param conversionOption optional param (default: undefined), should be either the expected type (String|Boolean|Number|etc) or a custom converter class implementing JsonCustomConvert
35
35
* @param isOptional optional param (default: false), if true, the json property does not have to be present in the object
0 commit comments