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