UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

29 lines 902 B
import { PostContactInfoContactsFromJSON, PostContactInfoContactsToJSON } from './PostContactInfoContacts.js'; export function instanceOfPostContactInfo(value) { let isInstance = true; isInstance = isInstance && 'contacts' in value; return isInstance; } export function PostContactInfoFromJSON(json) { return PostContactInfoFromJSONTyped(json, false); } export function PostContactInfoFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { contacts: PostContactInfoContactsFromJSON(json['contacts']), }; } export function PostContactInfoToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { contacts: PostContactInfoContactsToJSON(value.contacts), }; } //# sourceMappingURL=PostContactInfo.js.map