@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
34 lines • 1.11 kB
JavaScript
import { exists } from '../runtime.js';
export function instanceOfPostContactInfoContacts(value) {
let isInstance = true;
return isInstance;
}
export function PostContactInfoContactsFromJSON(json) {
return PostContactInfoContactsFromJSONTyped(json, false);
}
export function PostContactInfoContactsFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
success: !exists(json, 'success') ? undefined : json['success'],
failure: !exists(json, 'failure') ? undefined : json['failure'],
total: !exists(json, 'total') ? undefined : json['total'],
processId: !exists(json, 'processId') ? undefined : json['processId'],
};
}
export function PostContactInfoContactsToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
success: value.success,
failure: value.failure,
total: value.total,
processId: value.processId,
};
}
//# sourceMappingURL=PostContactInfoContacts.js.map