Skip to content

Commit 50da862

Browse files
committed
Add missing change
1 parent 8710829 commit 50da862

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/typings/checkout/objectSerializer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -756,10 +756,10 @@ export class ObjectSerializer {
756756
*
757757
* @param data - The value to serialize.
758758
* @param type - The expected type name as a string.
759-
* @param format - Format hint (e.g. "date" or "date-time").
759+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
760760
* @returns A JSON-compatible representation of `data`.
761761
*/
762-
public static serialize(data: any, type: string, format: string): any {
762+
public static serialize(data: any, type: string, format: string = ""): any {
763763
if (data == undefined) {
764764
return data;
765765
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
@@ -836,10 +836,10 @@ export class ObjectSerializer {
836836
*
837837
* @param data - The raw input to deserialize.
838838
* @param type - The expected type name as a string.
839-
* @param format - Format hint (e.g. "date" or "date-time").
839+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
840840
* @returns A deserialized instance or value of `data`.
841841
*/
842-
public static deserialize(data: any, type: string, format: string): any {
842+
public static deserialize(data: any, type: string, format: string = ""): any {
843843
// polymorphism may change the actual type.
844844
type = ObjectSerializer.findCorrectType(data, type);
845845
if (data == undefined) {

0 commit comments

Comments
 (0)