UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

36 lines 1.18 kB
import { exists } from '../runtime.js'; export function instanceOfUpdateChild(value) { let isInstance = true; return isInstance; } export function UpdateChildFromJSON(json) { return UpdateChildFromJSONTyped(json, false); } export function UpdateChildFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { email: !exists(json, 'email') ? undefined : json['email'], firstName: !exists(json, 'firstName') ? undefined : json['firstName'], lastName: !exists(json, 'lastName') ? undefined : json['lastName'], companyName: !exists(json, 'companyName') ? undefined : json['companyName'], password: !exists(json, 'password') ? undefined : json['password'], }; } export function UpdateChildToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { email: value.email, firstName: value.firstName, lastName: value.lastName, companyName: value.companyName, password: value.password, }; } //# sourceMappingURL=UpdateChild.js.map