@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
31 lines • 1.21 kB
JavaScript
import { exists } from '../runtime.js';
import { GetTransacBlockedContactsContactsInnerFromJSON, GetTransacBlockedContactsContactsInnerToJSON, } from './GetTransacBlockedContactsContactsInner.js';
export function instanceOfGetTransacBlockedContacts(value) {
let isInstance = true;
return isInstance;
}
export function GetTransacBlockedContactsFromJSON(json) {
return GetTransacBlockedContactsFromJSONTyped(json, false);
}
export function GetTransacBlockedContactsFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
count: !exists(json, 'count') ? undefined : json['count'],
contacts: !exists(json, 'contacts') ? undefined : json['contacts'].map(GetTransacBlockedContactsContactsInnerFromJSON),
};
}
export function GetTransacBlockedContactsToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
count: value.count,
contacts: value.contacts === undefined ? undefined : value.contacts.map(GetTransacBlockedContactsContactsInnerToJSON),
};
}
//# sourceMappingURL=GetTransacBlockedContacts.js.map