Skip to content

Commit 8710829

Browse files
committed
Add missing change
1 parent 0ca05fc commit 8710829

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/typings/balancePlatform/objectSerializer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,10 @@ export class ObjectSerializer {
610610
*
611611
* @param data - The value to serialize.
612612
* @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.
614614
* @returns A JSON-compatible representation of `data`.
615615
*/
616-
public static serialize(data: any, type: string, format: string): any {
616+
public static serialize(data: any, type: string, format: string = ""): any {
617617
if (data == undefined) {
618618
return data;
619619
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
@@ -690,10 +690,10 @@ export class ObjectSerializer {
690690
*
691691
* @param data - The raw input to deserialize.
692692
* @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.
694694
* @returns A deserialized instance or value of `data`.
695695
*/
696-
public static deserialize(data: any, type: string, format: string): any {
696+
public static deserialize(data: any, type: string, format: string = ""): any {
697697
// polymorphism may change the actual type.
698698
type = ObjectSerializer.findCorrectType(data, type);
699699
if (data == undefined) {

0 commit comments

Comments
 (0)