@@ -610,10 +610,10 @@ export class ObjectSerializer {
610
610
*
611
611
* @param data - The value to serialize.
612
612
* @param type - The expected type name as a string.
613
- * @param format - Format hint (e.g. "date" or "date-time").
613
+ * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
614
614
* @returns A JSON-compatible representation of `data`.
615
615
*/
616
- public static serialize ( data : any , type : string , format : string ) : any {
616
+ public static serialize ( data : any , type : string , format : string = "" ) : any {
617
617
if ( data == undefined ) {
618
618
return data ;
619
619
} else if ( primitives . indexOf ( type . toLowerCase ( ) ) !== - 1 ) {
@@ -690,10 +690,10 @@ export class ObjectSerializer {
690
690
*
691
691
* @param data - The raw input to deserialize.
692
692
* @param type - The expected type name as a string.
693
- * @param format - Format hint (e.g. "date" or "date-time").
693
+ * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
694
694
* @returns A deserialized instance or value of `data`.
695
695
*/
696
- public static deserialize ( data : any , type : string , format : string ) : any {
696
+ public static deserialize ( data : any , type : string , format : string = "" ) : any {
697
697
// polymorphism may change the actual type.
698
698
type = ObjectSerializer . findCorrectType ( data , type ) ;
699
699
if ( data == undefined ) {
0 commit comments