forked from loafle/openapi-generator-original
[typescript-fetch][Fix] oneOf
models are generated without ...ToJSONTyped
functions but models referencing still try to import (#20046)
* Fix #19858 * re-generate the samples
This commit is contained in:
parent
28e02fc1a2
commit
2c38d0de35
@ -108,11 +108,11 @@ export function {{classname}}FromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
{{/hasVars}}
|
{{/hasVars}}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function {{classname}}ToJSON(json: any): {{classname}} {
|
export function {{classname}}ToJSON(json: any): {{classname}} {
|
||||||
return {{classname}}ToJSONTyped(json, false);
|
return {{classname}}ToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function {{classname}}ToJSONTyped(value?: {{#hasReadOnly}}Omit<{{classname}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{classname}}{{/hasReadOnly}} | null, ignoreDiscriminator: boolean = false): any {
|
export function {{classname}}ToJSONTyped(value?: {{#hasReadOnly}}Omit<{{classname}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{classname}}{{/hasReadOnly}} | null, ignoreDiscriminator: boolean = false): any {
|
||||||
{{#hasVars}}
|
{{#hasVars}}
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
|
@ -41,7 +41,11 @@ export function {{classname}}FromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
{{/discriminator}}
|
{{/discriminator}}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function {{classname}}ToJSON(value?: {{classname}} | null): any {
|
export function {{classname}}ToJSON(json: any): any {
|
||||||
|
return {{classname}}ToJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function {{classname}}ToJSONTyped(value?: {{classname}} | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -80,11 +80,11 @@ export function AbstractUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AbstractUserDtoToJSON(json: any): AbstractUserDto {
|
export function AbstractUserDtoToJSON(json: any): AbstractUserDto {
|
||||||
return AbstractUserDtoToJSONTyped(json, false);
|
return AbstractUserDtoToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AbstractUserDtoToJSONTyped(value?: AbstractUserDto | null, ignoreDiscriminator: boolean = false): any {
|
export function AbstractUserDtoToJSONTyped(value?: AbstractUserDto | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function BranchDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BranchDtoToJSON(json: any): BranchDto {
|
export function BranchDtoToJSON(json: any): BranchDto {
|
||||||
return BranchDtoToJSONTyped(json, false);
|
return BranchDtoToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BranchDtoToJSONTyped(value?: BranchDto | null, ignoreDiscriminator: boolean = false): any {
|
export function BranchDtoToJSONTyped(value?: BranchDto | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -51,11 +51,11 @@ export function InternalAuthenticatedUserDtoFromJSONTyped(json: any, ignoreDiscr
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function InternalAuthenticatedUserDtoToJSON(json: any): InternalAuthenticatedUserDto {
|
export function InternalAuthenticatedUserDtoToJSON(json: any): InternalAuthenticatedUserDto {
|
||||||
return InternalAuthenticatedUserDtoToJSONTyped(json, false);
|
return InternalAuthenticatedUserDtoToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function InternalAuthenticatedUserDtoToJSONTyped(value?: InternalAuthenticatedUserDto | null, ignoreDiscriminator: boolean = false): any {
|
export function InternalAuthenticatedUserDtoToJSONTyped(value?: InternalAuthenticatedUserDto | null, ignoreDiscriminator: boolean = false): any {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,11 +51,11 @@ export function RemoteAuthenticatedUserDtoFromJSONTyped(json: any, ignoreDiscrim
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function RemoteAuthenticatedUserDtoToJSON(json: any): RemoteAuthenticatedUserDto {
|
export function RemoteAuthenticatedUserDtoToJSON(json: any): RemoteAuthenticatedUserDto {
|
||||||
return RemoteAuthenticatedUserDtoToJSONTyped(json, false);
|
return RemoteAuthenticatedUserDtoToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function RemoteAuthenticatedUserDtoToJSONTyped(value?: RemoteAuthenticatedUserDto | null, ignoreDiscriminator: boolean = false): any {
|
export function RemoteAuthenticatedUserDtoToJSONTyped(value?: RemoteAuthenticatedUserDto | null, ignoreDiscriminator: boolean = false): any {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,11 +56,11 @@ export function ClubFromJSONTyped(json: any, ignoreDiscriminator: boolean): Club
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClubToJSON(json: any): Club {
|
export function ClubToJSON(json: any): Club {
|
||||||
return ClubToJSONTyped(json, false);
|
return ClubToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClubToJSONTyped(value?: Club | null, ignoreDiscriminator: boolean = false): any {
|
export function ClubToJSONTyped(value?: Club | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function OwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Own
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OwnerToJSON(json: any): Owner {
|
export function OwnerToJSON(json: any): Owner {
|
||||||
return OwnerToJSONTyped(json, false);
|
return OwnerToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OwnerToJSONTyped(value?: Owner | null, ignoreDiscriminator: boolean = false): any {
|
export function OwnerToJSONTyped(value?: Owner | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -56,11 +56,11 @@ export function ClubFromJSONTyped(json: any, ignoreDiscriminator: boolean): Club
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClubToJSON(json: any): Club {
|
export function ClubToJSON(json: any): Club {
|
||||||
return ClubToJSONTyped(json, false);
|
return ClubToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClubToJSONTyped(value?: Omit<Club, 'owner'> | null, ignoreDiscriminator: boolean = false): any {
|
export function ClubToJSONTyped(value?: Omit<Club, 'owner'> | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function OwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Own
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OwnerToJSON(json: any): Owner {
|
export function OwnerToJSON(json: any): Owner {
|
||||||
return OwnerToJSONTyped(json, false);
|
return OwnerToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OwnerToJSONTyped(value?: Owner | null, ignoreDiscriminator: boolean = false): any {
|
export function OwnerToJSONTyped(value?: Owner | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function AdditionalPropertiesClassFromJSONTyped(json: any, ignoreDiscrimi
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AdditionalPropertiesClassToJSON(json: any): AdditionalPropertiesClass {
|
export function AdditionalPropertiesClassToJSON(json: any): AdditionalPropertiesClass {
|
||||||
return AdditionalPropertiesClassToJSONTyped(json, false);
|
return AdditionalPropertiesClassToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AdditionalPropertiesClassToJSONTyped(value?: AdditionalPropertiesClass | null, ignoreDiscriminator: boolean = false): any {
|
export function AdditionalPropertiesClassToJSONTyped(value?: AdditionalPropertiesClass | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -65,11 +65,11 @@ export function AllOfWithSingleRefFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AllOfWithSingleRefToJSON(json: any): AllOfWithSingleRef {
|
export function AllOfWithSingleRefToJSON(json: any): AllOfWithSingleRef {
|
||||||
return AllOfWithSingleRefToJSONTyped(json, false);
|
return AllOfWithSingleRefToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AllOfWithSingleRefToJSONTyped(value?: AllOfWithSingleRef | null, ignoreDiscriminator: boolean = false): any {
|
export function AllOfWithSingleRefToJSONTyped(value?: AllOfWithSingleRef | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -66,11 +66,11 @@ export function AnimalFromJSONTyped(json: any, ignoreDiscriminator: boolean): An
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AnimalToJSON(json: any): Animal {
|
export function AnimalToJSON(json: any): Animal {
|
||||||
return AnimalToJSONTyped(json, false);
|
return AnimalToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AnimalToJSONTyped(value?: Animal | null, ignoreDiscriminator: boolean = false): any {
|
export function AnimalToJSONTyped(value?: Animal | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function ArrayOfArrayOfNumberOnlyFromJSONTyped(json: any, ignoreDiscrimin
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ArrayOfArrayOfNumberOnlyToJSON(json: any): ArrayOfArrayOfNumberOnly {
|
export function ArrayOfArrayOfNumberOnlyToJSON(json: any): ArrayOfArrayOfNumberOnly {
|
||||||
return ArrayOfArrayOfNumberOnlyToJSONTyped(json, false);
|
return ArrayOfArrayOfNumberOnlyToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ArrayOfArrayOfNumberOnlyToJSONTyped(value?: ArrayOfArrayOfNumberOnly | null, ignoreDiscriminator: boolean = false): any {
|
export function ArrayOfArrayOfNumberOnlyToJSONTyped(value?: ArrayOfArrayOfNumberOnly | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function ArrayOfNumberOnlyFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ArrayOfNumberOnlyToJSON(json: any): ArrayOfNumberOnly {
|
export function ArrayOfNumberOnlyToJSON(json: any): ArrayOfNumberOnly {
|
||||||
return ArrayOfNumberOnlyToJSONTyped(json, false);
|
return ArrayOfNumberOnlyToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ArrayOfNumberOnlyToJSONTyped(value?: ArrayOfNumberOnly | null, ignoreDiscriminator: boolean = false): any {
|
export function ArrayOfNumberOnlyToJSONTyped(value?: ArrayOfNumberOnly | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -70,11 +70,11 @@ export function ArrayTestFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ArrayTestToJSON(json: any): ArrayTest {
|
export function ArrayTestToJSON(json: any): ArrayTest {
|
||||||
return ArrayTestToJSONTyped(json, false);
|
return ArrayTestToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ArrayTestToJSONTyped(value?: ArrayTest | null, ignoreDiscriminator: boolean = false): any {
|
export function ArrayTestToJSONTyped(value?: ArrayTest | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -84,11 +84,11 @@ export function CapitalizationFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CapitalizationToJSON(json: any): Capitalization {
|
export function CapitalizationToJSON(json: any): Capitalization {
|
||||||
return CapitalizationToJSONTyped(json, false);
|
return CapitalizationToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CapitalizationToJSONTyped(value?: Capitalization | null, ignoreDiscriminator: boolean = false): any {
|
export function CapitalizationToJSONTyped(value?: Capitalization | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -56,11 +56,11 @@ export function CatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cat {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CatToJSON(json: any): Cat {
|
export function CatToJSON(json: any): Cat {
|
||||||
return CatToJSONTyped(json, false);
|
return CatToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CatToJSONTyped(value?: Cat | null, ignoreDiscriminator: boolean = false): any {
|
export function CatToJSONTyped(value?: Cat | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -56,11 +56,11 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSON(json: any): Category {
|
export function CategoryToJSON(json: any): Category {
|
||||||
return CategoryToJSONTyped(json, false);
|
return CategoryToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -58,11 +58,11 @@ export function ChildWithNullableFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ChildWithNullableToJSON(json: any): ChildWithNullable {
|
export function ChildWithNullableToJSON(json: any): ChildWithNullable {
|
||||||
return ChildWithNullableToJSONTyped(json, false);
|
return ChildWithNullableToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ChildWithNullableToJSONTyped(value?: ChildWithNullable | null, ignoreDiscriminator: boolean = false): any {
|
export function ChildWithNullableToJSONTyped(value?: ChildWithNullable | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function ClassModelFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClassModelToJSON(json: any): ClassModel {
|
export function ClassModelToJSON(json: any): ClassModel {
|
||||||
return ClassModelToJSONTyped(json, false);
|
return ClassModelToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClassModelToJSONTyped(value?: ClassModel | null, ignoreDiscriminator: boolean = false): any {
|
export function ClassModelToJSONTyped(value?: ClassModel | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cl
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientToJSON(json: any): Client {
|
export function ClientToJSON(json: any): Client {
|
||||||
return ClientToJSONTyped(json, false);
|
return ClientToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ClientToJSONTyped(value?: Client | null, ignoreDiscriminator: boolean = false): any {
|
export function ClientToJSONTyped(value?: Client | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function DeprecatedObjectFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DeprecatedObjectToJSON(json: any): DeprecatedObject {
|
export function DeprecatedObjectToJSON(json: any): DeprecatedObject {
|
||||||
return DeprecatedObjectToJSONTyped(json, false);
|
return DeprecatedObjectToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DeprecatedObjectToJSONTyped(value?: DeprecatedObject | null, ignoreDiscriminator: boolean = false): any {
|
export function DeprecatedObjectToJSONTyped(value?: DeprecatedObject | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -56,11 +56,11 @@ export function DogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dog {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DogToJSON(json: any): Dog {
|
export function DogToJSON(json: any): Dog {
|
||||||
return DogToJSONTyped(json, false);
|
return DogToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DogToJSONTyped(value?: Dog | null, ignoreDiscriminator: boolean = false): any {
|
export function DogToJSONTyped(value?: Dog | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -75,11 +75,11 @@ export function EnumArraysFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EnumArraysToJSON(json: any): EnumArrays {
|
export function EnumArraysToJSON(json: any): EnumArrays {
|
||||||
return EnumArraysToJSONTyped(json, false);
|
return EnumArraysToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EnumArraysToJSONTyped(value?: EnumArrays | null, ignoreDiscriminator: boolean = false): any {
|
export function EnumArraysToJSONTyped(value?: EnumArrays | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -167,11 +167,11 @@ export function EnumTestFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EnumTestToJSON(json: any): EnumTest {
|
export function EnumTestToJSON(json: any): EnumTest {
|
||||||
return EnumTestToJSONTyped(json, false);
|
return EnumTestToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EnumTestToJSONTyped(value?: EnumTest | null, ignoreDiscriminator: boolean = false): any {
|
export function EnumTestToJSONTyped(value?: EnumTest | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function FakeBigDecimalMap200ResponseFromJSONTyped(json: any, ignoreDiscr
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FakeBigDecimalMap200ResponseToJSON(json: any): FakeBigDecimalMap200Response {
|
export function FakeBigDecimalMap200ResponseToJSON(json: any): FakeBigDecimalMap200Response {
|
||||||
return FakeBigDecimalMap200ResponseToJSONTyped(json, false);
|
return FakeBigDecimalMap200ResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FakeBigDecimalMap200ResponseToJSONTyped(value?: FakeBigDecimalMap200Response | null, ignoreDiscriminator: boolean = false): any {
|
export function FakeBigDecimalMap200ResponseToJSONTyped(value?: FakeBigDecimalMap200Response | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function FileSchemaTestClassFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FileSchemaTestClassToJSON(json: any): FileSchemaTestClass {
|
export function FileSchemaTestClassToJSON(json: any): FileSchemaTestClass {
|
||||||
return FileSchemaTestClassToJSONTyped(json, false);
|
return FileSchemaTestClassToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FileSchemaTestClassToJSONTyped(value?: FileSchemaTestClass | null, ignoreDiscriminator: boolean = false): any {
|
export function FileSchemaTestClassToJSONTyped(value?: FileSchemaTestClass | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function FooFromJSONTyped(json: any, ignoreDiscriminator: boolean): Foo {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FooToJSON(json: any): Foo {
|
export function FooToJSON(json: any): Foo {
|
||||||
return FooToJSONTyped(json, false);
|
return FooToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FooToJSONTyped(value?: Foo | null, ignoreDiscriminator: boolean = false): any {
|
export function FooToJSONTyped(value?: Foo | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -56,11 +56,11 @@ export function FooGetDefaultResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FooGetDefaultResponseToJSON(json: any): FooGetDefaultResponse {
|
export function FooGetDefaultResponseToJSON(json: any): FooGetDefaultResponse {
|
||||||
return FooGetDefaultResponseToJSONTyped(json, false);
|
return FooGetDefaultResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FooGetDefaultResponseToJSONTyped(value?: FooGetDefaultResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function FooGetDefaultResponseToJSONTyped(value?: FooGetDefaultResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -157,11 +157,11 @@ export function FormatTestFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FormatTestToJSON(json: any): FormatTest {
|
export function FormatTestToJSON(json: any): FormatTest {
|
||||||
return FormatTestToJSONTyped(json, false);
|
return FormatTestToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FormatTestToJSONTyped(value?: FormatTest | null, ignoreDiscriminator: boolean = false): any {
|
export function FormatTestToJSONTyped(value?: FormatTest | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function HasOnlyReadOnlyFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function HasOnlyReadOnlyToJSON(json: any): HasOnlyReadOnly {
|
export function HasOnlyReadOnlyToJSON(json: any): HasOnlyReadOnly {
|
||||||
return HasOnlyReadOnlyToJSONTyped(json, false);
|
return HasOnlyReadOnlyToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function HasOnlyReadOnlyToJSONTyped(value?: Omit<HasOnlyReadOnly, 'bar'|'foo'> | null, ignoreDiscriminator: boolean = false): any {
|
export function HasOnlyReadOnlyToJSONTyped(value?: Omit<HasOnlyReadOnly, 'bar'|'foo'> | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function HealthCheckResultFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function HealthCheckResultToJSON(json: any): HealthCheckResult {
|
export function HealthCheckResultToJSON(json: any): HealthCheckResult {
|
||||||
return HealthCheckResultToJSONTyped(json, false);
|
return HealthCheckResultToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function HealthCheckResultToJSONTyped(value?: HealthCheckResult | null, ignoreDiscriminator: boolean = false): any {
|
export function HealthCheckResultToJSONTyped(value?: HealthCheckResult | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function ListFromJSONTyped(json: any, ignoreDiscriminator: boolean): List
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ListToJSON(json: any): List {
|
export function ListToJSON(json: any): List {
|
||||||
return ListToJSONTyped(json, false);
|
return ListToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ListToJSONTyped(value?: List | null, ignoreDiscriminator: boolean = false): any {
|
export function ListToJSONTyped(value?: List | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -80,11 +80,11 @@ export function MapTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): M
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MapTestToJSON(json: any): MapTest {
|
export function MapTestToJSON(json: any): MapTest {
|
||||||
return MapTestToJSONTyped(json, false);
|
return MapTestToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MapTestToJSONTyped(value?: MapTest | null, ignoreDiscriminator: boolean = false): any {
|
export function MapTestToJSONTyped(value?: MapTest | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -70,11 +70,11 @@ export function MixedPropertiesAndAdditionalPropertiesClassFromJSONTyped(json: a
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MixedPropertiesAndAdditionalPropertiesClassToJSON(json: any): MixedPropertiesAndAdditionalPropertiesClass {
|
export function MixedPropertiesAndAdditionalPropertiesClassToJSON(json: any): MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
return MixedPropertiesAndAdditionalPropertiesClassToJSONTyped(json, false);
|
return MixedPropertiesAndAdditionalPropertiesClassToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MixedPropertiesAndAdditionalPropertiesClassToJSONTyped(value?: MixedPropertiesAndAdditionalPropertiesClass | null, ignoreDiscriminator: boolean = false): any {
|
export function MixedPropertiesAndAdditionalPropertiesClassToJSONTyped(value?: MixedPropertiesAndAdditionalPropertiesClass | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function Model200ResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Model200ResponseToJSON(json: any): Model200Response {
|
export function Model200ResponseToJSON(json: any): Model200Response {
|
||||||
return Model200ResponseToJSONTyped(json, false);
|
return Model200ResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Model200ResponseToJSONTyped(value?: Model200Response | null, ignoreDiscriminator: boolean = false): any {
|
export function Model200ResponseToJSONTyped(value?: Model200Response | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,11 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
||||||
return ModelApiResponseToJSONTyped(json, false);
|
return ModelApiResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelFileToJSON(json: any): ModelFile {
|
export function ModelFileToJSON(json: any): ModelFile {
|
||||||
return ModelFileToJSONTyped(json, false);
|
return ModelFileToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminator: boolean = false): any {
|
export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -70,11 +70,11 @@ export function NameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Name
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NameToJSON(json: any): Name {
|
export function NameToJSON(json: any): Name {
|
||||||
return NameToJSONTyped(json, false);
|
return NameToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NameToJSONTyped(value?: Omit<Name, 'snake_case'|'123Number'> | null, ignoreDiscriminator: boolean = false): any {
|
export function NameToJSONTyped(value?: Omit<Name, 'snake_case'|'123Number'> | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -127,11 +127,11 @@ export function NullableClassFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NullableClassToJSON(json: any): NullableClass {
|
export function NullableClassToJSON(json: any): NullableClass {
|
||||||
return NullableClassToJSONTyped(json, false);
|
return NullableClassToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NullableClassToJSONTyped(value?: NullableClass | null, ignoreDiscriminator: boolean = false): any {
|
export function NullableClassToJSONTyped(value?: NullableClass | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function NumberOnlyFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NumberOnlyToJSON(json: any): NumberOnly {
|
export function NumberOnlyToJSON(json: any): NumberOnly {
|
||||||
return NumberOnlyToJSONTyped(json, false);
|
return NumberOnlyToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function NumberOnlyToJSONTyped(value?: NumberOnly | null, ignoreDiscriminator: boolean = false): any {
|
export function NumberOnlyToJSONTyped(value?: NumberOnly | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -80,11 +80,11 @@ export function ObjectWithDeprecatedFieldsFromJSONTyped(json: any, ignoreDiscrim
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ObjectWithDeprecatedFieldsToJSON(json: any): ObjectWithDeprecatedFields {
|
export function ObjectWithDeprecatedFieldsToJSON(json: any): ObjectWithDeprecatedFields {
|
||||||
return ObjectWithDeprecatedFieldsToJSONTyped(json, false);
|
return ObjectWithDeprecatedFieldsToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ObjectWithDeprecatedFieldsToJSONTyped(value?: ObjectWithDeprecatedFields | null, ignoreDiscriminator: boolean = false): any {
|
export function ObjectWithDeprecatedFieldsToJSONTyped(value?: ObjectWithDeprecatedFields | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -95,11 +95,11 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSON(json: any): Order {
|
export function OrderToJSON(json: any): Order {
|
||||||
return OrderToJSONTyped(json, false);
|
return OrderToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,11 @@ export function OuterCompositeFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OuterCompositeToJSON(json: any): OuterComposite {
|
export function OuterCompositeToJSON(json: any): OuterComposite {
|
||||||
return OuterCompositeToJSONTyped(json, false);
|
return OuterCompositeToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OuterCompositeToJSONTyped(value?: OuterComposite | null, ignoreDiscriminator: boolean = false): any {
|
export function OuterCompositeToJSONTyped(value?: OuterComposite | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -59,11 +59,11 @@ export function OuterObjectWithEnumPropertyFromJSONTyped(json: any, ignoreDiscri
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OuterObjectWithEnumPropertyToJSON(json: any): OuterObjectWithEnumProperty {
|
export function OuterObjectWithEnumPropertyToJSON(json: any): OuterObjectWithEnumProperty {
|
||||||
return OuterObjectWithEnumPropertyToJSONTyped(json, false);
|
return OuterObjectWithEnumPropertyToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OuterObjectWithEnumPropertyToJSONTyped(value?: OuterObjectWithEnumProperty | null, ignoreDiscriminator: boolean = false): any {
|
export function OuterObjectWithEnumPropertyToJSONTyped(value?: OuterObjectWithEnumProperty | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -71,11 +71,11 @@ export function ParentWithNullableFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ParentWithNullableToJSON(json: any): ParentWithNullable {
|
export function ParentWithNullableToJSON(json: any): ParentWithNullable {
|
||||||
return ParentWithNullableToJSONTyped(json, false);
|
return ParentWithNullableToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ParentWithNullableToJSONTyped(value?: ParentWithNullable | null, ignoreDiscriminator: boolean = false): any {
|
export function ParentWithNullableToJSONTyped(value?: ParentWithNullable | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -112,11 +112,11 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSON(json: any): Pet {
|
export function PetToJSON(json: any): Pet {
|
||||||
return PetToJSONTyped(json, false);
|
return PetToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function ReadOnlyFirstFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReadOnlyFirstToJSON(json: any): ReadOnlyFirst {
|
export function ReadOnlyFirstToJSON(json: any): ReadOnlyFirst {
|
||||||
return ReadOnlyFirstToJSONTyped(json, false);
|
return ReadOnlyFirstToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReadOnlyFirstToJSONTyped(value?: Omit<ReadOnlyFirst, 'bar'> | null, ignoreDiscriminator: boolean = false): any {
|
export function ReadOnlyFirstToJSONTyped(value?: Omit<ReadOnlyFirst, 'bar'> | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function ReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReturnToJSON(json: any): Return {
|
export function ReturnToJSON(json: any): Return {
|
||||||
return ReturnToJSONTyped(json, false);
|
return ReturnToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReturnToJSONTyped(value?: Return | null, ignoreDiscriminator: boolean = false): any {
|
export function ReturnToJSONTyped(value?: Return | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,11 @@ export function SpecialModelNameFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function SpecialModelNameToJSON(json: any): SpecialModelName {
|
export function SpecialModelNameToJSON(json: any): SpecialModelName {
|
||||||
return SpecialModelNameToJSONTyped(json, false);
|
return SpecialModelNameToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function SpecialModelNameToJSONTyped(value?: SpecialModelName | null, ignoreDiscriminator: boolean = false): any {
|
export function SpecialModelNameToJSONTyped(value?: SpecialModelName | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSON(json: any): Tag {
|
export function TagToJSON(json: any): Tag {
|
||||||
return TagToJSONTyped(json, false);
|
return TagToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -50,11 +50,11 @@ export function TestInlineFreeformAdditionalPropertiesRequestFromJSONTyped(json:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TestInlineFreeformAdditionalPropertiesRequestToJSON(json: any): TestInlineFreeformAdditionalPropertiesRequest {
|
export function TestInlineFreeformAdditionalPropertiesRequestToJSON(json: any): TestInlineFreeformAdditionalPropertiesRequest {
|
||||||
return TestInlineFreeformAdditionalPropertiesRequestToJSONTyped(json, false);
|
return TestInlineFreeformAdditionalPropertiesRequestToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TestInlineFreeformAdditionalPropertiesRequestToJSONTyped(value?: TestInlineFreeformAdditionalPropertiesRequest | null, ignoreDiscriminator: boolean = false): any {
|
export function TestInlineFreeformAdditionalPropertiesRequestToJSONTyped(value?: TestInlineFreeformAdditionalPropertiesRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -97,11 +97,11 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSON(json: any): User {
|
export function UserToJSON(json: any): User {
|
||||||
return UserToJSONTyped(json, false);
|
return UserToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSON(json: any): Category {
|
export function CategoryToJSON(json: any): Category {
|
||||||
return CategoryToJSONTyped(json, false);
|
return CategoryToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,11 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
||||||
return ModelApiResponseToJSONTyped(json, false);
|
return ModelApiResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -95,11 +95,11 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSON(json: any): Order {
|
export function OrderToJSON(json: any): Order {
|
||||||
return OrderToJSONTyped(json, false);
|
return OrderToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -112,11 +112,11 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSON(json: any): Pet {
|
export function PetToJSON(json: any): Pet {
|
||||||
return PetToJSONTyped(json, false);
|
return PetToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSON(json: any): Tag {
|
export function TagToJSON(json: any): Tag {
|
||||||
return TagToJSONTyped(json, false);
|
return TagToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -97,11 +97,11 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSON(json: any): User {
|
export function UserToJSON(json: any): User {
|
||||||
return UserToJSONTyped(json, false);
|
return UserToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -86,11 +86,11 @@ export function EnumPatternObjectFromJSONTyped(json: any, ignoreDiscriminator: b
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EnumPatternObjectToJSON(json: any): EnumPatternObject {
|
export function EnumPatternObjectToJSON(json: any): EnumPatternObject {
|
||||||
return EnumPatternObjectToJSONTyped(json, false);
|
return EnumPatternObjectToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EnumPatternObjectToJSONTyped(value?: EnumPatternObject | null, ignoreDiscriminator: boolean = false): any {
|
export function EnumPatternObjectToJSONTyped(value?: EnumPatternObject | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -111,11 +111,11 @@ export function FakeEnumRequestGetInline200ResponseFromJSONTyped(json: any, igno
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FakeEnumRequestGetInline200ResponseToJSON(json: any): FakeEnumRequestGetInline200Response {
|
export function FakeEnumRequestGetInline200ResponseToJSON(json: any): FakeEnumRequestGetInline200Response {
|
||||||
return FakeEnumRequestGetInline200ResponseToJSONTyped(json, false);
|
return FakeEnumRequestGetInline200ResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FakeEnumRequestGetInline200ResponseToJSONTyped(value?: FakeEnumRequestGetInline200Response | null, ignoreDiscriminator: boolean = false): any {
|
export function FakeEnumRequestGetInline200ResponseToJSONTyped(value?: FakeEnumRequestGetInline200Response | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSON(json: any): Category {
|
export function CategoryToJSON(json: any): Category {
|
||||||
return CategoryToJSONTyped(json, false);
|
return CategoryToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,11 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
||||||
return ModelApiResponseToJSONTyped(json, false);
|
return ModelApiResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -95,11 +95,11 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSON(json: any): Order {
|
export function OrderToJSON(json: any): Order {
|
||||||
return OrderToJSONTyped(json, false);
|
return OrderToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -112,11 +112,11 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSON(json: any): Pet {
|
export function PetToJSON(json: any): Pet {
|
||||||
return PetToJSONTyped(json, false);
|
return PetToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSON(json: any): Tag {
|
export function TagToJSON(json: any): Tag {
|
||||||
return TagToJSONTyped(json, false);
|
return TagToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -97,11 +97,11 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSON(json: any): User {
|
export function UserToJSON(json: any): User {
|
||||||
return UserToJSONTyped(json, false);
|
return UserToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSON(json: any): Category {
|
export function CategoryToJSON(json: any): Category {
|
||||||
return CategoryToJSONTyped(json, false);
|
return CategoryToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,11 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
||||||
return ModelApiResponseToJSONTyped(json, false);
|
return ModelApiResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -95,11 +95,11 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSON(json: any): Order {
|
export function OrderToJSON(json: any): Order {
|
||||||
return OrderToJSONTyped(json, false);
|
return OrderToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -112,11 +112,11 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSON(json: any): Pet {
|
export function PetToJSON(json: any): Pet {
|
||||||
return PetToJSONTyped(json, false);
|
return PetToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSON(json: any): Tag {
|
export function TagToJSON(json: any): Tag {
|
||||||
return TagToJSONTyped(json, false);
|
return TagToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -97,11 +97,11 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSON(json: any): User {
|
export function UserToJSON(json: any): User {
|
||||||
return UserToJSONTyped(json, false);
|
return UserToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -49,11 +49,11 @@ export function TestAFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tes
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TestAToJSON(json: any): TestA {
|
export function TestAToJSON(json: any): TestA {
|
||||||
return TestAToJSONTyped(json, false);
|
return TestAToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TestAToJSONTyped(value?: TestA | null, ignoreDiscriminator: boolean = false): any {
|
export function TestAToJSONTyped(value?: TestA | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -49,11 +49,11 @@ export function TestBFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tes
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TestBToJSON(json: any): TestB {
|
export function TestBToJSON(json: any): TestB {
|
||||||
return TestBToJSONTyped(json, false);
|
return TestBToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TestBToJSONTyped(value?: TestB | null, ignoreDiscriminator: boolean = false): any {
|
export function TestBToJSONTyped(value?: TestB | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,11 @@ export function TestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
return {} as any;
|
return {} as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TestResponseToJSON(value?: TestResponse | null): any {
|
export function TestResponseToJSON(json: any): any {
|
||||||
|
return TestResponseToJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function TestResponseToJSONTyped(value?: TestResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSON(json: any): Category {
|
export function CategoryToJSON(json: any): Category {
|
||||||
return CategoryToJSONTyped(json, false);
|
return CategoryToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,11 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
||||||
return ModelApiResponseToJSONTyped(json, false);
|
return ModelApiResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -95,11 +95,11 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSON(json: any): Order {
|
export function OrderToJSON(json: any): Order {
|
||||||
return OrderToJSONTyped(json, false);
|
return OrderToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -112,11 +112,11 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSON(json: any): Pet {
|
export function PetToJSON(json: any): Pet {
|
||||||
return PetToJSONTyped(json, false);
|
return PetToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSON(json: any): Tag {
|
export function TagToJSON(json: any): Tag {
|
||||||
return TagToJSONTyped(json, false);
|
return TagToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -97,11 +97,11 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSON(json: any): User {
|
export function UserToJSON(json: any): User {
|
||||||
return UserToJSONTyped(json, false);
|
return UserToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSON(json: any): Category {
|
export function CategoryToJSON(json: any): Category {
|
||||||
return CategoryToJSONTyped(json, false);
|
return CategoryToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
export function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -57,11 +57,11 @@ export function DefaultMetaOnlyResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DefaultMetaOnlyResponseToJSON(json: any): DefaultMetaOnlyResponse {
|
export function DefaultMetaOnlyResponseToJSON(json: any): DefaultMetaOnlyResponse {
|
||||||
return DefaultMetaOnlyResponseToJSONTyped(json, false);
|
return DefaultMetaOnlyResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DefaultMetaOnlyResponseToJSONTyped(value?: DefaultMetaOnlyResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function DefaultMetaOnlyResponseToJSONTyped(value?: DefaultMetaOnlyResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -71,11 +71,11 @@ export function FindPetsByStatusResponseFromJSONTyped(json: any, ignoreDiscrimin
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FindPetsByStatusResponseToJSON(json: any): FindPetsByStatusResponse {
|
export function FindPetsByStatusResponseToJSON(json: any): FindPetsByStatusResponse {
|
||||||
return FindPetsByStatusResponseToJSONTyped(json, false);
|
return FindPetsByStatusResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FindPetsByStatusResponseToJSONTyped(value?: FindPetsByStatusResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function FindPetsByStatusResponseToJSONTyped(value?: FindPetsByStatusResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -71,11 +71,11 @@ export function FindPetsByUserResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FindPetsByUserResponseToJSON(json: any): FindPetsByUserResponse {
|
export function FindPetsByUserResponseToJSON(json: any): FindPetsByUserResponse {
|
||||||
return FindPetsByUserResponseToJSONTyped(json, false);
|
return FindPetsByUserResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FindPetsByUserResponseToJSONTyped(value?: FindPetsByUserResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function FindPetsByUserResponseToJSONTyped(value?: FindPetsByUserResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -64,11 +64,11 @@ export function GetBehaviorPermissionsResponseFromJSONTyped(json: any, ignoreDis
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetBehaviorPermissionsResponseToJSON(json: any): GetBehaviorPermissionsResponse {
|
export function GetBehaviorPermissionsResponseToJSON(json: any): GetBehaviorPermissionsResponse {
|
||||||
return GetBehaviorPermissionsResponseToJSONTyped(json, false);
|
return GetBehaviorPermissionsResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetBehaviorPermissionsResponseToJSONTyped(value?: GetBehaviorPermissionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function GetBehaviorPermissionsResponseToJSONTyped(value?: GetBehaviorPermissionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -73,11 +73,11 @@ export function GetBehaviorTypeResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetBehaviorTypeResponseToJSON(json: any): GetBehaviorTypeResponse {
|
export function GetBehaviorTypeResponseToJSON(json: any): GetBehaviorTypeResponse {
|
||||||
return GetBehaviorTypeResponseToJSONTyped(json, false);
|
return GetBehaviorTypeResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetBehaviorTypeResponseToJSONTyped(value?: GetBehaviorTypeResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function GetBehaviorTypeResponseToJSONTyped(value?: GetBehaviorTypeResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -71,11 +71,11 @@ export function GetMatchingPartsResponseFromJSONTyped(json: any, ignoreDiscrimin
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetMatchingPartsResponseToJSON(json: any): GetMatchingPartsResponse {
|
export function GetMatchingPartsResponseToJSON(json: any): GetMatchingPartsResponse {
|
||||||
return GetMatchingPartsResponseToJSONTyped(json, false);
|
return GetMatchingPartsResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetMatchingPartsResponseToJSONTyped(value?: GetMatchingPartsResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function GetMatchingPartsResponseToJSONTyped(value?: GetMatchingPartsResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -73,11 +73,11 @@ export function GetPetPartTypeResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetPetPartTypeResponseToJSON(json: any): GetPetPartTypeResponse {
|
export function GetPetPartTypeResponseToJSON(json: any): GetPetPartTypeResponse {
|
||||||
return GetPetPartTypeResponseToJSONTyped(json, false);
|
return GetPetPartTypeResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetPetPartTypeResponseToJSONTyped(value?: GetPetPartTypeResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function GetPetPartTypeResponseToJSONTyped(value?: GetPetPartTypeResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -57,11 +57,11 @@ export function ItemIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): It
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ItemIdToJSON(json: any): ItemId {
|
export function ItemIdToJSON(json: any): ItemId {
|
||||||
return ItemIdToJSONTyped(json, false);
|
return ItemIdToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ItemIdToJSONTyped(value?: ItemId | null, ignoreDiscriminator: boolean = false): any {
|
export function ItemIdToJSONTyped(value?: ItemId | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -65,11 +65,11 @@ export function MatchingPartsFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MatchingPartsToJSON(json: any): MatchingParts {
|
export function MatchingPartsToJSON(json: any): MatchingParts {
|
||||||
return MatchingPartsToJSONTyped(json, false);
|
return MatchingPartsToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MatchingPartsToJSONTyped(value?: MatchingParts | null, ignoreDiscriminator: boolean = false): any {
|
export function MatchingPartsToJSONTyped(value?: MatchingParts | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,11 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
export function ModelApiResponseToJSON(json: any): ModelApiResponse {
|
||||||
return ModelApiResponseToJSONTyped(json, false);
|
return ModelApiResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function ModelApiResponseToJSONTyped(value?: ModelApiResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -78,11 +78,11 @@ export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelErrorToJSON(json: any): ModelError {
|
export function ModelErrorToJSON(json: any): ModelError {
|
||||||
return ModelErrorToJSONTyped(json, false);
|
return ModelErrorToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator: boolean = false): any {
|
export function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -95,11 +95,11 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSON(json: any): Order {
|
export function OrderToJSON(json: any): Order {
|
||||||
return OrderToJSONTyped(json, false);
|
return OrderToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -57,11 +57,11 @@ export function PartFromJSONTyped(json: any, ignoreDiscriminator: boolean): Part
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PartToJSON(json: any): Part {
|
export function PartToJSON(json: any): Part {
|
||||||
return PartToJSONTyped(json, false);
|
return PartToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PartToJSONTyped(value?: Part | null, ignoreDiscriminator: boolean = false): any {
|
export function PartToJSONTyped(value?: Part | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -243,11 +243,11 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSON(json: any): Pet {
|
export function PetToJSON(json: any): Pet {
|
||||||
return PetToJSONTyped(json, false);
|
return PetToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
export function PetToJSONTyped(value?: Pet | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -64,11 +64,11 @@ export function PetRegionsResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetRegionsResponseToJSON(json: any): PetRegionsResponse {
|
export function PetRegionsResponseToJSON(json: any): PetRegionsResponse {
|
||||||
return PetRegionsResponseToJSONTyped(json, false);
|
return PetRegionsResponseToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PetRegionsResponseToJSONTyped(value?: PetRegionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
export function PetRegionsResponseToJSONTyped(value?: PetRegionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -124,11 +124,11 @@ export function ResponseMetaFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ResponseMetaToJSON(json: any): ResponseMeta {
|
export function ResponseMetaToJSON(json: any): ResponseMeta {
|
||||||
return ResponseMetaToJSONTyped(json, false);
|
return ResponseMetaToJSONTyped(json, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ResponseMetaToJSONTyped(value?: ResponseMeta | null, ignoreDiscriminator: boolean = false): any {
|
export function ResponseMetaToJSONTyped(value?: ResponseMeta | null, ignoreDiscriminator: boolean = false): any {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user