@@ -134,10 +134,10 @@ export class ObjectSerializer {
134
134
*
135
135
* @param data - The value to serialize.
136
136
* @param type - The expected type name as a string.
137
- * @param format - Format hint (e.g. "date" or "date-time").
137
+ * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
138
138
* @returns A JSON-compatible representation of `data`.
139
139
*/
140
- public static serialize ( data : any , type : string , format : string ) : any {
140
+ public static serialize ( data : any , type : string , format : string = "" ) : any {
141
141
if ( data == undefined ) {
142
142
return data ;
143
143
} else if ( primitives . indexOf ( type . toLowerCase ( ) ) !== - 1 ) {
@@ -214,10 +214,10 @@ export class ObjectSerializer {
214
214
*
215
215
* @param data - The raw input to deserialize.
216
216
* @param type - The expected type name as a string.
217
- * @param format - Format hint (e.g. "date" or "date-time").
217
+ * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
218
218
* @returns A deserialized instance or value of `data`.
219
219
*/
220
- public static deserialize ( data : any , type : string , format : string ) : any {
220
+ public static deserialize ( data : any , type : string , format : string = "" ) : any {
221
221
// polymorphism may change the actual type.
222
222
type = ObjectSerializer . findCorrectType ( data , type ) ;
223
223
if ( data == undefined ) {
0 commit comments