UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

41 lines 1.43 kB
import { GetExtendedClientAllOfAddressFromJSON, GetExtendedClientAllOfAddressToJSON } from './GetExtendedClientAllOfAddress.js'; export function instanceOfGetExtendedClient(value) { let isInstance = true; isInstance = isInstance && 'email' in value; isInstance = isInstance && 'firstName' in value; isInstance = isInstance && 'lastName' in value; isInstance = isInstance && 'companyName' in value; isInstance = isInstance && 'address' in value; return isInstance; } export function GetExtendedClientFromJSON(json) { return GetExtendedClientFromJSONTyped(json, false); } export function GetExtendedClientFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { email: json['email'], firstName: json['firstName'], lastName: json['lastName'], companyName: json['companyName'], address: GetExtendedClientAllOfAddressFromJSON(json['address']), }; } export function GetExtendedClientToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { email: value.email, firstName: value.firstName, lastName: value.lastName, companyName: value.companyName, address: GetExtendedClientAllOfAddressToJSON(value.address), }; } //# sourceMappingURL=GetExtendedClient.js.map