@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
37 lines • 1.14 kB
JavaScript
export function instanceOfGetExtendedClientAllOfAddress(value) {
let isInstance = true;
isInstance = isInstance && 'street' in value;
isInstance = isInstance && 'city' in value;
isInstance = isInstance && 'zipCode' in value;
isInstance = isInstance && 'country' in value;
return isInstance;
}
export function GetExtendedClientAllOfAddressFromJSON(json) {
return GetExtendedClientAllOfAddressFromJSONTyped(json, false);
}
export function GetExtendedClientAllOfAddressFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
street: json['street'],
city: json['city'],
zipCode: json['zipCode'],
country: json['country'],
};
}
export function GetExtendedClientAllOfAddressToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
street: value.street,
city: value.city,
zipCode: value.zipCode,
country: value.country,
};
}
//# sourceMappingURL=GetExtendedClientAllOfAddress.js.map